Dan, thank you so much that was exactly what I was looking for! Thanks! Brian
On 5/6/07, textmate-request@lists.macromates.com textmate-request@lists.macromates.com wrote:
Send textmate mailing list submissions to textmate@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@lists.macromates.com
You can reach the person managing the list at textmate-owner@lists.macromates.com
When replying, please edit your Subject line so it is more specific than "Re: Contents of textmate digest..."
Today's Topics:
- Re: Patch for LaTex Bundle (Xavier Cambar)
- Re: Patch for LaTex Bundle (Charilaos Skiadas)
- Re: periodic key binding freak-out (Grant Hollingworth)
- Re: Patch for LaTex Bundle (Xavier Cambar)
- Using Projects on remote servers - the easy way (Yann B)
- Re: Feature request: "Open Terminal here ..." (Fred B)
- question regarding CSS brackets (ZulloP)
- Re: The Dvorak-Qwerty layout, 2 years later (Sami Samhuri)
- Re: question regarding CSS brackets (Jacob Rus)
- Re: question regarding CSS brackets (ZulloP)
- Re: question regarding CSS brackets (Jacob Rus)
- Re: Using Projects on remote servers - the easy way (Yi Qiang)
- Re: Using Projects on remote servers - the easy way (Gerd Knops)
- Find in Selection? (Niels Kobsch?tzki)
- Scope and Preprocessing for personal Markup (J Fischer)
- Reformat php? (Brian Armstrong)
- HTML Special Character Bundles (Chip Cullen)
- Re: Reformat php? (Dan Lowe)
- Re: Reformat php? (Erwan David)
- Re: Find in Selection? (Ciar?n Walsh)
- Re: Find in Selection? (Jacob Rus)
- Re: HTML Special Character Bundles (Jacob Rus)
- Re: Re: Find in Selection? (Niels Kobsch?tzki)
- Re: Re: HTML Special Character Bundles (Chip Cullen)
- Re: question regarding CSS brackets (ZulloP)
---------- Forwarded message ---------- From: Xavier Cambar xcambar@gmail.com To: TextMate users textmate@lists.macromates.com Date: Sat, 5 May 2007 17:14:37 +0200 Subject: Re: [TxMt] Patch for LaTex Bundle Going on this way, I found out that the command was used to open files in a separate window. I am looking for a way to open incuded files in a tab. I thought of a recursive search, starting from the folder of the master file (if not defined, the currently opened one), or even better, opening the right file from the ones in the current project. Anyhow, there are many ways to make this efficient, but I have no idea how to open a file in a tab... Commands generally use 'mate', which (as far as I know) isn't able of this...
Well, any idea? Xavier
Le 4 mai 07 à 21:19, Charilaos Skiadas a écrit :
Xavier,
Thanks for the patch, sorry it took me so long to commit it.
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Apr 20, 2007, at 12:27 PM, Xavier CAMBAR wrote:
Context: I needed to insert tex files which filenames contained spaces into my document. LaTex can handle this efficiently if quotes are provided in the \include (like in \include{"bla bla/bla bla"}).
For easy moving along my document, I intended to use the "Open Included File" command. But that command doesn't handle the quoted filenames, as the quotes are taken into account as normal characters. So here I am with a line to be added to that command in order to correct that misbehaviour:
10: ... 11: if options.empty? 12: print "Did not find any appropriate item to open in #{ENV ['TM_SELECTED_TEXT'] ? "selection" : "current line" }" 13: else 14: options[0].each{|el| el.gsub!(/(^")?("$)?/, '')} #<-- Here it is! 15: filepath = `kpsewhich #{e_sh options[0]}`.chomp 16: if filepath.empty? 17: ...
I don't know how to commit changes in a bundle (according I am allowed to!). So now it's up to you, folks, to add it to the repository. Note that I quickly and unformally tested it, and everything seems ok.
Xavier Cambar
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
---------- Forwarded message ---------- From: Charilaos Skiadas skiadas@hanover.edu To: TextMate users textmate@lists.macromates.com Date: Sat, 5 May 2007 11:24:53 -0400 Subject: Re: [TxMt] Patch for LaTex Bundle
On May 5, 2007, at 11:14 AM, Xavier Cambar wrote:
Going on this way, I found out that the command was used to open files in a separate window. I am looking for a way to open incuded files in a tab. I thought of a recursive search, starting from the folder of the master file (if not defined, the currently opened one), or even better, opening the right file from the ones in the current project. Anyhow, there are many ways to make this efficient, but I have no idea how to open a file in a tab... Commands generally use 'mate', which (as far as I know) isn't able of this...
For me the command opens files in a new tab, and not in a separate window. Perhaps the files you are trying to open are not in the project/folder?
Well, any idea? Xavier
Haris Skiadas Department of Mathematics and Computer Science Hanover College
---------- Forwarded message ---------- From: Grant Hollingworth grant@antiflux.org To: textmate@lists.macromates.com Date: Sat, 5 May 2007 09:49:33 -0600 Subject: Re: [TxMt] periodic key binding freak-out
- Allan Odgaard throw-away-1@macromates.com [2007-05-05 02:12]:
The 0x200000 is the NSNumericPadKeyMask.
Are you using a PC keyboard possibly with some adaptor? Is there a num-lock key you can press? If so, try see if just pressing that doesn't toggle the behavior.
I'm using my MacBook Pro's built-in keyboard. Turning on numlock does give me that modifier, but it changes the key to its inset number pad equivalent: '*' instead of 'p'.
Characters: * Unicode: 42 / 0x2a Keys: ⇧^* Key Code: 67 / 0x43 Modifiers: 2490627 / 0x260103
When I was having problems, the key stayed as 'p'. So somehow the mask was flipped on but without my keyboard layout changing.
---------- Forwarded message ---------- From: Xavier Cambar xcambar@gmail.com To: TextMate users textmate@lists.macromates.com Date: Sat, 5 May 2007 18:29:58 +0200 Subject: Re: [TxMt] Patch for LaTex Bundle
Le 5 mai 07 à 17:24, Charilaos Skiadas a écrit :
For me the command opens files in a new tab, and not in a separate window. Perhaps the files you are trying to open are not in the project/folder?
Yes, they are. Even better, whether the files are already opened in a tab or not doesn't change the result. They keep on (re)opening in a new window. Damn...
Xavier
---------- Forwarded message ---------- From: Yann B textmate@minimaldesign.net To: textmate@lists.macromates.com Date: Sat, 5 May 2007 13:02:10 -0400 Subject: [TxMt] Using Projects on remote servers - the easy way Sorry if it's old news for some of you guys, but I just found out that using MacFUSE and sshfs makes it super easy to use TextMate projects/tabs with files on remotes servers (as long as you have SSH access). I know the question comes back once in a while on here, and I for one was never really satisfied with the workarounds people suggested...
This solution makes it really dead simple to get access to all TextMate Project features... I wrote up a little blog post with the details if someone's interested:
http://minimaldesign.net/blog/workflow/remote-textmate-projects
Hope it helps :)
---------- Forwarded message ---------- From: "Fred B" fredb7@gmail.com To: "TextMate users" textmate@lists.macromates.com Date: Sat, 5 May 2007 19:05:03 +0200 Subject: Re: [TxMt] Feature request: "Open Terminal here ..." On 5/4/07, Allan Odgaard throw-away-1@macromates.com wrote:
I updated the default command to use your script if either iTerm is running or TM_TERMINAL is set to iTerm.
Thanks Allan. One less custom command to worry about! ;) Glad you found the script useful.
-- FredB
---------- Forwarded message ---------- From: ZulloP info@webrevolution.org To: textmate@lists.macromates.com Date: Sat, 5 May 2007 14:36:04 -0700 (PDT) Subject: [TxMt] question regarding CSS brackets
I noticed Textmate automatically formats the curvy brackets in the following way:
#test{}
any way to modify it like:
#test { }
Many thanks in advance.
View this message in context: http://www.nabble.com/question-regarding-CSS-brackets-tf3697791.html#a103404... Sent from the textmate users mailing list archive at Nabble.com.
---------- Forwarded message ---------- From: "Sami Samhuri" sami.samhuri@gmail.com To: "TextMate users" textmate@lists.macromates.com Date: Sat, 5 May 2007 15:34:27 -0700 Subject: Re: [TxMt] The Dvorak-Qwerty layout, 2 years later On 5/5/07, Allan Odgaard throw-away-1@macromates.com wrote:
As for what Leopard may or may not change, I can't say.
I suspected this would be the case.
But there is one new line in a header that has made me add "revisit key
event
decoding" to the to-do. But don't get your hopes up, it's no simple thing, and presently I have no idea if the new route is plausible.
Ok thanks for the honest response. It's pretty much what I expected. I'll just transition to pure Dvorak.
-- Sami
---------- Forwarded message ---------- From: Jacob Rus jacobolus@gmail.com To: textmate@lists.macromates.com Date: Sat, 05 May 2007 18:52:22 -0400 Subject: [TxMt] Re: question regarding CSS brackets ZulloP wrote:
I noticed Textmate automatically formats the curvy brackets in the
following
way:
#test{}
any way to modify it like:
#test { }
You'll have to be a lot more specific. TextMate doesn't "format" curly braces at all, to my knowledge. It does have a "typing pairs" feature which will insert a closing `}` when you type `{`. Is this what you are referring to?
---------- Forwarded message ---------- From: ZulloP info@webrevolution.org To: textmate@lists.macromates.com Date: Sat, 5 May 2007 16:02:13 -0700 (PDT) Subject: Re: [TxMt] question regarding CSS brackets
Hello Jacob Rus4, yes, I'm talking about the "typing pairs" feature... sorry! I would like to have #test{[space][curosor here][space]}
I'hope is clear enoguh.
Thanks for your help.
View this message in context: http://www.nabble.com/question-regarding-CSS-brackets-tf3697791.html#a103410... Sent from the textmate users mailing list archive at Nabble.com.
---------- Forwarded message ---------- From: Jacob Rus jacobolus@gmail.com To: textmate@lists.macromates.com Date: Sat, 05 May 2007 20:42:15 -0400 Subject: [TxMt] Re: question regarding CSS brackets ZulloP wrote:
Hello Jacob Rus, yes, I'm talking about the "typing pairs" feature....
sorry!
I would like to have #test{[space][curosor here][space]}
I hope [that] is clear enoguh.
Okay, what you'll want to do then is to create a [macro][1], which first types `{`, then types two spaces, then moves one character to the left.
-Jacob
---------- Forwarded message ---------- From: Yi Qiang yqiang@gmail.com To: TextMate users textmate@lists.macromates.com Date: Sat, 5 May 2007 18:07:39 -0700 Subject: Re: [TxMt] Using Projects on remote servers - the easy way
On May 5, 2007, at 10:02 AM, Yann B wrote:
Sorry if it's old news for some of you guys, but I just found out that using MacFUSE and sshfs makes it super easy to use TextMate projects/tabs with files on remotes servers (as long as you have SSH access). I know the question comes back once in a while on here, and I for one was never really satisfied with the workarounds people suggested...
This solution makes it really dead simple to get access to all TextMate Project features... I wrote up a little blog post with the details if someone's interested:
http://minimaldesign.net/blog/workflow/remote-textmate-projects
Hope it helps :)
Fantastic write up! I was _very_ surprised at how easy it was to set up macfuse and sshfuse.
This is off topic so please reply in private if you wish.
Is it possible to automount sshfs volumes?
Cheers, Yi
---------- Forwarded message ---------- From: Gerd Knops gerti-textmate@bitart.com To: TextMate users textmate@lists.macromates.com Date: Sat, 5 May 2007 22:48:44 -0500 Subject: Re: [TxMt] Using Projects on remote servers - the easy way On May 5, 2007, at 8:07 PM, Yi Qiang wrote:
Is it possible to automount sshfs volumes?
Not sure if it works for sshfs volumes, but a little known feature is that one can drag a mounted volume into the 'Login Items' TableView (System Preferences/Accounts/Login Items). Works at least for webdav volumes.
Gerd
---------- Forwarded message ---------- From: Niels Kobschätzki n.kobschaetzki@googlemail.com To: TextMate users textmate@lists.macromates.com Date: Sun, 6 May 2007 07:44:26 +0200 Subject: [TxMt] Find in Selection? Hi!
Is there a way for do a "replace all" only in a selection? I can only find "Use selection for find" but that puts only the selected text into the find-part of the find-dialog. I searched for something like this in TextMate already quite often and therefore I think other ppl would use it as well but I can't remember that I've ever read a feature request for this, therefore it must be somewhere…
Niels
---------- Forwarded message ---------- From: "J Fischer" regisjf@gmail.com To: textmate@lists.macromates.com Date: Sat, 5 May 2007 22:57:01 -0700 Subject: [TxMt] Scope and Preprocessing for personal Markup Hi,
Within the time constraints, I've done what searching I can through the docs, wiki, and mailing list archives to get a personal markup bundle working. Thanks to the clear documentation and a lot of the archived posts here, I have all the snippets and syntax coloring working. However, there are a couple of things that I still haven't worked out, which I could use a little help with. I apologize if they've been covered before and I missed them. If I had more time, I'd keep searching around for the answers, but with an upcoming deadline, I just have to get some guidance.
My bundle is called "jmarkup" and I've set most of the scope selectors to "text." (BTW, I still don't competely get how to choose scope selectors, despite reading that section many times.)
I'll probably do most of my writing in Latex or Markdown (or MMD), and currently I have to go back and forth between syntax coloring for either Latex or jmarkup.
- Can I somehow set my scope so that I can see it colored while I'm in
Latex and MMD?
- Could someone point me to a place explaining how I could process my
markup before the latex. E.g. So that when I hit the key combo to preview the Latex, everything is preprocessed to replace my [[note syntax ]] with Latex markup for left and right margin notes.
- Referring to #2 above, could I have separate processing-replacements set
up for whether I was making an output for myself (e.g. working draft with all notes and markup) or for my advisor (e.g. print draft without notes and hiding my in-line styles, like "revise" or "check facts")?
- What would the best bundle be to use as an example of how to gather all
"action" markups in to a separate document? For example, I might have a fact that is suffixed with [!check this!] and I want to gather all lines that have that [!...!] in them. I assume this might be similar to the TODO or GTDalt bundles but haven't checked them out yet.
Thanks all for any advice and help. I know I've asked a lot here, but even just pointers to where I can find the best examples of implementations of each would really help me out.
Thanks,
Jeff
---------- Forwarded message ---------- From: "Brian Armstrong" barmstrong@gmail.com To: textmate@lists.macromates.com Date: Sun, 6 May 2007 01:22:19 -0500 Subject: [TxMt] Reformat php? Hi All,
I'm new to Textmate, and I have to say I am most impressed! What a beautiful piece of software. I downloaded the 30 day trial, and I am having problems with one thing: reformatting php code.
Let's say I had a piece of code like this:
// make sure it doesn't crash in an ugly way if (!function_exists('foo')) { die("this function required"); }
and I run the reformat on it, or ^Q, then I get this:
// make sure it doesn't crash in an ugly way if (!function_exists('foo')) { die("this function required"); }
Not very helpful, and you notice that the 'if' is now on a comment line!
Note that this performs the same whether I have the file showing as HTML or PHP. Given the amount of work that's gone into PHP capability overall (great completion for example) I'm shocked that this is standard behavior out of the box.
Would love to get some tips from the textmate masters on here. Thank you! Brian Armstrong
---------- Forwarded message ---------- From: "Chip Cullen" chip.cullen@gmail.com To: textmate@lists.macromates.com Date: Sun, 6 May 2007 16:07:10 +0900 Subject: [TxMt] HTML Special Character Bundles I came up with these the other day, and thought someone else might find these useful. They're very small bundles that simply let you type (while working in HTML) and have properly coded typographic characters.
I come from a print design background, and am used to being rather particular with my typography. One of my biggest pet peeves is seeing a double tick mark (") where a proper quote mark (") should be.
I've been learning to hand-code my websites, but something that always frustrated me with HTML was having to code out – when I was used to just hitting opt - (hyphen).
So I came up with the attached snippets that let me do what I wanted to do - I can type the character as I'm used to typing it, and Textmate inserts the proper HTML code.
I'll be honest, I got the idea for this when I tried out SkEdit - it was the one feature that I missed in Textmate. But it was easy enough to add myself.
Enjoy! I hope there are some typophiles that will like this!
---------- Forwarded message ---------- From: Dan Lowe dan@tangledhelix.com To: TextMate users textmate@lists.macromates.com Date: Sun, 6 May 2007 03:47:37 -0400 Subject: Re: [TxMt] Reformat php?
On May 6, 2007, at 2:22 AM, Brian Armstrong wrote:
and I run the reformat on it, or ^Q, then I get this:
// make sure it doesn't crash in an ugly way if (!function_exists('foo')) { die("this function required"); }
Not very helpful, and you notice that the 'if' is now on a comment line!
^Q is a paragraph reformat, which as you have found is not so great for code. I believe what you are looking for is a way to (re-)indent code, in which case you want this:
Text -> Indent Selection ( cmd-opt-[ )
Note that you need to have a selection active for this to be available. Otherwise it will act on the current line only.
-dan
---------- Forwarded message ---------- From: Erwan David erwan@rail.eu.org To: textmate@lists.macromates.com Date: Sun, 6 May 2007 10:05:23 +0200 Subject: Re: [TxMt] Reformat php? Le Sun 6/05/2007, Dan Lowe disait
On May 6, 2007, at 2:22 AM, Brian Armstrong wrote:
and I run the reformat on it, or ^Q, then I get this:
// make sure it doesn't crash in an ugly way if (!function_exists('foo')) { die("this function required"); }
Not very helpful, and you notice that the 'if' is now on a comment line!
^Q is a paragraph reformat, which as you have found is not so great for code. I believe what you are looking for is a way to (re-)indent code, in which case you want this:
Text -> Indent Selection ( cmd-opt-[ )
Note that you need to have a selection active for this to be available. Otherwise it will act on the current line only.
Is there a way to rebind this ? On a french keyboard, [ is Shift-opt-5 thus a problem to get opt-[
-- Erwan
---------- Forwarded message ---------- From: Ciarán Walsh ciawal@gmail.com To: TextMate users textmate@lists.macromates.com Date: Sun, 6 May 2007 09:50:05 +0100 Subject: Re: [TxMt] Find in Selection? On 6 May 2007, at 06:44, Niels Kobschätzki wrote:
Hi!
Is there a way for do a "replace all" only in a selection? I can only find "Use selection for find" but that puts only the selected text into the find-part of the find-dialog. I searched for something like this in TextMate already quite often and therefore I think other ppl would use it as well but I can't remember that I've ever read a feature request for this, therefore it must be somewhere…
Hold shift when doing the replace (either ⌃⌘⇧F or when clicking the replace button)
---------- Forwarded message ---------- From: Jacob Rus jacobolus@gmail.com To: textmate@lists.macromates.com Date: Sun, 06 May 2007 04:51:29 -0400 Subject: [TxMt] Re: Find in Selection? Niels Kobschätzki wrote:
Is there a way for do a "replace all" only in a selection? I can only find "Use selection for find" but that puts only the selected text into the find-part of the find-dialog. I searched for something like this in TextMate already quite often and therefore I think other ppl would use it as well but I can't remember that I've ever read a feature request for this, therefore it must be somewhere…
In the find dialog, try pressing the ⌥ (opt) key.
-Jacob
---------- Forwarded message ---------- From: Jacob Rus jacobolus@gmail.com To: textmate@lists.macromates.com Date: Sun, 06 May 2007 04:59:59 -0400 Subject: [TxMt] Re: HTML Special Character Bundles Chip Cullen wrote:
I came up with these the other day, and thought someone else might
Have you tried smarty pants (or TM's markdown bundle which also runs smarty pants?)
-Jacob
---------- Forwarded message ---------- From: Niels Kobschätzki n.kobschaetzki@googlemail.com To: TextMate users textmate@lists.macromates.com Date: Sun, 6 May 2007 11:01:49 +0200 Subject: Re: [TxMt] Re: Find in Selection? On May 6, 2007, at 10:51 AM, Jacob Rus wrote:
Niels Kobschätzki wrote:
Is there a way for do a "replace all" only in a selection? I can only find "Use selection for find" but that puts only the selected text into the find-part of the find-dialog. I searched for something like this in TextMate already quite often and therefore I think other ppl would use it as well but I can't remember that I've ever read a feature request for this, therefore it must be somewhere…
In the find dialog, try pressing the ⌥ (opt) key.
Thx a lot (also for the thing with shift from Ciarán)
Niels
---------- Forwarded message ---------- From: "Chip Cullen" chip.cullen@gmail.com To: "TextMate users" textmate@lists.macromates.com Date: Sun, 6 May 2007 18:24:08 +0900 Subject: Re: [TxMt] Re: HTML Special Character Bundles In a word, no. I had filtered out the markdown bundle, so I hadn't explored it. Besides, smartypants doesn't do exactly what I wanted to do, anyway, as I understand it. It takes "period period period" and turns it into "…"
I was trying to have the effect of just typing from within an HTML document, using the typing that I am used to, and having TM automagically insert the right HTML code for that typographic mark.
If Smarty Pants does this as well, I didn't see it. But thanks for pointing it out - I had no idea!
On 5/6/07, Jacob Rus jacobolus@gmail.com wrote:
Chip Cullen wrote:
I came up with these the other day, and thought someone else might
Have you tried smarty pants (or TM's markdown bundle which also runs smarty pants?)
-Jacob
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
---------- Forwarded message ---------- From: ZulloP info@webrevolution.org To: textmate@lists.macromates.com Date: Sun, 6 May 2007 03:18:54 -0700 (PDT) Subject: Re: [TxMt] question regarding CSS brackets
Many thanks for your help Jacob.
View this message in context: http://www.nabble.com/question-regarding-CSS-brackets-tf3697791.html#a103441... Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
On 06.05.2007, at 18:36, Brian Armstrong wrote:
Dan, thank you so much that was exactly what I was looking for! Thanks! Brian
I can certainly see a lot of [tofu][1]. Not was I was looking for, exactly.
Soryu.