I have been using rmate successfully -- installed with "gem install rmate"
on an Ubuntu system -- but rmate wasn't being recognised by the root user
(via sudo commands) so I did some fooling around in trying to install rmate
for root. Didn't go well so I gave up. The problem is now it doesn't work
for any user.
When I type "rmate filename" I get:
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:148:in
> `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:148:in
> `new'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:148:in
> `connect_and_handle_cmds'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:186:in
> `block in <top (required)>'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:185:in
> `fork'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:185:in
> `<top (required)>'
>
> from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/rmate:23:in `load'
>
> from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/rmate:23:in `<main>'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in
> `eval'
>
> from
> /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in
> `<main>'
>
Not being a rubiest or even much Ubuntist I'm seeking help from the
community. Anyone have any ideas how I can get back to normal?
Ken
p.s. I did try uninstalling and reinstalling (with gem) but that didn't
change the behaviour.
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.