Git Product home page Git Product logo

Comments (9)

Trudko avatar Trudko commented on May 17, 2024

I am happy to take a look at it during the weekend. I can at least start it :)

from flight-manual.atom.io.

nathansobo avatar nathansobo commented on May 17, 2024

Feel free to post any questions here as you work on that section.

from flight-manual.atom.io.

izuzak avatar izuzak commented on May 17, 2024

Note: there's a start of such a section, but it seems it's not finished and not included in the book (I'm guessing that happens when you use xx- as the prefix of the section?):

https://github.com/atom/docs/blob/master/book/03-hacking-atom/sections/xx-init-file.asc

from flight-manual.atom.io.

schacon avatar schacon commented on May 17, 2024

Yeah, this is a small part of what was in the old guides but I couldn't find a good point for it in the new docs. This is mostly because I couldn't find a great reason to use it - like a real example of what someone might put in there. I was thinking of putting it at the end of the chapter, using some of what we've learned to show what might go into a file like this.

@Trudko or @russlescai could you share some of what you put in your init.coffee file? Perhaps we can turn something there into a real example. And @izuzak is right, the start of the file is already there, it just isn't included in the build yet because it doesn't quite fit. It shows an example of beeping when Atom loads, which seems a bit silly to me. I would rather have a real example of something useful.

from flight-manual.atom.io.

russlescai avatar russlescai commented on May 17, 2024

I was thinking of adding a command to run a process. I assumed it was usually to add a command to add a trivial piece of code.

in this case I was going to add a command to read the contents of the current editor or open the file in sql management studio.

Not really reusable enough for a package, but scratches a particular itch.

from flight-manual.atom.io.

izuzak avatar izuzak commented on May 17, 2024

Might be helpful: http://jasonrudolph.com/blog/2014/03/02/defining-atom-commands-in-your-init-script/

from flight-manual.atom.io.

Trudko avatar Trudko commented on May 17, 2024

@schacon fair point. I already asked this questions my self here you can see some answers Share your init.coffee.

Personally I use it for something which is specific to my workflow but too small for creating whole package. For example I've created small custom command which opens test fixtures for class . I might created package so others could use it, but it would require extra effort to generalize it for others too.

from flight-manual.atom.io.

lee-dohm avatar lee-dohm commented on May 17, 2024

If you search for add to init.coffee on Discuss, there are many, many examples. Here are just a few:

Some of them are old and would need to be updated, but we're not lacking for examples 😀

from flight-manual.atom.io.

izuzak avatar izuzak commented on May 17, 2024

#65 brought back the section on init.coffee and added a more realistic example.

from flight-manual.atom.io.

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.