jeselxe / tool-bar-atom Goto Github PK
View Code? Open in Web Editor NEWAddon for Atom tool-bar with som preferred actions
License: MIT License
Addon for Atom tool-bar with som preferred actions
License: MIT License
hi,
i've disabled markdown-preview's package after install markdown-preiew-plus and i 've loosed his relative icon.
i would like to know how to reaffect markdown-preview's icon as markdown-preview-plus's icon.
How can I reduce buttons size?
Thank you!
I want to know to edit the colors of the icon..
Your tool bar is by far my favourite one but I would love to have a shortcut for ask-stack and also for a new file (instead of just open file).
[Enter steps to reproduce:]
Atom: 1.49.0 x64
Electron: 5.0.13
OS: Microsoft Windows 10 Enterprise
Thrown From: tool-bar-atom package 1.7.1
Failed to activate the tool-bar-atom package
At Cannot read property 'addItem' of null
TypeError: Cannot read property 'addItem' of null
at ToolBarManager.addButton (/packages/tool-bar/lib/tool-bar-manager.js:22:22)
at Object.consumeToolBar (/packages/tool-bar-atom/lib/tool-bar-atom.coffee:8:14)
at Provider.provide (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:14:1060527)
at ServiceHub.consume (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3291876)
at Package.activateServices (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3300108)
at Package.activateNow (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3296863)
at ~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3296187
at Package.measure (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3293797)
at ~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3296047
at new Promise (<anonymous>)
at Package.activate (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3295990)
at PackageManager.activatePackage (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:382943)
at ~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:378109
at Array.forEach (<anonymous>)
at ~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:378093
at ~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:335144
at Function.simpleDispatch (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:1201500)
at Emitter.emit (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:1202941)
at Config.emitChangeEvent (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:337632)
at Config.setRawValue (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:334872)
at Config.set (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:330666)
at Config.removeAtKeyPath (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:332689)
at Package.enable (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3293582)
at PackageManager.enablePackage (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:375807)
at HTMLButtonElement.enablementButtonClickHandler (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:14:2531944)
-7:41.1.0 grammar-selector:show (atom-text-editor.editor.is-focused)
-7:38.3.0 core:confirm (input.hidden-input)
-7:15 command-palette:toggle (input.hidden-input)
-7:03.3.0 settings-view:open (input.hidden-input)
-2:55.9.0 command-palette:toggle (input.hidden-input)
3x -2:47 core:backspace (input.hidden-input)
-2:36.9.0 core:confirm (input.hidden-input)
-2:36.9.0 settings-view:uninstall-packages (input.hidden-input)
2x -2:26.6.0 core:backspace (input.hidden-input)
indent-detective 0.4.0
ink 0.12.4
julia-client undefined
language-julia 0.19.3
latex-completions 0.3.6
platformio-ide-terminal 2.10.0
tool-bar-atom 1.7.1
tool-bar-mfj 2.1.0
uber-juno 0.3.0
Hi,
first thanks for this nice package. A toolbar is something that is really missing in this nice software which is Atom.
I've installed your package but the toolbar appears nowhere... I've restarted Atom, but it doesn't change anything.
Is there something to do to make it appear, or is this a bug?
OS: Fedora 20
Thanks for your help!
The icons level-up, level-down and gear from FontAwesome are not available in tool-bar package.
The level-up and level-down icons are only available in PRO version of FontAwesome, which is not used in tool-bar package.
I suggest the following changes:
They are all available in free versions of FontAwesome
Atom v1.41.0
@jeselxe - First, thank you so much for making this awesome package. It makes such a difference in my workflow, i really appreciate it.
I've been investigating for a while, and i looked through the other issues posted here, but i still can't seem to figure out why my menu bar is missing icons. It seems as though the icons I'm missing span multiple icon sets, both fa
and ion
. I'm missing the primary first four icons for Open File
, Open Folder
, Save File
, and List projects
, which I'm guessing is likely not related to this package.
Here is a screenshot of what i see in the toolbar:
Here are the package folders with my .atom
directory showing that these icon sets are in fact available:
Here is the list of my installed community packages:
Community Packages (48) /Users/greggallen/.atom/packages
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] (disabled)
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] (disabled)
├── [email protected]
├── [email protected]
├── [email protected] (disabled)
├── [email protected] (disabled)
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
And finally, here is the contents of my tool-bar-atom.coffee
file:
module.exports =
deactivate: ->
@toolBar?.removeItems()
consumeToolBar: (toolBar) ->
@toolBar = toolBar 'tool-bar-atom'
@toolBar.addButton
icon: 'document-text'
callback: 'application:open-file'
tooltip: 'Open File'
iconset: 'ion'
@toolBar.addButton
'icon': 'folder'
'callback': 'application:open-folder'
'tooltip': 'Open Folder'
'iconset': 'ion'
@toolBar.addButton
'icon': 'archive'
'callback': 'core:save'
'tooltip': 'Save File'
'iconset': 'ion'
if atom.packages.loadedPackages['project-manager']
@toolBar.addButton
'icon': 'file-submodule'
'tooltip': 'List projects'
'callback': 'project-manager:list-projects'
@toolBar.addSpacer()
@toolBar.addButton
'icon': 'columns'
'iconset': 'fa'
'tooltip': 'Split screen - Horizontally'
'callback': 'pane:split-right'
btn = @toolBar.addButton
'icon': 'columns'
'iconset': 'fa'
'tooltip': 'Split screen - Vertically'
'callback': 'pane:split-down'
btn.element.classList.add 'fa-rotate-270'
@toolBar.addSpacer()
@toolBar.addButton
'iconset': 'fa'
'icon': 'arrows-alt'
'tooltip': 'Toggle Fullscreen'
'callback': 'window:toggle-full-screen'
@toolBar.addButton
'icon': 'sitemap'
'callback': 'tree-view:toggle'
'tooltip': 'Toggle Sidebar'
'iconset': 'fa'
if atom.packages.loadedPackages['minimap']
@toolBar.addButton
'icon': 'eye'
'tooltip': 'Toggle Minimap'
'callback': 'minimap:toggle'
if atom.packages.loadedPackages['expose']
@toolBar.addButton
'icon': 'browser'
'tooltip': 'Toggle Exposé'
'callback': 'expose:toggle'
@toolBar.addSpacer()
@toolBar.addButton
'icon': 'indent'
'callback': 'editor:auto-indent'
'tooltip': 'Auto indent (selection)'
'iconset': 'fa'
@toolBar.addButton
'icon': 'level-up'
'callback': 'editor:fold-all'
'tooltip': 'Fold all'
'iconset': 'fa'
@toolBar.addButton
'icon': 'level-down'
'callback': 'editor:unfold-all'
'tooltip': 'Unfold all'
'iconset': 'fa'
if atom.packages.loadedPackages['atom-beautify']
@toolBar.addButton
'icon': 'star'
'callback': 'atom-beautify:beautify-editor'
'tooltip': 'Beautify'
'iconset': 'fa'
if atom.packages.loadedPackages['term3']
@toolBar.addSpacer()
@toolBar.addButton
'icon': 'terminal'
'callback': 'term3:open-split-down'
'tooltip': 'Term3 Split Down'
else if atom.packages.loadedPackages['term2']
@toolBar.addSpacer()
@toolBar.addButton
'icon': 'terminal'
'callback': 'term2:open-split-down'
'tooltip': 'Term2 Split Down'
else if atom.packages.loadedPackages['terminal-plus']
@toolBar.addSpacer()
@toolBar.addButton
'icon': 'terminal'
'callback': 'terminal-plus:toggle'
'tooltip': 'Toggle Terminal-plus'
else if atom.packages.loadedPackages['platformio-ide-terminal']
@toolBar.addSpacer()
@toolBar.addButton
'icon': 'terminal'
'callback': 'platformio-ide-terminal:toggle'
'tooltip': 'Toggle Platformio-ide-terminal'
if atom.inDevMode()
@toolBar.addSpacer()
@toolBar.addButton
'icon': 'refresh'
'callback': 'window:reload'
'tooltip': 'Reload Window'
'iconset': 'ion'
@toolBar.addButton
'icon': 'bug'
'callback': 'window:toggle-dev-tools'
'tooltip': 'Toggle Developer Tools'
if atom.packages.loadedPackages['git-plus']
@toolBar.addSpacer()
@toolBar.addButton
'icon' : 'git-plain'
'callback' : 'git-plus:menu'
'tooltip' : 'Git plus'
'iconset' : 'devicon'
else if atom.packages.loadedPackages['git-control']
@toolBar.addSpacer()
@toolBar.addButton
'icon' : 'git-plain'
'callback' : 'git-control:toggle'
'tooltip' : 'Git control'
'iconset' : 'devicon'
if atom.packages.loadedPackages['script']
@toolBar.addSpacer()
@toolBar.addButton
'icon': 'play'
'callback': 'script:run'
'tooltip': 'Run script'
'iconset': 'fa'
@toolBar.addButton
'icon': 'fast-forward'
'callback': 'script:run-by-line-number'
'tooltip': 'Run by Line Number'
'iconset': 'fa'
@toolBar.addButton
'icon': 'stop'
'callback': 'script:kill-process'
'tooltip': 'Stop script'
'iconset': 'fa'
@toolBar.addButton
'icon': 'gear'
'callback': 'script:run-options'
'tooltip': 'Configure script'
'iconset': 'fa'
@toolBar.addSpacer()
if atom.packages.loadedPackages['markdown-preview']
@toolBar.addButton
'icon': 'markdown'
'callback': 'markdown-preview:toggle'
'tooltip': 'Markdown Preview'
if atom.packages.loadedPackages['atom-html-preview']
@toolBar.addButton
'icon': 'globe'
'callback': 'atom-html-preview:toggle'
'tooltip': 'HTML Preview'
@toolBar.addSpacer()
@toolBar.addButton
icon: 'navicon-round'
callback: 'command-palette:toggle'
tooltip: 'Toggle Command Palette'
iconset: 'ion'
@toolBar.addButton
'icon': 'gear'
'callback': 'settings-view:open'
'tooltip': 'Open Settings View'
I really hate to have to file this issue and ask for help, as I'm sure you're very busy and have plenty of other things to do. I'm a novice programmer and have tried everything i possibly can to address this, yet I've been unsuccessful at every step so far. Any help at all you can provide would be tremendously helpful.
Again - thank you for building this awesome package!
Hi, I get the following error since I updated the tool-bar
plugin and try to use this tool-bar-atom
plugin:
Uncaught InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('fa-columns fa-rotate-270') contains HTML space characters, which are not valid in tokens
Looks like they did some changes and require you to update the plugin (see atom-community/tool-bar#148).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.