Hello, I do a lot of programming in fortran and I like textmate. However there are a few small things that dont work properly.
In punchcard fortran, comments begin on first column with "c" or "C". Textmate does not indent them correctly. If I cut and paste some existing comments, these get indented. I tried using
unIndentedLinePattern = '^\s*[cC]\s*.*$';
in "Indentation Rules" but it does not work. Can somebody help me with this ? Thanks praveen
On 7 Jun 2008, at 09:11, Praveen C wrote:
In punchcard fortran, comments begin on first column with "c" or "C". Textmate does not indent them correctly. If I cut and paste some existing comments, these get indented. I tried using
unIndentedLinePattern = '^\s*[cC]\s*.*$';
in "Indentation Rules" but it does not work. Can somebody help me with this ?
I added your line to the Fortran indentation rules, then copied a commented line and pasted it where it would prior to adding your pattern, be indented, and it was no longer indented.
Perhaps you can include an example of what breaks for you?
I have a similar problem with Fortran fixed-record format. Cut a line with C in the forst column, paste it, and it will be indented after preceding lines, with C no longer in the first column...
What's the way to paste unindented, or without any change if indentation?
Cheers, Alexy
On Jun 11, 2008, at 3:37 PM, Allan Odgaard wrote:
On 7 Jun 2008, at 09:11, Praveen C wrote:
In punchcard fortran, comments begin on first column with "c" or "C". Textmate does not indent them correctly. If I cut and paste some existing comments, these get indented. I tried using ...
Alexy Khrabrov deliverable@gmail.com asked:
What's the way to paste unindented, or without any change if indentation?
See the "Text Editing" panel of the TextMate preferences window.
Cheers, Paul
On 12 Jun 2008, at 02:47, Alexy Khrabrov wrote:
I have a similar problem with Fortran fixed-record format. Cut a line with C in the forst column, paste it, and it will be indented after preceding lines, with C no longer in the first column...
What's the way to paste unindented, or without any change if indentation?
You can paste w/o re-indent by using ⌃⌘V.
And yes, I got that problem _before_ I used Praveen’s un-indent pattern. But with that pattern, it works. So we should add it to the default Fortran bundle, but waiting to get a little more detail on the problem Praveen experienced.
This is strange. It still does not work for me. I even restarted textmate after adding the indentation rule but it does not work.
I dont have any specific example. It fails all the time. All I do is select and copy a comment line; if I paste it somewhere else, it is still indented.
There is already some preferences regarding comments indentation under "Comments - Punchcard" but that too does not seem to have any effect.
praveen
On Thu, Jun 12, 2008 at 12:37 AM, Allan Odgaard mailinglist@textmate.org wrote:
On 7 Jun 2008, at 09:11, Praveen C wrote:
In punchcard fortran, comments begin on first column with "c" or "C".
Textmate does not indent them correctly. If I cut and paste some existing comments, these get indented. I tried using
unIndentedLinePattern = '^\s*[cC]\s*.*$';
in "Indentation Rules" but it does not work. Can somebody help me with this ?
I added your line to the Fortran indentation rules, then copied a commented line and pasted it where it would prior to adding your pattern, be indented, and it was no longer indented.
Perhaps you can include an example of what breaks for you?
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 Jun 2008, at 14:00, Praveen C wrote:
This is strange. It still does not work for me. I even restarted textmate after adding the indentation rule but it does not work.
I dont have any specific example. It fails all the time. All I do is select and copy a comment line; if I paste it somewhere else, it is still indented.
Given that it works for me, there is a difference in what we do or what customizations we have.
I suggest reverting to the default Fortran bundle, where I committed your comment pattern, and if that still does not work for you, _do_ provide a step-by-step example of what you do and what you expect.