| Issue 89: | yas/expand only if and only if abbrev and yas/trigger-key where typed in succession | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Install and activate yasnippet the usual way 2. open a file with a mode where yasnippet has a snippet key for 3. simply move point to a word boundary, where the word before point is a snippet key 4. press tab What is the expected output? What do you see instead? If I haven't even started typing, there shouldn't be any snippet expansion. What version of the product are you using? On what operating system? yasnippet 0.6.1.b, CarbonEmacs 22.3.1, on Mac OS X 10.5.8 |
|
,
Sep 01, 2009
Let me get this straight, in your opinion snippet expansions should only happen on tab is the whole trigger key has just been typed,i.e. the most recently typed characters *are* the snippet key. To the best of my knowledge, YASnippet has never worked like this? Does anyone know what textmate does in this situation? |
|
,
Sep 02, 2009
I think the most of the pain will go away if you can fix issue 88 , because when I type TAB, most of the time I want to indent instead of expanding a snippet, but currently there's no way to remove that binding. This is something to think about however, it's been bothering be since 0.4 or so. |
|
,
Sep 02, 2009
Labelled this as an enhancement and changed title.
Summary: yas/expand only if and only if abbrev and yas/trigger-key where typed in succession
Labels: -Type-Defect Type-Enhancement |
|
,
Sep 02, 2009
FWIW, TextMate doesn't care whether the abbrev was typed or not. There are also some snippets that take advantage of this, usually by ending in "abbrev$0" so another TAB after finishing the snippet will trigger the next snippet. |
|
,
Sep 03, 2009
yes, but since its been bothering him since 0.4 or so, we better do something about it... :-) In view of the textmate behavior, labelled this low priority.
Status: Accepted
Labels: -Priority-Medium Priority-Low |
|
|
|