Comments (9)
I am happy to take a look at it during the weekend. I can at least start it :)
from flight-manual.atom.io.
Feel free to post any questions here as you work on that section.
from flight-manual.atom.io.
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.
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.
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.
Might be helpful: http://jasonrudolph.com/blog/2014/03/02/defining-atom-commands-in-your-init-script/
from flight-manual.atom.io.
@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.
If you search for add to init.coffee
on Discuss, there are many, many examples. Here are just a few:
- https://discuss.atom.io/t/add-semi-colon-at-end-of-line-and-return/12038/2?u=leedohm
- https://discuss.atom.io/t/dismiss-notifications-with-keyboard/15449/10?u=leedohm
- https://discuss.atom.io/t/quick-close-the-search-panel-results/13289/2?u=leedohm
- https://discuss.atom.io/t/jump-to-start-or-end-of-current-block/11333/2?u=leedohm
- https://discuss.atom.io/t/only-allowing-keybind-to-be-triggered-when-in-command-mode-vim-mode/15496
Some of them are old and would need to be updated, but we're not lacking for examples 😀
from flight-manual.atom.io.
#65 brought back the section on init.coffee and added a more realistic example.
from flight-manual.atom.io.
Related Issues (20)
- JS/CS ambiguity in Chapter 4 : Keymaps In-Depth : "Composed" Commands
- Additional information HOT 1
- Document how to disable CTRL+click HOT 2
- atom / flight-manual.atom.io HOT 1
- Wrong keybinding for paragraph re-flow
- Autocomplete section needs more info HOT 1
- Publisher failed to publish d666a79
- Update Debian/Ubuntu section of `installing-atom.md` HOT 1
- Publisher failed to publish 8e48ad2
- Publisher failed to publish 2a87315
- Publisher failed to publish a17d169
- Publisher failed to publish 56e380c HOT 2
- GrammarRegistry docs link to wrong location
- Have you tried to read the default installation screens or the screens in your documentation. Too black and purple on black is an oxymoron. for professionals, you should be able to do better than that. Atom.io is definitely not user friendly.
- Offline version of Atom Flight Manual HOT 1
- P
- Increasing readability of used terminology through adding a definition table HOT 1
- APM installation instructions not located where advertised
- Noxious16 atom
- Y
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 flight-manual.atom.io.