-
-
Save X-G/eb22ef7218217f20ad82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = | |
activate: (state) -> | |
deactivate: -> | |
@toolBar?.removeItems() | |
serialize: -> | |
consumeToolBar: (toolBar) -> | |
@toolBar = toolBar 'main-tool-bar' | |
@toolBar.addButton | |
icon: 'navicon-round' | |
callback: 'command-palette:toggle' | |
tooltip: 'Toggle Command Palette' | |
iconset: 'ion' | |
@toolBar.addButton | |
icon: 'gear-a' | |
callback: 'settings-view:open' | |
tooltip: 'Open Settings View' | |
iconset: 'ion' | |
@toolBar.addSpacer() | |
@toolBar.addButton | |
icon: 'clipboard' | |
callback: 'clipboard-history:paste' | |
tooltip: 'clipboard history' | |
iconset: 'fa' | |
@toolBar.addButton | |
icon: 'folder' | |
callback: 'application:open-file' | |
tooltip: 'Open...' | |
iconset: 'ion' | |
@toolBar.addButton | |
icon: 'archive' | |
callback: 'core:save' | |
tooltip: 'Save' | |
iconset: 'ion' | |
@toolBar.addSpacer() | |
@toolBar.addButton | |
icon: 'search' | |
callback: 'find-and-replace:show' | |
tooltip: 'Find in Buffer' | |
iconset: 'ion' | |
@toolBar.addButton | |
icon: 'shuffle' | |
callback: 'find-and-replace:show-replace' | |
tooltip: 'Replace in Buffer' | |
iconset: 'ion' | |
@toolBar.addSpacer() | |
@toolBar.addButton | |
icon: 'file-pdf-o' | |
callback: 'latex:build' | |
tooltip: 'Build LaTeX' | |
iconset: 'fa' | |
@toolBar.addButton | |
icon: 'page-delete' | |
callback: 'latex:clean' | |
tooltip: 'Clean LaTeX work directory' | |
iconset: 'fi' | |
@toolBar.addSpacer() | |
@toolBar.addButton | |
icon: 'python-plain' | |
callback: 'hydrogen:run' | |
tooltip: 'Hydrogen:Run' | |
iconset: 'devicon' | |
@toolBar.addButton | |
icon: 'spinner' | |
callback: 'hydrogen:clear-results' | |
tooltip: 'clear-results' | |
iconset: 'fa' | |
@toolBar.addSpacer() | |
@toolBar.addButton | |
icon: 'volume-medium' | |
callback: 'mechanical-keyboard:toggle' | |
tooltip: 'toggle mechanical Keyboard' | |
iconset: 'ion' | |
@toolBar.addButton | |
icon: 'social-markdown' | |
callback: 'markdown-preview:toggle' | |
tooltip: 'markdown preview' | |
iconset: 'ion' | |
@toolBar.addSpacer() | |
@toolBar.addButton | |
icon: 'pin' | |
callback: 'tree-view:toggle' | |
tooltip: 'toggle tress view' | |
iconset: 'ion' | |
@toolBar.addButton | |
icon: 'pin' | |
callback: 'symbols-tree-view:toggle' | |
tooltip: 'toggle symbols tress view' | |
iconset: 'ion' | |
@toolBar.addSpacer() | |
if atom.inDevMode() | |
@toolBar.addSpacer() | |
@toolBar.addButton | |
icon: 'refresh' | |
callback: 'window:reload' | |
tooltip: 'Reload Window' | |
iconset: 'ion' | |
@toolBar.addButton | |
icon: 'terminal' | |
callback: -> | |
require('remote').getCurrentWindow().toggleDevTools() | |
tooltip: 'Toggle Developer Tools' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment