Hi all-
I'm working on a bundle for the J language, which has some unusual features.
I wanted to know whether there's a way of altering what TM_CURRENT_WORD's idea of "current word" is? I didn't have much luck finding something in the manual or list concerning this. Particularly if it can be redefined on a per scope basis. (I wouldn't want to make global changes!)
I certainly can use TM_CURRENT_LINE and TM_LINE_INDEX, and examine what's around the caret, but if there's a more elegant way, I'd love to know about it.
Thanks!
Charles Turner
On Sat, Aug 22, 2009 at 2:51 PM, Charles Turnervze26m98@optonline.net wrote:
I wanted to know whether there's a way of altering what TM_CURRENT_WORD's idea of "current word" is? I didn't have much luck finding something in the manual or list concerning this. Particularly if it can be redefined on a per scope basis. (I wouldn't want to make global changes!)
Are you talking about something like what's in the "Text Editing" preferences? This augments what TextMate sees as a word globally.
On Aug 23, 2009, at 1:11 AM, Oliver Taylor wrote:
Are you talking about something like what's in the "Text Editing" preferences? This augments what TextMate sees as a word globally.
Thanks Oliver! I was aware of this feature, but wouldn't want to muck with it to accommodate J's idea of a word.
I was hoping there was something that would allow me to define TextMate's idea of a "word" within the scope of J source files only...
As it stands, I'm pushing forward using the current line and caret position.
Best, Charles
On Aug 23, 2009, at 11:18 AM, Charles Turner wrote:
On Aug 23, 2009, at 1:11 AM, Oliver Taylor wrote:
Are you talking about something like what's in the "Text Editing" preferences? This augments what TextMate sees as a word globally.
Thanks Oliver! I was aware of this feature, but wouldn't want to muck with it to accommodate J's idea of a word.
I was hoping there was something that would allow me to define TextMate's idea of a "word" within the scope of J source files only...
As it stands, I'm pushing forward using the current line and caret position.
I requested this years ago. Apparently to hard to implement in TM, hoping/waiting for TM2.
IMHO a mandatory feature of any decent source code text editor, and one of my pet peeves with TM.
Gerd
On Aug 23, 2009, at 1:17 PM, Gerd Knops wrote:
IMHO a mandatory feature of any decent source code text editor
Thanks for the confirmation, Gerd.
J might be a litmus test. Here's a sample phrase:
NB. J Phrases Section 12A. Finance
d0=: %@>:@(] % 100"_) #. |.@[ NB. Present value flows x at y%
:-)
Charles