[TxMt] Re: Dot completion for triggering bundle command
Allan Odgaard
mailinglist at textmate.org
Fri Feb 3 10:27:25 UTC 2017
On 24 Jan 2017, at 3:24, Jacob Carlborg wrote:
> In TextMate it’s possible to set the key equivalent of a bundle
> command to a dot, the problem is that the dot will then not be
> inserted in the text. It’s also possible to manually write out a dot
> in the bundle command. The problem with that is that the dot is not
> actually in the text buffer when accessing it in the bundle command.
> This will most likely not work because whatever is parsing the source
> code to generate the completion expects the dot to actually be there.
One could do the completion command separately, then a macro that
inserts a dot and run the completion command.
> Is this something that can be implemented in TextMate, perhaps as a
> semantic class? Ideally it should be configurable to support any
> character, ideally more than one. Example, for many languages a dot is
> what’s needed, but for the C, C++ and Objective-C an arrow (->)
> would be necessary as well. Just to be clear, I’m only talking about
> a new way to trigger a bundle command, not implementing the actually
> completion.
I do have a note about supporting “trigger patterns” which would
allow this, these would be basic regular expressions, so you could also
have a command trigger on certain “behaviors”, but the use-case list
I have for this feature is very limited (despite sounding powerful),
which means it’s not that high on my list, but it is there.
More information about the textmate
mailing list