[TxMt] Re: How to put the cursor at the top of a document
Graham Heath
graham.p.heath at gmail.com
Wed Feb 10 21:43:06 UTC 2016
A couple of ideas here:
Simulate a command + up arrow keypress, with Applescript or other.
or
open a url; txmt://open/?url=file://[YOUR PATH HERE]&line=0
From the command line its just
open txmt://open/?url=file://[YOUR PATH HERE]&line=0
Thanks,
Graham Heath
On February 10, 2016 at 8:59:41 AM, Gary Ash (gary.ash at icloud.com ) wrote:
Hello,
I’m working on textmate 2 command that will process data from a file and insert some some information into the activate textmate document
I’ve got the bulk of the job working pretty well except I’d like to ensure the data is allows added to the top of the file. Can anyone tell me how to ensure the cursor is at the top of the document before I insert my data?
Thanks for any help
Gary
_______________________________________________
textmate mailing list
textmate at lists.macromates.com
http://lists.macromates.com/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160210/ddb6879e/attachment.html>
More information about the textmate
mailing list