Git Product home page Git Product logo

Comments (8)

ChristinWhite avatar ChristinWhite commented on May 27, 2024

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.

jerone avatar jerone commented on May 27, 2024

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.

fuechter avatar fuechter commented on May 27, 2024

Cool, thank's @jerone and @christopherdwhite, now I get it.

from tool-bar.

jerone avatar jerone commented on May 27, 2024

@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.

fuechter avatar fuechter commented on May 27, 2024

I agree wtih @jerone .

from tool-bar.

ChristinWhite avatar ChristinWhite commented on May 27, 2024

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.

jerone avatar jerone commented on May 27, 2024

@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.

ChristinWhite avatar ChristinWhite commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.