[TxMt] Re: Block Caret for writers (not only for LaTeX)
Novitzky Peter
pnovitzky at gmail.com
Mon Jul 20 19:58:25 UTC 2015
Hi Matt,
Thanks for your contribution on this issue. I tested it, 1st with the repeat 3x, which worked fine.
However, when I test it with the endless repeat, TM2 even my i7 CPU is becoming sluggish, not to mention that after few lines the highlight is starting to behave strangely (esp. at the end of the lines).
When I test this script on a file with 240 lines of text, cca. 23.000 words, the work with TM2 becomes super slow ... :-/
Conclusion: the block caret in the source of TM2 is still preferable ... Thanks though for trying to help. I appreciate it a lot!
Kind regards,
Peter
On 20 Jul 2015, at 17:44 pm, Matt Neuburg <matt at tidbits.com> wrote:
> This thread has inspired me to experiment with manually going like this:
>
> Shift-Left Arrow
> Right Arrow
> Shift-Left Arrow
> Right Arrow
>
> ... Repeat as necessary. The effect is exactly the same as a blinking block cursor.
>
> Now, how to automate that? Unfortunately, I don't think a TextMate macro can include a "delay" or "sleep" command. But AppleScript can!
>
> tell application "TextMate" to activate
> tell application "System Events"
> tell application process "TextMate"
> delay 1
> repeat 3 times
> key code 123 using shift down
> do shell script "sleep 0.5"
> key code 124
> do shell script "sleep 0.5"
> end repeat
> end tell
> end tell
>
> It's easy to trigger that with, say, a keyboard shortcut, and so the problem is effectively solved. m.
>
>
>> On Jul 18, 2015, at 10:28 AM, Novitzky Peter <pnovitzky at gmail.com> wrote:
>>
>> Any possibility of introducing this in the next version of TM2
>>
>> a) either as a switch in the TM2 Preferences,
>> b) or as setting in terminal through "defaults write ..." command?
>
> --
> matt neuburg, phd = http://www.apeth.net/matt/
> pantes anthropoi tou eidenai oregontai phusei
> Programming iOS 8! http://shop.oreilly.com/product/0636920034261.do
> iOS 8 Fundamentals! http://shop.oreilly.com/product/0636920034278.do
> RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list