atom-seeing-is-believing icon indicating copy to clipboard operation
atom-seeing-is-believing copied to clipboard

auto run after `# =>`

Open JeanMertz opened this issue 8 years ago • 2 comments

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>

JeanMertz avatar May 04 '16 11:05 JeanMertz

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 avatar May 13 '16 06:05 JoshCheek

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.

JoshCheek avatar Oct 25 '16 14:10 JoshCheek