I¹ve just noticed that its possible to fold TODOs using the little arrows in
the margins. Is it possible to fold all TODOs in a document using a keyboard
shortcut?
Thanks
Ross
Lets say I have a list of code like this
foo <- "test"
foo <- "test"
foo <- "test"
foo <- "test"
foo <- "test"
foo <- "test"
foo <- "test"
foo <- "test"
foo <- "test"
foo <- ³test"
Is it possible to automate the insertion of columns of numbers. The output
should be this:
foo1 <- "test1"
foo2 <- "test2"
foo3 <- "test3"
foo4 <- "test4"
foo5 <- "test5"
foo6 <- "test6"
foo7 <- "test7"
foo8 <- "test8"
foo9 <- "test9"
foo10 <- ³test10²
Is there perhaps a regex or other automation that could be used? I¹m aware
that it is possible to insert line numbers but this will only be useful if
the 10 lines of code happen to be on lines 1-10.
Thanks
Ross
I noticed that source code files in preview look very similar to the way
TextMate displays the same content.
Did TextMate 2 add the feature or was it always part of Finder?
Preview I am talking about is triggered in Finder when you press a space
on a keyboard.
I am using TextMate to write some R code. At the moment, I have R code that
looks like this:
foofoofoofoofoofoo <- NULL
foofoofoofoo <- NULL
foofoofoofoofoo <- NULL
foofoofoo <- NULL
foofoofoofoofoofoofoofoofoofoo <- NULL
Is there a way to automate aligning all <- within a block of code, like
this:
foofoofoofoofoofoo <- NULL
foofoofoofoo <- NULL
Foofoofoofoofoo <- NULL
foofoofoo <- NULL
foofoofoofoofoofoofoofoofoofoo <- NULL
Many thanks
Ross
I created a snippet for graphviz for subgraphs as follows:
subgraph cluster_${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g} {
style = filled;
bgcolor = lightgrey;
$0
label = "$1"
}
With it in TM1, I can quickly create snippets such as:
subgraph cluster_subgraph_label {
style = filled;
bgcolor = lightgrey;
label = "Subgraph Label"
}
In TM1, after expanding the snippet, the cursor moves to the 'label = "$1"'
location of the $1 placeholder. However, in TM2, the cursor jumps up to the
subgraph_cluster_ line, where I'm unable to take advantage of the text
transformation there. I guess this would work if reworked the
transformation to be on second $1, but wanted to know what the consistent
behavior is or will be.
Thank you for your help.
Hi,
I want to create a snippet which takes takes the filename, removes the extension and converts the remaining string to uppercase, i.e. "filename.txt" -> "FILENAME".
So far I have ended up with
${TM_FILENAME/(.*)[.](.*)/\u$1/g},
but the \u only converts the first character of the string to uppercase, i.e. I get "Filename". Is there any way to convert the whole string to uppercase?
Regards,
Carsten
I trying to make a regular expression to find ³this is a test² is the
following string:
<a href="index.cfm?action=search.listings&test=6&view=names">this is
a test</a>
This is the regular expression:
(?<=.+).+(?=</a>)
The regular expression is not matching anything. Is there something I¹m
doing wrong here or does TextMate not support the regular expression flavour
I¹m trying to use?
Thanks
Ross
I just discovered another way that line numbers are not displayed correctly.
With line numbers visible. Press Cmd-Option-L to hide line numbers.
Then press Cmd-Option-L again to show them. When I do this the line
numbers always start at 1 regardless of where I currently am in the
file.
Anyone else seeing this?