JoshCheek / atom-seeing-is-believing

Seeing is Believing integration for the Atom text editor.
Do What The F*ck You Want To Public License
62 stars 4 forks source link

auto run after `# =>` #25

Open JeanMertz opened 8 years ago

JeanMertz commented 8 years ago

I have (I guess?) some plugin that allows me to type #<tab> and it shows up as # => in any Ruby document.

It would be great if seeing-is-believing would automatically detect this, and show the results.

Beats #<tab> <alt+cmd+N>

JoshCheek commented 8 years ago

Oh, yeah, that would be cool ^_^

If you do "command-." it will show you the keybinding resolver (again to turn it off), which will let you see what things are getting run as you type. In this case, it looks like the expansion functionality comes from a snippets library. Probably check if it supports a post-expansion callaback, then you can run SiB with xmpfilter style (only updates the markers)

JoshCheek commented 7 years ago

Thinking about it, I don't want to turn that on generally speaking, b/c I use it a lot where I don't want that feature (primarily while teaching / explaining, when I want to ask the question of what will appear before letting them see the answer) but it would be cool to offer it as an optional feature.

However, since it comes from another library that I don't want to add as a dependency I think it best to not do this, unless it is a small amount of code and can do some sort of feature detection so that it won't break for someone who uninstalls that snippets lib.