In Bundles > TODO > Preference I¹ve accidentally deleted the TODO marker.
In the ³Pattern² box, what regular expression do I need to use to find all
TODOs in a project?
Thanks
Ross
Does anyone have a solution to restore tabs when a new favorite project is opened?
I have several projects I work with, switching back and forth frequently. In TM1, opening a project would restore the previously opened tabs. In TM2 when a favorite is reopened no tabs are restored (which is understandable since I don’t believe there is any machinery to do this). I do know that the initial session is restored at application launch, from the last project closed when the TM2 application is closed.
Ideally, I would like a mechanism that could save the meta data (files open in tabs and cursor position) for any favorite project when it is closed and restore the session when a favorite is reopened. If I have ’n’ different favorite projects, I would have ’n’ different sessions saved.
If there is a way to run a shell script “hook” at close and open of a favorite, I suppose I could write some code to do this. Since I’m somewhat new to TM2, I’m not sure what capabilities are available to do things like this.
Thanks for any help or suggestions.
— dave
Hello,
I'm transitioning to Textmate 2 and I would like to use some 'commands' that I used with Textmate 1.5, mainly for LateX, but I am having trouble.
As a simple example, in Textmate 1.5, I wrote a command that opened a Terminal window and listed the LaTeX master file, thus:
---------------------------------
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
TM_LATEX_MASTER=`${TM_RUBY:-ruby} <<"RUBY"
require "#{ENV['TM_SUPPORT_PATH']}/lib/escape.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/LaTeXUtils.rb"
master = LaTeX.master(ENV['TM_LATEX_MASTER'] ||
ENV['TM_FILEPATH'])
puts master
RUBY`
cd ${TM_DIRECTORY}
/Users/gkv/scripts/term2 "echo ${TM_LATEX_MASTER} "
-------------------------------------
The script 'term2' opens a terminal window and executes the command following. This command now longer works in Textmate 2. However, Textmate 2 certainly knows what the master file is, because the standard Textmate command for opening the master file works as expected. What would the correct script be? Please be explicit in any answer you may have, as I am an end-user not a programmer!
More generally, is there a place I can read about how to construct such commands in Textmate 2.
Regards,
Geoff
Thanks Allan,
For the record I upgrade to a new TextMate version and did not change python in any way. I did notice TM_PYTHON was gone so I re-added and it didn't work at the time. Re-installed Canopy 1.1.1 python and added the path again with TM_PYTHON to the new location and it worked today.
Thanks,
-D
On Nov 11, 2013, at 4:00 AM, textmate-request(a)lists.macromates.com wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. networkx, scipy load errors in TextMate (Dave Gianetto)
> 2. Re: LaTeX: Improving bibliographical label completion
> (Allan Odgaard)
> 3. Re: networkx, scipy load errors in TextMate (Allan Odgaard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 10 Nov 2013 08:00:35 -0800
> From: Dave Gianetto <dgianetto(a)icloud.com>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] networkx, scipy load errors in TextMate
> Message-ID: <4E9BF255-834B-44E7-BC04-7D37D73B9312(a)icloud.com>
> Content-Type: text/plain; charset=us-ascii
>
> I posted this to Github here:
> https://github.com/textmate/python.tmbundle/issues/34#issuecomment-28008122
>
> Essentially, I upgraded recently to the latest TextMate alpha version and immediately could not load networkx and scipy libraries, though all other libraries can be loaded. Some have mentioned the need for path variables, I tried these and there is no difference. Further, I don't see how a path issue causes certain libraries of a common distribution (Enthought Canopy 1.1.1) to not be loadable.
>
> Any help is appreciated,
> -Dave
>
> ------------------------------
>
> Message: 2
> Date: Mon, 11 Nov 2013 02:37:10 +0700
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: LaTeX: Improving bibliographical label completion
> Message-ID: <63582790-D6FD-46A6-B42B-A902FD70D8A0(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 10 Nov 2013, at 2:35, JairoB wrote:
>
>> Ok, I found the rb file on my system. Once I edit it, what do I need
>> to do to
>> make the changes effective? Do I need to compile it? (Sorry for the
>> newbie
>> questions.)
>
> Ruby is an interpreted language, so nothing is required after making
> changes, just re-run your test in TextMate.
>
> Before making changes, you may wish to ?git clone? the bundle to
> ~/Library/Application Support/Avian/Bundles so that changes you make are
> not overwritten on updates. Though after installing the bundle locally,
> you will have to manually update it (git pull).
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 11 Nov 2013 02:45:52 +0700
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: networkx, scipy load errors in TextMate
> Message-ID: <4C16292F-9A77-4934-8FBB-FF3F52A1EF19(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 10 Nov 2013, at 23:00, Dave Gianetto wrote:
>
>> [?] I don't see how a path issue causes certain libraries of a
>> common distribution (Enthought Canopy 1.1.1) to not be loadable.
>
> OS X ships with a version of python. Programs find this by looking at
> the locations specified via the PATH variable.
>
> This means that if you install a custom version of python, then you can
> make it be used by altering PATH, or if you just need it to be used by
> TextMate, you can set the TM_PYTHON variable.
>
> It?s unclear to me if you installed the networkx module for the system
> python, or you installed a completely new version of python with its own
> modules, but I do think you did the latter.
>
> This means that you need to instruct TextMate to use this new version of
> python, e.g. by setting TM_PYTHON.
>
> First though you need to figure out if a) this is actually what you did,
> and b) where this new version of python was installed.
>
>
> ------------------------------
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
> End of textmate Digest, Vol 66, Issue 17
> ****************************************
I posted this to Github here:
https://github.com/textmate/python.tmbundle/issues/34#issuecomment-28008122
Essentially, I upgraded recently to the latest TextMate alpha version and immediately could not load networkx and scipy libraries, though all other libraries can be loaded. Some have mentioned the need for path variables, I tried these and there is no difference. Further, I don't see how a path issue causes certain libraries of a common distribution (Enthought Canopy 1.1.1) to not be loadable.
Any help is appreciated,
-Dave
This is not a bug report but a question on how I could improve TM for my
personal use.
I use a macro \myhyperbibitem that extends the usual \bibitem to allow
hyperlinks in the bibliography. (If you're curious:
http://tex.stackexchange.com/questions/39177/web-links-in-the-bibliographic…
)
Is it too difficult to edit the LaTeX bundle so that the drop-down menu that
appears when I hit Command+Esc on \cite{} also includes both kinds of labels
(\bibitem and \myhyperbibitem)?
Here's an example:
\myhyperbibitem[St]{http://tex.stackexchange.com/}{Stack} Stackexchange --
Tex
\bibitem[Ho]{Hobbit} J.R.R. Tolkien. The Hobbit.
In this case, the labels that should appear on the drop-down list are
"Stack" and "Hobbit".
PS: Thank you Allan for solving the \ref{} problem.
-----
Jairo Bochi
http://www.mat.puc-rio.br/~jairo/
--
View this message in context: http://textmate.1073791.n5.nabble.com/LaTeX-Improving-bibliographical-label…
Sent from the textmate users mailing list archive at Nabble.com.
With 9491I am experiencing a problem that occurs when I switch from one document in a tab to another document in a tab. If I move the cursor to, say, line 196 in one document, then move to the document behind another tab, once I return to the document behind the first tab, the cursor is still on line 196 but the document scrolls (quickly) up about a page (around line 126 in the case I am looking at right now) so that the cursor is no longer in view.
I run TextMate on OS 10.9, this happens on LaTeX documents.
Is anyone else experiencing this?
Kyle
--------------------------------------
Kyle Johnson
Linguistics Department
University of Massachusetts
Amherst, MA 01003
Looking for help with language grammar. Coding in perl, and adding pod (documentation) within a codeblock, pod code gets automatically indented. Is there a way to have lines that begin with a = symbol auto- 'out-dent'? And then any subsequent lines, before a '=cut' line to be indented to match the previous line?
It's been a long time since I've looked at the language grammars in TM and, if they've changed in TM2 then I'm starting afresh. Any clues where to start would be gratefully received.
--
Justin Catterall www.masonsmusic.co.uk
Director T: +44 (0)1424 427562
Masons Music Ltd F: +44 (0)1424 434362
For full company details see our web site
TextMate version 2.0-alpha.9495 on OS X 10.9 (Mavericks)
Clean install, no customisations, using the version of Apache that comes with Mavericks.
Bundles > Apache > Open Config…
fails with the following:
> sh: : command not found
> Open Config…:40:in `load': Cannot parse a NULL or zero-length data (OSX::PropertyListError)
> from Open Config…:40
Should I report this to the Apache bundle maintainer? If so, is this the right place to report an issue:
https://github.com/textmate/apache.tmbundle/issues
Thanks in advance.
Best, Darren
Hi,
I'm trying to symlink parts of my Application Support folder off into
Dropbox so I can share between machines.
In doing so, I noticed some rather odd behaviour. My belief was that
TextMate2 used the ~/Application Support/Avian folder for everything you
install and all it's deltas but that it still loads items from
~/Application Support/TextMate so that you can pull your old
bundles/plugins etc. from TextMate1.
However, there seem to be inconsistencies. When I double click a .tmbundle
file, this seems to be installed into the Avian folder but when I double
click a .tmplugin file this goes into the TextMate folder.
Am I completely misunderstanding how this stuff works? Which of the folders
is it I need to symlink out, or both to be able to share between machines?
Dom