I'm probably daft and just not finding it, but what I cannot find is a way to navigate inside of a columnar selection. There are several situations in which I want to make a change in the middle of a column selection, instead of the edge, or even more likely more than one change in said selection. Simple arrow movement certainly isn't the way as that undoes the selection. What is the obvious thing that I'm missing?
Regards,
Robert
Are we talking about the column editing initiated by pressing the option key? Then I think it will start editing on the column that first selection in the first row starts from. This still doesn't solve the more than one change issue. I agree it would be nice if left-right arrow and delete did not cancel the columnar editing mode, but I am sure Allan had some good reason for implementing it this way. On Apr 10, 2005, at 11:19 AM, Robert M.Zigweid wrote:
I'm probably daft and just not finding it, but what I cannot find is a way to navigate inside of a columnar selection. There are several situations in which I want to make a change in the middle of a column selection, instead of the edge, or even more likely more than one change in said selection. Simple arrow movement certainly isn't the way as that undoes the selection. What is the obvious thing that I'm missing?
Regards,
Robert
Robert M. Zigweid rzigweid@zigweid.net http://rzigweid.zigweid.net ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Haris
On Apr 10, 2005, at 18:19, Robert M.Zigweid wrote:
I'm probably daft and just not finding it, but what I cannot find is a way to navigate inside of a columnar selection. There are several situations in which I want to make a change in the middle of a column selection, instead of the edge, or even more likely more than one change in said selection. Simple arrow movement certainly isn't the way as that undoes the selection. What is the obvious thing that I'm missing?
I'm not sure exactly what you want to do, maybe post an example of the text you want to change?
But to “enter” the selection you can press cmd-option-A (works for normal selections only). This places the caret on the end of the first line, you can move it backwards and make changes.
On Apr 10, 2005, at 11:40 AM, Allan Odgaard wrote:
But to “enter” the selection you can press cmd-option-A (works for normal selections only). This places the caret on the end of the first line, you can move it backwards and make changes.
Cool, I hadn't realized you could move backward and preserve the selection. One question then: Why can't the same be done when the columnar selection is enabled through the option key?
Haris
On Apr 10, 2005, at 19:13, Charilaos Skiadas wrote:
But to “enter” the selection you can press cmd-option-A (works for normal selections only). This places the caret on the end of the first line, you can move it backwards and make changes.
Cool, I hadn't realized you could move backward and preserve the selection. One question then: Why can't the same be done when the columnar selection is enabled through the option key?
It will eventually be possible. Initially I wasn't sure exactly how to handle the case for a column-selection. If we have (selection of left column):
+--------------+ |@"declaration"| [NSDictionary ...] |@"keywords" | [NSDictionary ...] |@"strings" | [NSDictionary ...] +--------------+
I think using cmd-option-A should place carets like this:
@"declaration"| [NSDictionary ...] @"keywords"| [NSDictionary ...] @"strings"| [NSDictionary ...]
I.e. placing the caret before the last white-space sequence of each selected sub-line.
Hello
Can I use Textmate as a front end for XeTeX ?
Did somebody already make the experiment ?
Actually i use TM with pdfLateX and Acrobat Reader :
/usr/local/teTeX/bin/powerpc-apple-darwin-current/pdflatex --shell-escape -interaction=nonstopmode -file-line-error-style "$TM_FILEPATH" | perl -e 'while(<>){$f.=$_}$_=$f;s/([^\n])\n([^\n])/$1$2/g;print;' echo echo "Previewing..." echo $TM_FILEPATH | perl -e 'while(<>){s/.tex$/.pdf/;print;}' | xargs open -a Reader
I need the -sheel-escape option because i work with pstricks and postscript . It's fine and i've no problem to get the PDF files.
Thanks
Alain Matthes
Hello Alain, It is simple, just replace pdflatex with Xelatex.
cd `dirname "$TM_LATEX_MASTER"` $xelatex --shell-escape -interaction=nonstopmode -file-line-error \ "$TM_FILEPATH" | perl -e 'while(<>){$f.=$_}$_=$f;s/([^\n])\n([^\n])/$1$2/g;print;' echo echo "Previewing..." echo $TM_FILEPATH | perl -e 'while(<>){s/.tex$/.pdf/;print;}' | xargs open -a Reader
If you want the file to show in Textmate's htmlbrowser rather then opening Reader, just use the existing Latex bundle command and replace pdflatex with Xelatex.
Cheers Robert
On Apr 11, 2005, at 8:34 AM, Alain Matthes wrote:
Hello
Can I use Textmate as a front end for XeTeX ?
Did somebody already make the experiment ?
Actually i use TM with pdfLateX and Acrobat Reader :
/usr/local/teTeX/bin/powerpc-apple-darwin-current/pdflatex --shell-escape -interaction=nonstopmode -file-line-error-style "$TM_FILEPATH" | perl -e 'while(<>){$f.=$_}$_=$f;s/([^\n])\n([^\n])/$1$2/g;print;' echo echo "Previewing..." echo $TM_FILEPATH | perl -e 'while(<>){s/.tex$/.pdf/;print;}' | xargs open -a Reader
I need the -sheel-escape option because i work with pstricks and postscript . It's fine and i've no problem to get the PDF files.
Thanks
Alain Matthes ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Apr 11, 2005, at 17:34, Alain Matthes wrote:
echo $TM_FILEPATH | perl -e 'while(<>){s/.tex$/.pdf/;print;}' | xargs
I generally avoid commenting on code unless I'm asked, but here's a few tips which I think will be useful in a lot of TM-related shell scripts, don't take it personal that this was triggered by your script! :)
The shell is capable of doing replacements in variables. There's a few different forms, for this one, one can do: ${variable%suffix_to_remove}, e.g.:
${TM_FILEPATH%.tex}.pdf
Another form is (for single replacement): ${variable/search/replace} and to replace all instances it's: ${variable//search/replace}.
Another neat thing is that we can set stdin for a command to a string using <<<, for example:
perl <<<$TM_FILEPATH -pe 's/.tex$/.pdf/' | xargs
Kind regards Allan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Thanks Allan, I'm going to flag this message to refer to again and again. Especially the stdin <<< which i keep forgetting about.
Please feel free to keep the tips coming ;)
Robert
On Apr 12, 2005, at 7:00 AM, Allan Odgaard wrote:
On Apr 11, 2005, at 17:34, Alain Matthes wrote:
echo $TM_FILEPATH | perl -e 'while(<>){s/.tex$/.pdf/;print;}' | xargs
I generally avoid commenting on code unless I'm asked, but here's a few tips which I think will be useful in a lot of TM-related shell scripts, don't take it personal that this was triggered by your script! :)
The shell is capable of doing replacements in variables. There's a few different forms, for this one, one can do: ${variable%suffix_to_remove}, e.g.:
${TM_FILEPATH%.tex}.pdf
Another form is (for single replacement): ${variable/search/replace} and to replace all instances it's: ${variable//search/replace}.
Another neat thing is that we can set stdin for a command to a string using <<<, for example:
perl <<<$TM_FILEPATH -pe 's/.tex$/.pdf/' | xargs
Kind regards Allan
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
I have been using a shell of some sort for 8 years now and i had not known that you could do that. how humbling.
On Apr 12, 2005 10:00 AM, Allan Odgaard allan@macromates.com wrote:
On Apr 11, 2005, at 17:34, Alain Matthes wrote:
echo $TM_FILEPATH | perl -e 'while(<>){s/.tex$/.pdf/;print;}' | xargs
I generally avoid commenting on code unless I'm asked, but here's a few tips which I think will be useful in a lot of TM-related shell scripts, don't take it personal that this was triggered by your script! :)
The shell is capable of doing replacements in variables. There's a few different forms, for this one, one can do: ${variable%suffix_to_remove}, e.g.:
${TM_FILEPATH%.tex}.pdf
Another form is (for single replacement): ${variable/search/replace} and to replace all instances it's: ${variable//search/replace}.
Another neat thing is that we can set stdin for a command to a string using <<<, for example:
perl <<<$TM_FILEPATH -pe 's/\.tex$/.pdf/' | xargs
Kind regards Allan
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 12-04-2005, at 16:08, Todd Boland wrote:
I have been using a shell of some sort for 8 years now and i had not known that you could do that. how humbling.
Yes but remember those are features specific to bash, so your shells might not have had them. info bash has a lot on this, but it's a rather poorly organized document IMO.
I'm happy to report that the two to three second delay I was experiencing when switching back to TM from other apps seems to have gone away in b8.
Steve
Stephen F. Steiner IDC ssteiner -at- integrateddevcorp.com www.integrateddevcorp.com (603)433-1232
Just something I'm curious about -
When you select 4 full lines (for sake of argument) and enter column mode, the caret spans 5 lines (one below the previous selection).
Is this intentional?
D
-----Original Message----- From: Allan Odgaard [mailto:allan@macromates.com] Sent: Monday, 11 April 2005 7:36 PM To: TM Users Subject: Re: [TxMt] Column selection navigation
On Apr 10, 2005, at 19:13, Charilaos Skiadas wrote:
But to "enter" the selection you can press cmd-option-A (works for normal selections only). This places the caret on the end of the first line, you can move it backwards and make changes.
Cool, I hadn't realized you could move backward and preserve the selection. One question then: Why can't the same be done when the columnar selection is enabled through the option key?
It will eventually be possible. Initially I wasn't sure exactly how to handle the case for a column-selection. If we have (selection of left column):
+--------------+ |@"declaration"| [NSDictionary ...] |@"keywords" | [NSDictionary ...] |@"strings" | [NSDictionary ...] +--------------+
I think using cmd-option-A should place carets like this:
@"declaration"| [NSDictionary ...] @"keywords"| [NSDictionary ...] @"strings"| [NSDictionary ...]
I.e. placing the caret before the last white-space sequence of each selected sub-line.
______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 12-04-2005, at 02:23, David Lee wrote:
Just something I'm curious about - When you select 4 full lines (for sake of argument) and enter column mode, the caret spans 5 lines (one below the previous selection). Is this intentional?
I already bugged Allan about this.. ;-). It is due to the fact that when you've selected four full lines, the cursor is internally placed at the start of the 5. even though it's not visible.... But I think maybe it should only select 4 lines in column mode in that case.
On Apr 12, 2005, at 10:40, Sune Foldager wrote:
Just something I'm curious about - When you select 4 full lines (for sake of argument) and enter column mode, the caret spans 5 lines (one below the previous selection). Is this intentional?
I already bugged Allan about this.. ;-). It is due to the fact that when you've selected four full lines, the cursor is internally placed at the start of the 5. even though it's not visible.... But I think maybe it should only select 4 lines in column mode in that case.
Try placing the caret at column 2 and use shift arrow down a few times, you'll get (X shows the selection):
XXXXXXXX XXXXXXXXXX XXXXXXXXXX XX
Pressing option once turns this into:
| | | |
This does IMHO make perfect sense, especially if you couple it with column-movement, or if you start with the caret at the last line and instead use shift arrow up.
Making the exception only when caret is at column 0 still would give a problem with column movement, e.g. if you have:
|foo bar fud
or
foo bar |fud
In first version you can use option-shift down + option and in the second you can use option-shift up + option both to get to:
|foo |bar |fud
On Apr 10, 2005, at 12:40 PM, Allan Odgaard wrote:
On Apr 10, 2005, at 18:19, Robert M.Zigweid wrote:
I'm probably daft and just not finding it, but what I cannot find is a way to navigate inside of a columnar selection. There are several situations in which I want to make a change in the middle of a column selection, instead of the edge, or even more likely more than one change in said selection. Simple arrow movement certainly isn't the way as that undoes the selection. What is the obvious thing that I'm missing?
I'm not sure exactly what you want to do, maybe post an example of the text you want to change?
But to “enter” the selection you can press cmd-option-A (works for normal selections only). This places the caret on the end of the first line, you can move it backwards and make changes.
Even if there is a way to enter a selection from a normal selection, this doesn't make navigating a columnar selection any easier.
This can happen in any number of situations. I've had the situation of having cut and pastes missing trailing ';'s (in c) and a typo in the selection at the same time. This is just an example. Two columnar selections can obviously solve this, but it would be more convenient to be able to move within the selection to solve both problems than having to do two of them
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate