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(a)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(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
Hello. Quicksilver is able to get the selected text and the currently
open document from TextMate using standard Cocoa stuff, but I’ve
always wanted a way to grab the file(s) selected in the File Browser.
This will require a new Quicksilver plug-in, but I can handle that end
of it.
Is there any way to ask TextMate for the selected file(s) when the
browser has focus?
And once I tell Quicksilver to use some app-specific selection behavior,
the currently working text selection is going to break, so I need a way
to get any selected text in the editor when it has focus as well.
If this isn’t currently possible, could it be added?
Thanks!
--
Rob McBroom
http://www.skurfer.com/
When using Command-R in the LaTeX bundle to typeset a document, the pdf opens at the page corresponding to the position of the cursor in the source. Watch Document, however, has the pdf open on the first page of the document, not the page corresponding to the position of the cursor in the source, and without the red dot on the precise passage. One needs to use Command-Option-Control-O to sync. Is it possible to have the Watch command sync the pdf right from the outset?
--Gildas
Hi,
thanks for the tip!
Command + [1-9] does the job, I wonder if that could be done
programmatically though.
I'm building a bundle to interact with Extempore, an environment used
(among other things) for audiovisual livecoding. More info here:
http://benswift.me/2012/09/26/interacting-with-the-extempore-compiler/
Essentially, the bundle [1] reads a scheme expression then sends its to the
Extempore server via TCP. The server returns some results which get printed
out to the HTML window (with some bells and whistles - that's why I'm not
using a simple tooltip).
The links you've suggested look very interesting but maybe a bit too
complex for my usecase? *Livereload* does not seem to be free though. I
should look more into *Browsersync*..
Thanks,
Michele
[1]
https://github.com/lambdamusic/xtm-utils/tree/master/textmate-bundle/Extemp…
(still a work in progress!)
----
Michele Pasin
http://www.michelepasin.org
On 4 February 2016 at 00:50, Graham Heath <heathg(a)google.com> wrote:
> You could use Command + [1-9] to reselect a tab.
>
> I don’t know what you’re building, but if you wanted to, you could add
> LiveReload <http://livereload.com/> or BrowserSync
> <https://www.browsersync.io/>, this would take care of auto refresh for
> you. This way you would only open the HTML output once, and refreshes would
> be triggered automatically on save.
>
> Graham Heath
>
> On February 3, 2016 at 3:42:44 PM, michele.pasin(a)gmail.com (
> michele.pasin(a)gmail.com) wrote:
>
> Ps: apologies for the email subject - sent too soon!
>
> Michele
>
>
> > On 3 Feb 2016, at 18:23, Michele Pasin <michele.pasin(a)gmail.com> wrote:
> >
> > Hi folks,
> >
> > I have a bundle command that generates some text and sends it to the
> 'HTML output' panel.
> >
> > That works wonderfully, however each time I do that the focus (cursor)
> switches to the 'HTML output' panel too.
> >
> > So I was wondering if there's a way to keep the focus on the main editor
> window (so to use the panel just as a nice 'feedback' window) and keep
> coding without interruptions.
> >
> > Any ideas?
> >
> > cheers
> > Michele
> >
> >
> >
> >
> >
> > <Screen Shot 2016-02-03 at 18.11.39.png>
> >
> >
> >
> >
> >
> >
> >
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
>
Hi,
I'm using TextMate 2.0-beta.8 on OS X 10.11.1 with v3.2.1 of the Go bundle
from:
https://github.com/syscrusher/golang.tmbundle
When I type "fmt." and press Option+Escape for code completion, it
uses TextMate::UI.complete with the :case_insensitive => false option.
That didn't seem ideal to me. All exported identifiers in Go begin with a
capital letter, but in terms of filtering, I would expect lowercase "p" to
filter to Print just as well as an uppercase "P".
So I modified the bundle, and then I saw why it is set the way it is.
In the completeAndInsertSnippet method of TMDIncrementalPopUpMenu.mm there
is a line that inserts the text being used for filtering rather than the
text from the choices.
insert_text([candidateMatch substringFromIndex:[[self filterString] length
]]);
The result is that fmt. [option+esc] [p] and pressing [Enter] gives me:
fmt.print
rather than the desired:
fmt.Print
I'm not really sure why it's done this way? Are there situations where
people want their filtering keys over the text present in the menu?
While I'm talking about code completion, and to drive the point home, I
noticed that TMDIncrementalPopUpMenu uses a BEGINSWITH predicate. Ideally
it would use a fuzzy match with similar logic to Go To File... That would
allow typing something like:
fmt. [option+esc] [p] [l]
to get Println from the list of candidates. In this case it becomes obvious
that "pl" is only for filtering and should not be inserted.
Finally, it would be great if it was possible to set an (additional) Key
Equivalent with a delay so that the popup menu came up when pressing ".",
or perhaps something more sophisticated based on the language grammar. I
realize that not everyone likes code completion popups automatically
appearing, but it would be nice to at least have the option.
Thanks,
Nathan.
--
Nathan Youngman
https://www.nathany.com
Hi folks,
I have a bundle command that generates some text and sends it to the 'HTML
output' panel.
That works wonderfully, however each time I do that the focus (cursor)
switches to the 'HTML output' panel too.
So I was wondering if there's a way to keep the focus on the main editor
window (so to use the panel just as a nice 'feedback' window) and keep
coding without interruptions.
Any ideas?
cheers
Michele
[image: Inline images 1]
Can see no templates in Textmate 2. Am I missing something?
How can I convert some Textmate 1 bundle templates (AS3) to work in TextMate 2?
Thank-you. Simon Lucas
My 2 cents. I’m not taking sides because I don’t use MD that much, but I noticed that the Michael Sheets version has more options, so we would need to have both of them installed which isn’t a big deal, but still. What are the differences between your version and his?
Greg
> On Jan 31, 2016, at 6:08 PM, textmate-request(a)lists.macromates.com wrote:
>
> GitHub Markdown Bundle (and making it official) (Mike McQuaid)