Skip to content

Instantly share code, notes, and snippets.

@X-G

X-G/a

Created July 20, 2015 23:55
Show Gist options
  • Save X-G/eb22ef7218217f20ad82 to your computer and use it in GitHub Desktop.
Save X-G/eb22ef7218217f20ad82 to your computer and use it in GitHub Desktop.
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