Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add a formatting menu bar to Atom-“cut", "copy", "paste". #273

Open
egor230 opened this issue Nov 5, 2019 · 3 comments
Open

how to add a formatting menu bar to Atom-“cut", "copy", "paste". #273

egor230 opened this issue Nov 5, 2019 · 3 comments

Comments

@egor230
Copy link

egor230 commented Nov 5, 2019

I study HTML, chose the atom editor.
Please tell me how to add a formatting menu bar to Atom-“cut", "copy", "paste". It is uncomfortable to work without them.

@ericcornelissen
Copy link
Contributor

Hi @egor230 can you provide a bit more detail on how you're using tool-bar? In general what you want to do is add a snippet like the one below to your toolbar configuration, but how to do that depends on how you use tool-bar.

Based on the examples in this repositories README and the fact that Atom's "cut", "copy", and "paste" commands are core:cut, core:copy, and core:paste respectively.

toolBar.addButton({
  callback: 'core:cut',
  tooltip: 'Cut', 

  /* This just gives it an appropriate icon */
  icon: 'cut',
  iconset: 'fa'
});
toolBar.addButton({
  callback: 'core:copy',
  tooltip: 'Cut', 

  /* This just gives it an appropriate icon */
  icon: 'copy',
  iconset: 'fa'
});
toolBar.addButton({
  callback: 'core:paste',
  tooltip: 'Paste', 

  /* This just gives it an appropriate icon */
  icon: 'paste',
  iconset: 'fa'
});

Hope that helps 😄

@egor230
Copy link
Author

egor230 commented Nov 5, 2019

thank you very much for the quick and complete answer. thank you very much. I used to work with C++ in the Studio. there is a formatting panel, which is very convenient when only one hand can work. then decided to study web. hot keys to press through the nose difficult, began to search for how to add a menu bar with the option of adding buttons. tell me, please, where to insert it? in the json?,

@suda
Copy link
Collaborator

suda commented Nov 10, 2019

@egor230 you can use Ryo's flex-tool-bar that allows you to add arbitrarily buttons 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants