Scott Haneda | 1 Sep 01:40 2009

Remote code editing

I have asked this before, and I can not find the post, or any notes or  
emails on it.

When remotely editing code via for example, Interarchy, or any other  
ftp/ssh/sftp app, I can not get saving of code foldings.

Is this supposed to work?  I seem to recall back in the days of using  
BBEdit I would be able to tick off a "save state" and it would  
remember everything, from window position, line numbers on off, and a  
bunch of other things.

Thanks.
--

-- 
Scott * If you contact me off list replace talklists <at>  with scott <at>  *

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

ells public | 1 Sep 01:55 2009
Picon

Edit in Textmate Snow Leopard Services/Context Menu Commands

Attached are two services written to take advantage of Snow Leopard's context menu/automator integration. 

TxtToTM sends text selected in any application and opens a new TextMate window with that text inserted.  There is a rudimentary heuristic set up to check if the text is Javascript/HTML/CSS/Applescript and set the textmate bundle type accordingly. This is implemented through an Applescript in Automator. So this can be extended/improved/hacked by the many textmate users who are, no doubt, more proficient in Applescript than me. 

Edit in Textmate will open any file or folder selected in Finder in Textmate. Folders open to Projects. 
These services show up when contextually appropriate (i.e. when you have text selected it will be in your right click menu). 

To install unzip, and put the two files in ~/Library/Services. You may need to go to System Preferences/Keyboard/Services and make sure the box next to each of them is checked for them to show up in your context menu. 

These are written using Automator's new Create Service function in Snow Leopard, so are 64 bit compatible. I have no idea if they would work in 10.5. 
Attachment (TextMateServicesSL.zip): application/zip, 195 KiB

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
Jasper van der Meulen | 1 Sep 05:45 2009
Picon

Re: Edit in Textmate Snow Leopard Services/Context Menu Commands

Thanks, they work as aspected .. very nice.



Regards J.




On Sep 1, 2009, at 1:55 AM, ells public wrote:

Attached are two services written to take advantage of Snow Leopard's context menu/automator integration. 

TxtToTM sends text selected in any application and opens a new TextMate window with that text inserted.  There is a rudimentary heuristic set up to check if the text is Javascript/HTML/CSS/Applescript and set the textmate bundle type accordingly. This is implemented through an Applescript in Automator. So this can be extended/improved/hacked by the many textmate users who are, no doubt, more proficient in Applescript than me. 

Edit in Textmate will open any file or folder selected in Finder in Textmate. Folders open to Projects. 
These services show up when contextually appropriate (i.e. when you have text selected it will be in your right click menu). 

To install unzip, and put the two files in ~/Library/Services. You may need to go to System Preferences/Keyboard/Services and make sure the box next to each of them is checked for them to show up in your context menu. 

These are written using Automator's new Create Service function in Snow Leopard, so are 64 bit compatible. I have no idea if they would work in 10.5. 
<TextMateServicesSL.zip>
_______________________________________________
textmate mailing list
textmate-qhrM8SXbD5LrQoZeqNtYVdAWLNoT+7d/@public.gmane.orgm
http://lists.macromates.com/listinfo/textmate


_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
Mark Fletcher | 2 Sep 07:22 2009

Newbie questions

Hi All,

I downloaded TextMate today and am evaluating switching to it from Emacs. There are many things I like about it so far, but I have three questions.

I code in C++. When I try to re-indent a selected chunk of code, using Text -> Indent Selection, it seems to do the wrong thing for any code that appears after comment lines. Am I doing it wrong?

Also, is there any way to invoke Make from within TextMate. And finally, is there a gdb mode for debugging apps, like Emacs has?

Thanks!
Mark


_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
Allan Odgaard | 2 Sep 17:50 2009

Re: Subversion 1.6

On 19 Aug 2009, at 16:20, Fritz Anderson wrote:

> [...]
> In previous versions "svn update" would print a straightforward file-
> status list and exit. Now: [...] the tool waits on stdin; the  
> Subversion bundle I'm using doesn't
> expect that. I'm willing to believe there are environment variables  
> or directory properties that are mis-set.

We would need to give ‘--non-interactive’ to svn to prevent this.

A “new” svn bundle is in the works which I think does handle this  
properly, it can be found here:
http://svn.textmate.org/branches/Subversion%20(Interactive%20Input).tmbundle/ 
  — I hope this will simply replace the old one, but I think Luke  
still has a few things he wants to do before pushing it as main.

I’ll ping Michael about fixing the default update command.

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Allan Odgaard | 2 Sep 18:01 2009

Re: File Open -- Cancel Command

On 20 Aug 2009, at 18:26, brad tittle wrote:

> […]
> I seem to remember seeing a command that would stop this process. I
> searched the archives of the list, but apparently I didn't on the
> right word choices.

Sorry, no way to abort this.

> BTW. Part of the beauty of textMate is that it doesn't protect you  
> from such
> blunders. My chain saw expects me to know not to run it while the  
> chain is
> directed at my own leg. If I put a guard on the chain, it would make  
> the
> tool REALLY hard to use.

Well, I am trying to handle the various “don’t do that” noticable  
better in the future :)

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Allan Odgaard | 2 Sep 18:09 2009

Re: sort files with non-latin characters

On 21 Aug 2009, at 16:58, Freek Dijkstra wrote:

> I found a small bug. Since this is part of a bundle, the macromates
> website asked me to report it here.
>
> Summary: sort does not with euro symbol, and some other non-Latin
> characters. […]

This is a limitation of the locale files included with Leopard.

Snow Leopard has more complete locale files, so here it works as  
expected.

> What would be different for the "Sort lines in document" (which simply
> calls "sort") and the above script?

We call sort with ‘-f’ to “fold case” (so A < b < C etc.), this is why  
sort need to reference the locale info, which is not required if you  
don’t do any case folding.

I am not sure if we need to address this, given that the problem is  
fixed with Snow Leopard and the input causing the problem should be  
rare, plus the only fix I can think of would be to test if sort fails  
and if so, call it again without case-folding. hmm… I probably will  
end up spending a few minutes seeing if I can do a quick fallback fix :)

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Allan Odgaard | 2 Sep 18:13 2009

Re: Pycheckmate.py throws IndexError in Python bundle

On 21 Aug 2009, at 17:13, Jay Soffian wrote:

> On Wed, Aug 19, 2009 at 9:43 AM, Allan Odgaard<mailinglist <at> textmate.org 
> > wrote:
>> On 18 Aug 2009, at 21:46, J W-d wrote:
>>
>>> [...] Line 26 reads:
>>>     __version__ = "$Revision$"
>>>>
>>> When it should read:
>>>     __version__ = "$Revision 11734 $"
>>
>> The revision is put into that line by svn if you cat/export/checkout
>> the file.
>>
>> I see however that the git mirror does not have this revision, so I  
>> am
>> assuming you updated the bundle from git (maybe via GetBundles).
>> We’ll need to address that (I didn’t know about it until now).
>>
>>> [...]
>>> Though I must say... What's the use of the revision, exactly??  It
>>> seems
>>> that it has only served to break the script and not much else. :)
>>
>> The idea with the revision is that when a user reports that “I used
>> ⌃⇧V and it gives me this error” we can ask the user what  
>> revision
>> of the script he has, so we can see if it has since been fixed :)
>
> Ugh, I can fix this, but:
>
> a) I need to pull up your message on how write access to the bundles
> work, since it's been a while since I touched anything (or I may just
> send a patch to the list...)

Write bundles(at)textmate dot org for stuff related to svn access.

> b) I'm not sure what the best alternative is for the svn tag, it may
> just be burning a revision into the source file on checkin and
> remembering to update it manually on each commit. :-(

I am not sure what a good fix is either, and this command is not the  
only one which use svn keywords. I sort of feel this should be fixed  
in the “script” that does the git mirroring, so if I were you,  
I’d leave it up to me to find a more universal fix for this problem.

_______________________________________________
textmate mailing list
textmate <at> lists.macromates.com
http://lists.macromates.com/listinfo/textmate
Allan Odgaard | 2 Sep 18:21 2009

Re: Newbie questions

On 2 Sep 2009, at 07:22, Mark Fletcher wrote:

> I code in C++. When I try to re-indent a selected chunk of code,  
> using Text
> -> Indent Selection, it seems to do the wrong thing for any code that
> appears after comment lines. Am I doing it wrong?

Afraid this is to be expected. It has a set of rules on how to adjust  
the indent based on line-by-line matching. Block-comments does not fit  
well into this system.

> Also, is there any way to invoke Make from within TextMate.

Yes, there is a nice Make bundle: http://svn.textmate.org/trunk/Bundles/Make.tmbundle/ 
  — presently we do not include it by default, but I think we  
should :)

I think the Make bundle by default has “make” on ⌘B and unscoped.  
If you have the Xcode bundle, that one may eclipse it for C++ sources,  
so disable that bundle (bundle editor).

> And finally, is there a gdb mode for debugging apps, like Emacs has?

That there is not, sorry.

_______________________________________________
textmate mailing list
textmate <at> lists.macromates.com
http://lists.macromates.com/listinfo/textmate
Allan Odgaard | 2 Sep 18:21 2009

Re: TM_INPUT_START_LINE_INDEX not always set?

On 19 Aug 2009, at 17:19, Gerd Knops wrote:

>> […]
>> The variable is conditionally set when the input is a subset of the
>> document. What is the input set to? And are you using the commands
>> with a selection?
>
> Selection or Scope.
> No selection.
>
> Without changing the cursor position, I call two different commands
> with identical input settings. One sees TM_INPUT_START_LINE_INDEX, the
> other does not.
>
> I am at a loss...

Maybe attach a bundle with the two commands and steps to reproduce?

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate


Gmane