Question:
In the C bundle I disable indentation by setting
{ decreaseIndentPattern = '(?=not)possible';
increaseIndentPattern = '(?=not)possible';
indentNextLinePattern = '(?=not)possible';
unIndentedLinePattern = '(?=not)possible';
}
Now I have this (pipe denotes cursor, \t is a tab):
{
\t|
}
As soon as I type any character, the tab disappears. Why?
Gerd
Is there any way to change the colour of the text and/or background in the tabs as the dark grey text on slightly less dark grey background makes it hard to read the text. Ironically when Textmate2 is in the background it is easier to read the tab titles than when Textmate is in the foreground and being used!
Thanks,
Dave.
Hi,
I'm just reviewing some of my bundles and came across with this issue:
I have several commands which display as HTML output window some characters and the user can insert a given character by clicking on it. The mechanism is done via the Javascript-system bridge to an AppleScript which should insert the character.
For TM2 it doesn't work. Thus my question is:
Is this
- not supported by AppleScript,
- not yet implemented in TM2,
- broken,
- or is there an other more elegant way to achieve the insertion of a string from the HTML window to TM2?
I'm using TM2 (9293) on 10.7.4
Hmm, it seems that this:
echo -en 'tell app "TextMate" to insert «data utf8e1b894» as Unicode text'| osascript --
is not possible under Lion.
Any hints/ideas?
Cheers,
--Hans
Hi everybody
I'm a long time TextMate user which I love more than any other editor.
Before writing that e-mail I've looked on the web, downloaded the full archives of this list and grep it with some keywords and nothing came out.
As a developer I often want to extract a part of a line of code into a variable, and put it's assignment in the previous line. Example :
something a_method(with, arguments), something_else
would become
my_variable = a_method(with, arguments)
something my_variable, something_else
I can't figure how to :
* extract the selected text and put it in a new line on top of the current, prefixed by a variable assignment
* have the variable name selected and ready to overwrite, mirrored where it has been extracted from
* preserve the indentation (on both lines)
* preserve what was before and after the extracted part
I've seen people do this in Vim and Emacs, but never in TextMate.
I've asked for help and James Edward Gray II gave me some advice on Twitter and here https://gist.github.com/3515210
It seems that the best way would be to replace the whole document.
I don't really see what I should use : a macro, a snippet, a command, or a combination of them.
I guess that I could do this with a macro + snippet, but I've not found (yet) the list of available commands (moveToEndOfParagraph, insertText, …) and their documentation.
I'd be happy to have a pre-cooked solution if it exists, but any advice would be helpful
Thanks
--
Jérémy Lecour
http://jeremy.wordpress.com - http://twitter.com/jlecour
This worked in TM1.x and my apologies if that has been brought up, but when
working w/ the project view (the left pane w/ a directory), it used to
highlight the currently edited file. This was very helpful for when you had
files of the same name in different directories.
Can this behavior be finagled into 2? Is this worthy of a bug report?
Thanks.
--
Wells Oliver
wellsoliver(a)gmail.com
Sometimes I use intellij idea, it's text editor has a default behavior
for CMD+C, if you don't select anythings, it will copy current line.
While CMD+X will cut the current line. Maybe it's not a bad idea.
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Hi,
with TextMate 1.5 there is a way to stop commands that have gone awry by pressing Command-. (period) after they have started, is there a way to do this with TextMate 2? I frequently encounter runaway commands that cause TextMate to hang with no way to abort the command other than force quitting the app.
Thanks
Chris
Would it be unreasonable to have the File Browser open (from previously hidden) to the location of the open file (if window contains only one file)?
Or is there an easy way to navigate to the location of the open file in file browser?
Jonas
Could we have a better bookmark system which contains
* named bookmark (like vim)
* bookmarks between files (like vim)
* bookmark browser with preview (like the find dialog)
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Hi,
is it possible to open a file for editing without double clicking on
it? When I click on the left side in the files drawer on a file, it is
not opened. Only double clicking will open it. Is there an option to
change this behaviour to the TM1 behaviour?
Thanks
Christian