For a few days now, completion with esc has not been working.
What could be the cause?
Conflict with other modules? or what?
It does not work with ref{} or cite{}.
Any suggestions appreciated.
Christopher Brewster
*****************************************************
Natural Language Processing Group,
Department of Computer Science, University of Sheffield
Awesome, apreciate it Allan.
Very impressed you're on here answering questions. Consider me a an
"offical" textmate user now!
-J
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: October 20, 2006 1:42:15 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Executing command on all files in a project AND
> using TM variables in a search and replace
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 19. Oct 2006, at 22:12, J Fishwick wrote:
>
>> Command:
>> eval arr=("$TM_SELECTED_FILES")
>> for (( i = 0; i < ${#arr[@]}; i++ )); do
>> perl -pe 'while ($string =~ m/mc\d+(.*\n.*True)/g) {$string =~
>> s/mc\d+/tf$TM_FILENAME/g;}';
>> done
>>
>> Input: Entire Doc
>> Output: Replace selected text
>
> You need to set input/output to none/discard (or show tool tip, or
> maybe show as HTML and make your command output some progress info).
>
> Then your actual command needs to load the file itself, it already
> iterators over the selected files, it just doesn’t tell perl to
> load/overwrite each of them.
>
> So a simple example would instead be:
>
> eval arr=("$TM_SELECTED_FILES")
> for f in "${arr[@]}"; do
> perl -i.bak -pe 's/bar/bar/' "$f"
> done
> rescan_project # do this after you make changes to files, so TM
> will rescan
>
> This will replace foo with bar in all selected files (and create
> a .bak file with the old contents).
>
> Two other things: 1) inside single quoted strings, shell variables
> are not expanded, so if you want to use $TM_… then you need to use
> double quotes, and 2) TM_FILENAME is the filename of the file open
> when you called the file, it won’t update inside the loop. Here you
> would instead use the current file given by the loop (in my example
> $f).
>
On Oct 20, 2006, at 7:43 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/mailman/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. Re: Executing command on all files in a project AND using TM
> variables in a search and replace (Allan Odgaard)
> 2. Re: Latex: completion with esc not working (Christopher
> Brewster)
> 3. Re: TODO problem (Jasper van der Meulen)
>
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: October 20, 2006 1:42:15 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Executing command on all files in a project AND
> using TM variables in a search and replace
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 19. Oct 2006, at 22:12, J Fishwick wrote:
>
>> Command:
>> eval arr=("$TM_SELECTED_FILES")
>> for (( i = 0; i < ${#arr[@]}; i++ )); do
>> perl -pe 'while ($string =~ m/mc\d+(.*\n.*True)/g) {$string =~
>> s/mc\d+/tf$TM_FILENAME/g;}';
>> done
>>
>> Input: Entire Doc
>> Output: Replace selected text
>
> You need to set input/output to none/discard (or show tool tip, or
> maybe show as HTML and make your command output some progress info).
>
> Then your actual command needs to load the file itself, it already
> iterators over the selected files, it just doesn’t tell perl to
> load/overwrite each of them.
>
> So a simple example would instead be:
>
> eval arr=("$TM_SELECTED_FILES")
> for f in "${arr[@]}"; do
> perl -i.bak -pe 's/bar/bar/' "$f"
> done
> rescan_project # do this after you make changes to files, so TM
> will rescan
>
> This will replace foo with bar in all selected files (and create
> a .bak file with the old contents).
>
> Two other things: 1) inside single quoted strings, shell variables
> are not expanded, so if you want to use $TM_… then you need to use
> double quotes, and 2) TM_FILENAME is the filename of the file open
> when you called the file, it won’t update inside the loop. Here you
> would instead use the current file given by the loop (in my example
> $f).
>
>
>
>
>
>
>
> From: Christopher Brewster <C.Brewster(a)dcs.shef.ac.uk>
> Date: October 20, 2006 6:35:06 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Latex: completion with esc not working
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
>
>> On 19 Oct 2006, at 23:13, Charilaos Skiadas wrote:
>>
>>> Is this what they should be?
>>>
>> That looks right. Is this a saved file? Try it with both saved
>> files as well as untitled documents.
>
> The problem is specific to that project I am afraid. There is no
> problem with other latex files in other folders.
>
>> Is it part of a project, via TM_LATEX_MASTER?
>
> yes it is
>> Are you setting TM_LATEX_BIB? (You don't have to, just checking
>> your settings)
>
> Checking this I realised for Bibtex the path had changed. So the
> \cite{} case is solved.
> But the \ref{} case is still not working (in this project).
>
>> How are you testing that it is not working?
>
> for \ref{}
> put cursor in braces and press esc
>
>> Does the other completion command work, the one via opt-esc?
> This does nothing.
>
>> Make sure that you are up to date, I recently fixed a problem
>> someone else had that sounds possibly similar, though his was with
>> the Command Completion command.
> I am up to date.
>
> Thanks,
>
> Christopher
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
>
>
>
> From: Jasper van der Meulen <jasper(a)logt.nu>
> Date: October 20, 2006 7:43:02 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] TODO problem
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> I don't think you understand what i mean...
>
> I've got it in a picture now ..
>
> <screenshot 2.png>
> however
> Regards J.
>
>
> On 20-okt-2006, at 7:26, Allan Odgaard wrote:
>
>> On 20. Oct 2006, at 00:02, Jasper van der Meulen wrote:
>>
>>> Could it be that a project is different for the TODO ?
>>
>> It visits all files found under TM_PROJECT_DIRECTORY (using the
>> globally configured folder reference patterns for what to skip).
>>
>>
>>
>>
>> _____________________________________________________________________
>> _
>> For new threads USE THIS: textmate(a)lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
hello:)
In Typeset & View (PDF) i don't understand that :
# Set up TeX compiler, fallback to xelatex if document indicates it
if grep -Esq '\\usepackage{.*(xunicode|fontspec)|program=xelatex' "$M"
then DEF_TEX=xelatex
else DEF_TEX=pdflatex
What is the exact syntax to use XeLaTeX ?
Thanks
Greetings Alain
Hello,
I'm currently using kGTD as my tool of choice, but a pure text-based
solution looks very attracting. I see there are several bundles
mentioning GTD and I was wondering what were their differences and if
they were all maintained.
Additionally, is someone using one of these bundles and somehow
synchronizing their GTD setup to a Palm? If so, I'd be delighted to
hear about it.
Thanks a lot,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Hello,
I'm trying to get the MySQL bundle working so I can browse tables.
I get this on my MacBook Pro:
Traceback (most recent call last): File "/Applications/Document/
TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/Support/bin/
tableBrowser.py", line 284, in ? sys.exit(main()) File "/Applications/
Document/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/
Support/bin/tableBrowser.py", line 109, in main listTables
(dbName,dbHost,dbPort,serverType,passwd,dbUser) File "/Applications/
Document/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/
Support/bin/tableBrowser.py", line 130, in listTables mycon =
MySQLdb.connect(db=dbName,host=dbHost,port=int
(dbPort),user=dbUser,passwd=passwd) NameError: global name 'MySQLdb'
is not defined
I tried using tablebrowser.py standalone and it failed due to no
MySQLdb module for Python.
Downloaded and installed MySQLdb and now Python works properly with
the module and MySQL.
Alas, TextMate still can't find MySQLdb and fails with the same error.
I note that the first line of tablebrowser.py is:
#!/usr/bin/env python
My python is at:
/usr/bin/python
Is TextMate using some other Python than my native one?
If not, why can I interactively use Python with MySQL, but TextMate
won't work.
I have all the TM environment variables set so I don't think that is it.
Thoughts?
Thanks,
ml
In all the files in my project, where a certain string of characters is present,
I'm trying to replace a string with the a part of the file name containing said
string.
For example, files are called ace[1-12].xml, and for everytime there is a the
block: "mc\d+(.*\n.*True)" I want to replace mc\d+ with tf0(number prefix from
filename). I know this hits on a couple more adavanced concepts I don't have a
full grasp on yet, but this editor is goading me on to learn regex and basic
command line skills...
The command I have now is:
Save: nothing
Command:
eval arr=("$TM_SELECTED_FILES")
for (( i = 0; i < ${#arr[@]}; i++ )); do
perl -pe 'while ($string =~ m/mc\d+(.*\n.*True)/g) {$string =~
s/mc\d+/tf$TM_FILENAME/g;}';
done
Input: Entire Doc
Output: Replace selected text
It's choking big time... any pointers to the numerous places I'm screwing up?
Thanks~
Hi,
I just built up a Command as BASH which calls a perl script via
TM_BUNDLE_SUPPORT.
The perl script is calling CocoaDialog via $ENV{'TM_SUPPORT_PATH'} and
so forth.
Everything works fine.
Then I installed the same tmBundle at an other Mac. Same OS and TM version.
The funny thing now is that the perl script cannot call CocoaDialog
via TM_SUPPORT_PATH because TM_SUPPORT_PATH is set to
/Users/Bibiko/Library/Application Support/TextMate/Support.
I promise that I didn't set this variable to that path.
On the other hand I tried the bundle command 'Find In all Document'
which is a ruby script. Here it works with the variable
TM_SUPPORT_PATH. !!??!!
The only difference is that this ruby script is not written as a
separate file.
Please, help is needed.
If I use the command 'Show all TM.*' the TM_SUPPORT_PATH is also set
to this weird path.
Thanks in advance
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Is there a way to close all open tabs in a project without closing the
project? Is there some way I could create this? As a macro maybe? I'd
like to be able to map this to something like cmd+shift+W.
-dave
In all the files in my project, where a certain string of characters
is present,
I'm trying to replace a string with the a part of the file name
containing said
string.
For example, files are called ace[1-12].xml, and for everytime there
is a the
block: "mc\d+(.*\n.*True)" I want to replace mc\d+ with tf0(number
prefix from
filename). I know this hits on a couple more adavanced concepts I
don't have a
full grasp on yet, but this editor is goading me on to learn regex
and basic
command line skills...
The command I have now is:
Save: nothing
Command:
eval arr=("$TM_SELECTED_FILES")
for (( i = 0; i < ${#arr[ <at> ]}; i++ )); do
perl -pe 'while ($string =~ m/mc\d+(.*\n.*True)/g) {$string =~
s/mc\d+/tf$TM_FILENAME/g;}';
done
Input: Entire Doc
Output: Replace selected text
It's choking big time... any pointers to the numerous places I'm
screwing up?
Thanks~
hello
if i create a new file with Latex bundle and if i drag a .pdf file,
the result is correct
\begin{figure}[htbp]
\begin{center}
\includegraphics[height=3in]{/Users/ego/Desktop/
AmeriqueNordES2005.pdf}
\end{center}
\caption{caption}
\label{fig:label}
\end{figure}
but if i save the .tex file and i want to drag again a .pdf file :
the result is /usr/lib/ruby/1.8/pathname.rb:529:in ??? strange
Thanks for a solution
Alain Matthes
TextMate Version 1.5.3 (1292)