Dear textmate experts,
I have a text file with lines like this:
dog={brown, bark},
cat={white, purr},
mouse={gray, beep},
I would like to end up with this:
dog={brown, bark},
cat={{white, purr}},
mouse={gray, beep},
Replacing "cat={" by "cat={{" is trivial, but how can I replace the closing brace "}" by "}}" for that lines? I tried to work with regular expressions and ^.*cat={.*$ matches the lines starting with "cat={", but I couldn't manage to tell textmate's "Find" to basically add something to a line. I also seems to me that although the "Find"-box in textmate's "Find" can deal with regular expressions, the "Replace"-box ignores regular expressions.
I know textmates "Edit Each Line in Selection", but I can't select all lines starting with "cat={" by hand, there are simply too many in my file.
Cheers,
Marius
Have you ever been editing along and all is fine until you notice that your file is like 13 times longer than it should be and then you discover that your text has been copied 12 times into the same file and you know you didn't do it and there are no cats in the house?
Jerry
This seems to be quite a moving target. Based on past solutions, I was able to dig in figure out why this was broken (again).
In `Objective-C.tmbundle/Support/lib/docset_query.rb`, I had to change line 10 from
DOCSETS = Dir.glob("/Developer/Documentation/DocSets/*.docset”)
to
DOCSETS = Dir.glob("/Library/Developer/Shared/Documentation/DocSets/*.docset”)
Anyone else run into this?
--
Rob McBroom
<http://www.skurfer.com/>
Hi Allan,
Could you make the font for the commit message customizable? I can't read that small font well on the new higher-resolution screens, plus I'd prefer it to be a monospaced font anyway.
A very simple way to make it configurable (and I patched my copy of TextMate) would be to edit
TextMate.app/Contents/SharedSupport/Support/bin/CommitWindow.app/Contents/Resources/English.lproj/MainMenu.nib
Select the text view inside the scroll view for the commit message, bring up the Bindings inspector, and change the FontName property to:
Bind to: Shared User Defaults Controller
Controller key: values
Model Key Path: CommitWindowFontName (or whatever else tickles you)
Null Placeholder: Set to the default font name (Lucida Grande?)
Now folks wanting a different font can simply do
defaults write com.cjack.tmbundles.commit-window CommitWindowFontName "Menlo"
No code changes :-)
Thanks
Gerd
Hey everyone,
I've posted a plugin which lets you define keystrokes to move about and edit
your text files with ease, in the spirit of the Vim command-line editor.
Feedback and contributions are welcome.
https://github.com/philc/textmatevim
-Phil Crosby
I've installed Gerd Knops' ctag program, it seems to identify the tag correctly, but when it brings up the file, it uses a private temp directory instead of the current working directory where the project resides. The file it brings up is blank. In addition I get the error below:
Use of uninitialized value $lno in pattern match (m//) at /Users/user/Library/Application Support/TextMate/Pristine Copy/Bundles/CTags.tmbundle/Support/bin/tmctags line 252. Use of uninitialized value $filename in concatenation (.) or string at /Users/user/Library/Application Support/TextMate/Pristine Copy/Bundles/CTags.tmbundle/Support/bin/tmctags line 268. Use of uninitialized value $path in concatenation (.) or string at /Users/user/Library/Application Support/TextMate/Pristine Copy/Bundles/CTags.tmbundle/Support/bin/tmctags line 268.
Thanks.
Is it possible to download older versions of TM?
I'm still using OS X 10.5.8 and so the Cmd+/ "comment/un-comment"
error doesn't affect me, so I'd like to get that back. Also, auto-
indent appears to no longer work for me when writing perl - the indent
level follows the previous line, but it doesn't increment the indent
when I hit return after a '{'.
The first problem is, for me, quite a PITA. I used this feature a lot,
the loss of it reduces TM effectiveness for me. The second problem is
a minor frustration, but I liked TM when the features I use "just
worked".
I don't think any of the updates since I registered TM have improved
it for me - they've been features I don't use/need. I really should
have turned off the software update feature.
So, are there older versions around that I can download?
--
Justin C, by the sea.
I' am trying to run a java applet via textmate. But when I run it by cmd + R
the applet viewer appear and then nothing's happen, after that it crashes.
This is my code :
import java.awt.*;
import java.applet.*;
public class SimpleApplet extends Applet
{
private int height, width;
public void init()
{
height = 50;
width = 300;
}
public void paint(Graphics g)
{
g.drawString("Hello world", 20, 20);
}
}
So there are somethings wrong in my code or I need to config somethings ?
--
View this message in context: http://old.nabble.com/Asking-about-java-applet-tp31247793p31247793.html
Sent from the textmate users mailing list archive at Nabble.com.
I'm having a problem where groups are automatically collapsing when cmd+tabbing
It's starting to get really annoying...
Has anyone else experienced this/know a fix?
I'm using version 1.5.10 (1623)
I'm wanting to create a series of snippets and commands associated with editing a certain type of html file. I'd like these to be portable to the rest of my team, and rather than placing these snppets / commands in the html bundle, I'd like to create a new bundle that "extends" the html bundle. ie: the language definition is empty except for a directive that this is html.
I assume this should be pretty simple. The main question I have is how I should set up the language definition.
Thanks!
-Mark
Hello,
I'm working with Textmate 1.5.10 and LaTeX. At the moment I'm writing my
diploma thesis. I'd like to use a special template set. But I don't know the
directory. Do you know the place for templates?
Greetings,
Ingo
--
Urban Media GmbH
Askanischer Platz 3
10963 Berlin
Telefon: 030 – 29021 – 18620
Fax: 030 – 29021 – 999 18690
E-Mail: ingo.preuss(a)tagesspiegel.de
Registriergericht: AG Charlottenburg
Registriernummer: HRB 56368
Umsatzsteuer-Identifikationsnummer:
DE 173223298
Geschäftsführung:
Dr. Marion Bleß, Thomas Zydek
Hi all,
It's not real window splitting but I find this useful to automate "Open in
New Window" as a stop gap.
It's still a bit rough and lacking in features but if anyone would like to
try it out here's the link to my
https://github.com/seandunn/window-buddy.tmbundle Window Buddy bundle.
Splitting can only done to project tabs. Docking can only be done to
auxilary windows. Other window snap controls work for both.
You have to click "Reveal in Project" (^⌘R) at least once as it use the
TM_SELECTED_FILE variable. There's also still a few "issues" to sort out
such as RubyAMP's complete from project to work in the auxilary windows.
Otherwise it should quite straight forward to use.
Let me know what you think.
Cheers,
Sean.
--
View this message in context: http://old.nabble.com/Introducing-WindowBuddy.tmbundle-for-psuedo-window-sp…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Suddenly, I get the following (after the line "Telling Skim to Refresh") when compiling a tex file.
Any ideas what it means and what is going wrong?
Best
Christian
-------------
Processing: ./teleop-labs.tex
Document Class: scrartcl 2011/01/25 v3.08 KOMA-Script document class (article)
Output written on teleop-labs.pdf (3 pages, 305846 bytes).
Complete transcript is in sefi-wee2011-teleop-labs.log
Telling Skim to Refresh "/Users/chrisp/teleop-labs.pdf"...
2011-03-16 17:52:35.450 osascript[9544:60b] Cannot find executable for CFBundle 0x10051d1c0 (not loaded) osascript: OpenScripting.framework - scripting addition "/Users/chrisp/Library/ScriptingAdditions/1Password Addition.osax" declares no loadable handlers. 2011-03-16 17:52:36.139 osascript[9559:903] Cannot find executable for CFBundle 0x10012f9f0 (not loaded) osascript: OpenScripting.framework - scripting addition "/Users/chrisp/Library/ScriptingAdditions/1Password Addition.osax" declares no loadable handlers.
-------------
--
Christian
-Your time is limited, so don't waste it living someone else's life.-
Steve Jobs, 2005
> On Mar 15, 2011, at 6:50 PM, Dru Kepple wrote:
>>
>> Yes: right-click on the file in the project drawer
> This has no such menu item, the option is greyed out. What is wrong?
Disregard that question. I figured out the project drawer does not work in single-file mode.
-- Gnarlie
Holly molly,
I don't even remember when I've done this, but this really helped.
Thank you Sven, you've made my day :)
Problem is solved.
On Fri, 11 Mar 2011 14:13:38 +0100, Sven Axelsson wrote:
> On 11 March 2011 14:05, Kaster Might<kastermight(a)gmail.com> wrote:
>> Lol, Thanks god, I'm still able to recognize keys on my keyboard :)
>> But I don't have Textmate item under Bundles menu... [:sad:]
> Well, you never know if people can recognize their keys.
>
> However, you seem to have fltered out or deleted several of the
> standard bundles.
> Reactivate the Source, Text, and TextMate bundles. That should do the trick.
>
--
Kaster Might
Hi there,
I've got problem when I am using the bundle short key.
It is Bundles->HTML->Insert open/close tag(with current word)
the short key is " control+< " which is not working.
Can you give me an idea to make it working please?
Regards
Raymond F.
Developer and Administrator
learning works
93 Collingwood Street
Private Bag 3036, Waikato Mail Centre, Hamilton 3240
Phone: +64-(0)7-929 4071
Email: raymond.feng(a)learningworks.ac.nz<mailto:winnie.arntsen@learningworks.ac.nz>
[cid:image001.jpg@01CBA1ED.B24F65A0]
I've opened default document and then pressed ⌃ ⌥ ⌘ K. Still nothing is
happened.
I don't have nothing like you said. Where should I look for it and where
it needs to be grayed out?
PS: sorry if my questions seem silly, I'm using TM just for a couple of
days.
On Fri, 11 Mar 2011 04:02:21 -0800, Mark Jackson wrote:
>
> On Mar 11, 2011, at 3:32 AM, Kaster Might wrote:
>
>> ⌃ ⌥ ⌘ K - This command did nothing.
>> I'm confused.
>
> Did you have a document open? If not then it won't work. If it's
> grayed out in the TextMate bundle, then you need to open a document,
> and then run it.
--
Kaster Might
I didn't find anything w/ "⌘/" in App shortcuts list.
⌃ ⌥ ⌘ K - This command did nothing.
I'm confused.
On Fri, 11 Mar 2011 03:06:18 -0800, Mark Jackson wrote:
> On Mar 11, 2011, at 2:37 AM, Kaster Might wrote:
>
>> I don't know if any other app of proc takes that shortcut. I don't
>> remember that I changed anything, at least intentionally.
>> Any ideas?
>
> i would look in the prefs pane for Keyboard, check Application
> Shortcuts. See if any other app is using that command. Possibly the
> Help Menu (global) short cut lost the SHIFT, or the Universal
> Access:Turn image smoothing off/on lost it's ALT.
>
> You might try (in TM):
>
> ⌃ ⌥ ⌘ K
>
> It will show all the ENABLED Bundles shortcuts. you can search for the
> slash. Maybe it's been modified by the TEXTMATE, SOURCE (most likely
> culprit), or TEXT.
>
> Hope that helps.
> Mark
--
Kaster Might