On the command line, 'which git' returns '/usr/local/git/bin/git'
So I put that in the TM_GIT Shell Variables list. But now when I try to use the bundle it keeps giving me this error:
sh: line 3: /usr/local/git/bin/git : No such file or directory
Do you have PATH set in TextMate preferences? That could throw it off the scent.
Best wishes
----
David F. Snyder,
Department of Mathematics
Texas State University
601 University Drive
San Marcos, TX 78666
"It will be well for us not to assume an attitude of condescension
towards the crowd. Because in the matter of looking without seeing we
are all about equal. We all go to and fro in a state of the observing
faculties which somewhat resembles coma. We are all content to look and
not see." -- Arnold Bennett in "The Author's Craft" (1914)
dsnyder(a)txstate.edu
On the command line, 'which git' returns '/usr/local/git/bin/git'
So I put that in the TM_GIT Shell Variables list. But now when I try to use the bundle it keeps giving me this error:
sh: line 3: /usr/local/git/bin/git : No such file or directory
What could I be doing wrong?
Thanks!
Guessing I'm the 32342 person to ask this but google wouldn't help me out.
Any of you clever people out there know a way to define a file on a per
project basis to augment the autocomplete for the current scope and doc?
Main use cases for me are pointing to a library file to autocomplete method
names and pointing to a CSS file to be able to autocomplete ID and class
names.
Thanks for any help.
Will
I'm aware of some of the limitations (no shell + file management), but since the iPad allows for more `traditional' application, it's also a thing Apple could be forced to add features developers and customers want (see, for instance, a real dev kit for the iPhone).
In case of LaTeX, you'd also need some form of `multitasking:' after you finish editing, you compile the file and then you open it in a pdf reader.
However, without a clear sign of demand, nothing is going to change ;-)
Max
Dear all,
I've followed, from a far point of view, the migration of some bundles (in particular the Make bundle) from the old Subversion repository to the new GitHub repository. But I never took the time to go and fetch any bundle from what seems to be the future repository "of choice." Until... Makefile bundle disappeared after an SVN update on the root of my bundle directory.
I tried to use the GetBundle bundle to get the Makefile bundle, from the GitHub repository, but the command "Install Bundles" asks me to wait and finishes without other notice. I was about to try to get it using the command line Git tool, but as nothing in the TM manual tells about it, I don't like the idea. Plus, I cannot find a way to have a list of all the TM bundles from GitHub. And the archives of this list haven't helped me.
So here is my question: what is the "official" way to get bundles from GitHub?
Thanks in advance.
Best regards,
Mathieu
___________________________________________
Mathieu Godart
ASIC Integration Manager
Coolsand Technologies
___________________________________________
I'm not quite sure if this is a bug per-se, but I ran into a problem
attempting to create C & CPP template files, related to how the existing
Objective-C template shell works (and interacting with it):
When you create a new file from template using File->New From Template->foo
the environment variables for $TM_NEW_FILE and $TM_NEW_FILE_DIRECTORY seem
to get interpreted such that they wind up pointing at a directory under that
user's /tmp. The problem is that if any template shell script has already
created an "untitled<n>.h" file there, that file causes the new template
shell script's "exist" test to fail, and you wind up loading the (colliding)
file generated by the prior template shell script. When dealing with three
different template types (C, C++, and Objective-C) all who expect to also
generate a .h file, the chance of such a collision becomes very high.
I looked at possibly using a timestamp to try and differentiate, but that
causes a problem if the user actually triggers the template shell script
from the Project window. In that case, the script receives
properly-populated $TM_NEW_FILE and $TM_NEW_FILE_DIRECTORY variables, and
thus you don't have the same problem of trying to avoid "tmp" naming
collisions.
It seems like there are a couple of obvious solutions:
1. TextMate could populate a variable to indicate whether the template is
being run from the Project window (in which case $TM_NEW_FILE and kin are
properly populated, and should be unique), or from the "File->New From
Template" menu item (in which case they are not, and you need to avoid
collisions because all template scripts are dumping in the same tmp
directory, using "untitled"-based names).
2. Alternately, in the "File->New From Template" case, TextMate itself
could initially provide a _unique_ $TM_NEW_FILE_BASENAME and friends
(perhaps append a `date "+%y%m%d%H%M%S"` to the basename?). That would
prevent collisions in the tmp directory even when multiple templates
provided files with overlapping file extensions.
There also appears to be an issue over time of these left-over template
shell script file "breadcrumbs" created when "untitled<n>.foo" files are
initially created, but the user presumably saves the file with a real name
afterwards. There really doesn't appear to be any way for template scripts
to clean up the tmp dir after themselves. Not a big deal if the filename
collision problem gets solved, but eventually they'll start to create a fair
amount of "Spotlight clutter", etc. which can become an issue.
Love the program, and am quite impressed by how much is already possible
with V1's facilities. That said, I'm really looking forward to V2 and the
more powerful snippets/templates/etc. I've been rather spoiled by Slickedit
on PC, and keep hoping TextMate will offer similar abilities (I refuse to
use that X-Window abortion Slickedit calls a "Mac version").
Thanks!
-John W.
--
View this message in context: http://old.nabble.com/%22File-%3ENew-From-Template%22-shell-script-%22issue…
Sent from the textmate users mailing list archive at Nabble.com.
I doubt this can be done with the current version of TextMate but I want to
put it out there and see what people suggest.
When working on git repositories, I find myself jumping from branch to
branch often. We use branches heavily in my company for everything from
little on-demand bug fixes to entirely new features. Most times switching
branches means closing all tabs and opening tabs relevant to the selected
branch. It also often involves expanding a number of folders in the drawer
but this happens less often as I am a keyboard freak and rarely use the
drawer.
It would be awesome if switching branches could trigger TM to close the
current tabs and open the ones being worked on the last time this branch was
selected. Even better if cursors were moved to the right positions too.
Now, I realize this is too specific for TM to have natively but it would be
nice nonetheless. I wonder if a plugin could do this? Maybe by using git
branch identifiers as keys to layout specifications that can be saved
elsewhere as plugin data.
Does this sound doable? Can anyone point me in the right direction to
documentation that I can use to maybe give this a shot? I'm happy to work on
a plugin if people are interested in something like this.
Cheers.
Luis
Hi all,
Is there any way to change the highlight color of the text you are
searching for? I know that there is a Selection color option in the
Preferences, but I would rather leave that at the standard pale blue
(in the Mac Classic) for normal selection highlighting. I would like
to have the found text show with a background color of red, or some
shade of red. I find it difficult sometimes to scan a lot of real
estate in the edit window trying to find the text that was found. A
more dominant color would fit the bill here nicely.
Thanks,
Barry
Hi
I would like to make a command or a macro
to preview a file latex2e.html. This the LaTeX2e reference manual
http://www.tex.ac.uk/tex-archive/info/latex2e-help-texinfo/
1 ) I don't know how to make this
I try to convert latex2e.html to latex2e.markdown
with textmate and I try a command like
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "LaTeX2e Help" "LaTeX"
"$TM_SUPPORT_PATH/lib/markdown_to_help.rb" "/Users/ego/Library/latex2e.markdown"
html_footer
but there is a problem. Some links don't work
and sometimes I need to stop the task (wheel :) )
I try with latex2e.html it's better but I get
some similar problem.
2 ) If I open latex2e.html and I use show web preview then
it's fine but I don't know how to get this with a command
3 ) is it possible to record a macro for something like that ?
4) I can make something like that
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "$title" "Latex2e Reference manual"
open -a safari /Users/ego/Library/latex2e.html
html_footer
But I would like to make this with web_preview and perhaps without
a simple css.
Thanks Best regards
Alain Matthes
Hi
I've been digging in the sequence of calling that makes ^H to fail in C++ (TM 1.5.9 1589). It seems that
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/html_man.sh
looks for
RMAN_1='/Library/Application Support/Apple/Developer Tools/Plug-ins/DocViewerPlugIn.xcplugin/Contents/Resources/rman'
RMAN_2='/Developer/Library/Xcode/Plug-ins/DocViewerPlugIn.xcplugin/Contents/Resources/rman'
and vuala! the second one does not exists and the first one returns nothing looking for simple words like "printf"…
I am not aware of previous threads related with this one, but I don't doubt at all that there must be many.
Is there any workaround, update, or change I should do to have help working?
- juan falgueras
>
> Date: Tue, 12 Jan 2010 09:05:55 +0100
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: LaTeX bundle; reference/citation completion bug +
> suggested fix
>
> On 11 Jan 2010, at 09:55, Andrew Hill wrote:
> > it seems to be the character %0A
>
> 0x0A is not shown as a diamond with show invisibles.
>
> Try instead to select the diamond in TextMate and press ??X to
> convert it to hexadecimal.
>
>
Right you are!
My apologies and thanks for teaching me a new trick. I also just discovered
if I open up the "Edit -> Special Characters..." menu item, I can drag and
drop the character into the window there to see what it is.
Anyway, it's the 0x0D character (carriage return) — I suspect my browser or
the clip-board decided to clean up the line endings of the copied/pasted
text by converting CR to LF before...
So it's picking up the CR char because my .tex file has CRLF line endings,
and I guess the ruby script is finding ends of lines by LF character only.
To test this, I converted the document to LF line endings and the original
ruby script worked fine (as did the one with the .strip addition).
With the CRLF line endings, the .strip (or better yet a removal of just
trailing CR) is required. Alternatively, can ruby deal with CRLF line
endings on its own?
For completeness I tried saving my document with CR line endings, and the
error message was basically a re-paste of my entire document as the filename
(i.e. Ruby is not parsing the CR chars as line endings, only LFs). Though I
doubt anyone really uses CR line endings...
Andrew
Hello Hans,
thanks for the hints, but I believe you misunderstood me. I don't want to change syntax highlighting within the editor, but the colors in the output, which are now blue on blue. I have found out that there's a stylesheet for that somewhere on my system but I can't seem to find it. At least, it is not included in the bundle itself.
Regards,
Paul
Hello.
I completely switched from the R Console to R.tmbundle in TextMate and am until now very satisfied with my decision. Nevertheless, I'd like to change the colors in the runtime from all the blues to something more subtle. Is thery any way to do this with environment variables? I didn't find anything in the documentation.
Regards,
Paul
> Bundles → Bundle Editor → Show Bundle Editor… → Filter button
>
> You always want the TextMate, Text and Source bundles to be enabled.
Worked like a charm, thank you....
Boysenberry Payne
Habitat LIfe, Inc.
http://www.habitatlife.com/
> From: Michael Sheets <mummer(a)whitefalls.org>
> Date: January 23, 2010 3:10:53 AM MST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Messed up my perl bundle
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On Jan 23, 2010, at 3:32 AM, Boysenberry Payne wrote:
>
>> I messed up my perl bundle, i.e. it no longer indents after brackets opening brackets, etc.
>
> Bundles → Bundle Editor → Show Bundle Editor… → Filter button
>
> You always want the TextMate, Text and Source bundles to be enabled.
>> From: Boysenberry Payne <boysie(a)boysenberrys.com>
>> Date: January 23, 2010 2:32:44 AM MST
>> To: textmate(a)lists.macromates.com
>> Subject: [TxMt] Messed up my perl bundle
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> Hello,
>>
>> I messed up my perl bundle, i.e. it no longer indents after brackets opening brackets, etc.
>>
>> I did several things like install new Bundles, plugins etc. today and didn't check it until after doing it all, so I'm not really sure what broke it.
>> Anyway, I was hoping there was a way I could restore the perl bundle. I've already deleted both the ~/Library and /Library versions as well as deleted it in TM and restored it via the instructions online.
>> Nothing has fixed the issue. TO tell you the truth I'm not sure the bundle is even broken per se, just that it no longer indents after { etc...
>>
>> Anyway I can fix this?
>>
>> Thanks,
>> Boysenberry Payne
Hello,
I messed up my perl bundle, i.e. it no longer indents after brackets opening brackets, etc.
I did several things like install new Bundles, plugins etc. today and didn't check it until after doing it all, so I'm not really sure what broke it.
Anyway, I was hoping there was a way I could restore the perl bundle. I've already deleted both the ~/Library and /Library versions as well as deleted it in TM and restored it via the instructions online.
Nothing has fixed the issue. TO tell you the truth I'm not sure the bundle is even broken per se, just that it no longer indents after { etc...
Anyway I can fix this?
Thanks,
Boysenberry Payne
Hi. I did notice this before, but it is still there :/
Find dialog. RegExp, a text selected, Option-Find [Sigma] (to count only in the selection) => gives you wrongly the whole matched count, not the count inside the selection.
Thanks
(This message was already forwarded to bibiko(a)eva.mpg.de)
Hello -
I recently upgraded my OS and started having strange problems with the R
bundle. Multiple helper daemons would be spawned every time I typed in a
function name!
The problem code is patched below. I use MacPorts' "R", which does not match
the "/Lib.*" regexp. Instead, it should match "/opt/local/lib/R/bin/exec/R".
Any other patch should work as well.
Without the patch, every time there is an error with the "help" function, a
new "R" is spawned; (see the attached as an example). I had over 20
processes running at once, and was wondering why my fans were on and my
system was slow... :-)
Thanks!
-Andrew.
--
Andrew D. Fernandes, Ph.D. (andrew(a)fernandes.org)
Departments of Biochemistry and Applied Mathematics
The University of Western Ontario, Canada
Mobile Telephone +1 519 614 8106
Index: Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh
===================================================================
--- Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh (revision 11908)
+++ Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh (working copy)
@@ -1,4 +1,4 @@
-RPID=$(ps aw | grep '[0-9] /Lib.*TMRHelperDaemon' | awk '{print $1}' )
+RPID=$(ps aw | egrep '[0-9]
(/Lib.*TMRHelperDaemon)|(/opt/.*TMRHelperDaemon)' | awk '{print $1}' )
#check whether Helper daemon runs if not start it
if [ -z "$RPID" ]; then
WDIR="$TM_BUNDLE_SUPPORT"/bin
Hi
What is the best way to build this engine from TexShop
#!/bin/tcsh
set path= ($path /usr/texbin /usr/local/bin)
set filename = "$1"
set asyname = "${filename:r}.asy"
pdflatex -synctex=1 "$filename"
asy -v "$asyname"
pdflatex -synctex=1 "$filename"
Best regards
Alain Matthes
Hi,
I have this little problem, when I want to compile
with xelatex and with the xdv2pdf driver, I need to
go in the prefs of the LaTeX Bundle.
Remark : xdv2pdf is a good driver with the mac and
dvipdfmx _default driver_ has a problem with transparency)
I need to use xelatex engine with
option : -output-driver="xdv2pdf" -synctex=1
But I work normally with pdflatex and I need
to change all these prefs after each compile
with xelatex
With TexShop, I use
%!TEX TS-program = xelatex-xdv2pdf
How to get this with TM
Thanks
Best Regards
Alain Matthes
Forgive me if this has been beat to death on this list, but is there any
suitable way to develop in python using TextMate? The code collapsing
doesn't work, and the included python bundle does something I consider,
well, wrong by indenting blank lines to maintain the indentation level. This
isn't really a great thing to do.
Any tips?
--
Wells Oliver
wells(a)submute.net
The simplest "program" is two lines long -- the problems are related to matplotlib only:
import matplotlib.pyplot as plt
plt.figure()
I set the environment variable TM_PYTHON to /sw/bin/python
In Terminal, "which ipython" returns /sw/bin/ipython
If I execute both lines in ipython, the matplotlib window pops up, as expected.
While my two-line script is running in TextMate,
ps -Am
returns two (why two?) python processes:
1835 ?? 0:00.83 /sw/bin/python -u /Users/claushaslauer/Desktop/present work/test/mtplTest.py
1812 ?? 0:00.89 /sw/bin/python -u /Users/claushaslauer/Desktop/present work/test/mtplTest.py
sampling those two processes results in essentially identical files, only difference is the number in front of each line. I attached both files, because I can't interpret them.
For matplotlib:
In [3]: matplotlib.__version__
Out[3]: '1.0.svn'
installed via
http://macinscience.org/?page_id=6
Does this point to any issue?
Thanks,
Claus
On 2010-01-10, at 4:35 PM, textmate-request(a)lists.macromates.com wrote:
> Message: 6
> Date: Sun, 10 Jan 2010 15:59:02 +0100
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: still problems with matplotlib
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <4DF5B26D-1A4B-4F45-89E7-94A5C7DF9A17(a)textmate.org>
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
> delsp=yes
>
> On 10 Jan 2010, at 14:04, Claus wrote:
>
>> I removed the tm_interactive_input.dylib, however TM (python bundle
>> -- run script) is still keeps running for a long time until I "stop
>> task", no error message.
>>
>> Does anybody have other ideas?
>
> Run ps/pstree to see if Python is running.
>
> Use ?sample ?pid?? to sample the python process, that might give an
> idea of why it is stalling.
>
> Try minimize your script to the smallest possible that can reproduce
> the problem.
>
> ------------------------------