Introduce triple bang syntax to remove triggers#218
Introduce triple bang syntax to remove triggers#218somini wants to merge 1 commit intogarbas:masterfrom
Conversation
|
Of course, this could be "solved" by forking the snippets repo, but #214 was solved in the same way of adding features to snipmate, so I think this is warranted. |
|
@somini I'm not against merging this, but I want to make sure I understand the intention first. Can you provide a detailed scenario (ideally with some sample file structure and snippets) of what you're trying to achieve? My understanding is that if you're editing, say, your personal |
|
My use case when I created this was the following: https://github.com/honza/vim-snippets/blob/master/snippets/python.snippets#L94-L121 https://github.com/honza/vim-snippets/blob/master/snippets/htmldjango.snippets#L41-L44 As for your comments, the assumptions are correct: |
|
@somini Sorry for the really late response! The format of the I'm hoping to spend more time on SnipMate in the coming weeks, so I can hopefully get this sorted once I finish up the work on #207. |
|
Rebased this onto the latest master. |
In a snippets file, `snippet!!! foo` will remove the trigger from the current lookup for the current context. Load order still matters. This is useful to override a series of triggers with different descriptions, and turn that into a single trigger, so that you don't have to choose.
|
Rebased this onto the latest master. |
In a snippets file,
snippet!!! foowill remove the trigger from thecurrent lookup for the current context. Load order still matters.
This is useful to override a series of triggers with different
descriptions, and turn that into a single trigger, so that you don't
have to choose.
Similar, but different to #214.