Comments (8)
I've been trying to figure out the same thing. :)
You can get some basic buttons by installing the tool-bar-main package.
You may be able to more easily add your own buttons by installing the flex-tool-bar package and updating the JSON file but I haven't been able to get it to work.
I've also tried adding buttons to my Init Script file like mentioned in this other issue but it also doesn't seem to work.
from tool-bar.
As @christopherdwhite mentioned, you need another package that appends the buttons/spacers to the toolbar. This package is, just like the Status Bar, a service for other package to consume and add buttons.
A good start is the Main Tool Bar package, which will append some basic buttons like Open, Save and New File.
If you want more control you can use the Flex Tool Bar package, which requires a JSON file called toolbar.json
in the Atom root. More about that here.
I've also tried adding buttons to your Init Script file like mentioned in this other issue but it also doesn't seem to work.
The link you mentioned is the old way. The new way is described in the readme.
from tool-bar.
Cool, thank's @jerone and @christopherdwhite, now I get it.
from tool-bar.
@suda It might be a good idea to update the readme with a better description, now that more people are looking at this package after recent mention on Atom: http://blog.atom.io/2015/05/21/new-package-roundup.html.
from tool-bar.
I agree wtih @jerone .
from tool-bar.
So if you aren't using the flex toolbar is the intent for users to create their own package that more-or-less mirrors the tool-bar-main?
from tool-bar.
@christopherdwhite commented on 23 mei 2015 20:45 CEST:
So if you aren't using the flex toolbar is the intent for users to create their own package that more-or-less mirrors the tool-bar-main?
The intent of a service is to optionally hook into and use it when available. For example on the Status Bar, the package Deprecation Cop shows the amount of deprecations in the statusbar when the statusbar service is available. An user could disable the Status Bar package and the service will never start, while other packages still keep working (just not with a tile in the statusbar).
The intent of this package is to copy that idea and make it possible for other packages to append a button that does something for that package. An use-case could be a button for the Markdown Preview package.
The Flex Tool Bar takes this concept to a whole new level and makes it possible to append multiple buttons per user needs.
When this package matures, it might be a cool idea to bring it to Atom's attention.
from tool-bar.
Thanks Jerone, I'm still new to Atom and don't yet know too much about package development and the community, that's really helpful!
And I did get the Flex Tool Bar working, I just had a syntax error in the JSON and was too tired last night to catch it.
from tool-bar.
Related Issues (20)
- [Performance] improve atom.tooltips.add HOT 1
- Failed to activate the tool-bar package HOT 3
- [Feature] tool-bar manager UI HOT 1
- Failed to load the tool-bar package HOT 2
- Failed to load the tool-bar package
- Failed to load the tool-bar package
- Failed to load the tool-bar package HOT 1
- Failed to load the tool-bar package HOT 1
- Failed to load the tool-bar package HOT 1
- Failed to load the tool-bar package HOT 1
- Failed to load the tool-bar package HOT 1
- Failed to load the tool-bar package HOT 1
- Failed to load the tool-bar package HOT 1
- More info on "Failed to load the tool-bar package" issues. Temporary solution for users. HOT 1
- Touch Bar integration broken (again) HOT 7
- Error deactivating package HOT 2
- missing tool bar
- Deprecated selector in `tool-bar\styles\tool-bar.less` HOT 1
- Action Required: Fix Renovate Configuration
- I can't download it HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tool-bar.