Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippets in Virtual Spaces #676

Open
philiprbrenan opened this issue Oct 5, 2015 · 1 comment
Open

Snippets in Virtual Spaces #676

philiprbrenan opened this issue Oct 5, 2015 · 1 comment

Comments

@philiprbrenan
Copy link

Screenshot 1:
snippets1

Screenshot 2:
snippets2

In Screenshot(1) I used the snippet feature on line 1 to convert aa+tab into a bold a.
I then drew a virtual spaces line through the next five lines (2-6) to repeat the procedure over these five lines. When I pushed tab however, the snippet feature did not engage as per Screenshot(2) and all I got was a tab repeated across the five lines. Should the snippet feature engage in these circumstances to ensure consistency?

@elextr
Copy link
Member

elextr commented Oct 5, 2015

Snippets are triggered by keypress notifications to be sure that the user typed the snippet, otherwise they could be triggered by pastes as well.

Unfortunately when doing multiple insertions Scintilla does not report the keys typed, it appears to report it as insertions, which sort of makes sense. But that does not trigger snippets.

Not sure how to distinguish multiple insertions from user typing and multiple insertions from other causes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants