atom-seeing-is-believing
atom-seeing-is-believing copied to clipboard
auto run after `# =>`
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>
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)
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.