Dear all,
I'm working on a bundle in which their is a command that takes the
current document and splits it in several new ones
based on a set of criteria.
What I would like is for all those new documents that result from the
splitting procedure to be displayed in a project drawer
(even if the original document was not part of any project). The new
files will probably not yet been saved to disk so that's
something the user has to do.
If any of you can give me suggestions on how to do this I would
appreciate it.
Thanks,
Marc
Hello,
I've just got back from holiday to find a TextMate update! After
performing the update - so I'm now at Version 1.5.8 (1498) - my Python
scripts no longer run when I hit cmd-R. The error is:
Program terminated by uncaught signal #11 after 6.26 seconds.
Followed by a Mac OS X "The application Python quit unexpectedly"
dialogue box. I can replicate the problem by creating a file with the
following command:
from scipy import special
(which imports a bunch of slightly odd functions from the scientific
python library, and which can take a few seconds) and then running the
"Run Script" command in the Python bundle.
Running "from scipy import special" in both the python and ipython
terminals, and running the above file from the command line all work
fine.
Can anyone help? I've re-installed Textmate after deleting all the
Library folders I could find, and I've re-installed the Python bundle
from svn. Other scripts work fine, which gives me the impression that
something is timing out, but that's really just a vague impression...
Cheers,
Mike Dewar
The completion for languages is very helpful, so:
ex<option-esc>
-->
explode(string separator, string str, [int limit])
Currently backspacing on a snippet component like "[int limit]" leaves
a broken fn call (unwanted trailing comma), i.e:
explode(string separator, string str,)
Is it possible to alter the generated snippets so that when the user
backspaces on a snippet element in function calls like this, the comma
preceding the unwanted parameter is also eaten, i.e.?
explode(separator, str${1:, ${2:[int limit]}})
instead of
explode(separator, str, ${2:[int limit]}})
It would be great if textmate's macro's were editable and buildable
from the history of events: store each event as a list item, allow it
to be named, copied, added to a library of snippet components, and
deleted from a macro.
Often we do things we wish to repeat, but not exactly as they were
done (usually there are inefficiencies (like copying some text to be
used for replace) which often break the macro as a repeatable
sequence, but if I could choose "macro... from prior actions", then
see a list like
1. copy
2. find and replace (find = <str>, replace = <str>, regex=TRUE)
3. switch documents
4. copy
5. paste
6. copy
7. find and replace (find = <str>, replace = <str>, regex=TRUE)
And then delete all but 2 and 7... bingo: just the events needed
Hello.
I am a newcomer to the world of Textmate having previously designed websites
with Dreamweaver. I love the snippet functionality and have set about
creating loads of my own snippets for speedy XHTML coding.
I've hit a small snag whilst trying to get a regular expression to reproduce
text in two places in my snippet. The problem I am having is trying to tell
it to replace any spaces with say an underscore _ character.
Forgive me if this is easy to do, I am quite new to Regular Expressions and
I'm still feeling my way!
Here is the offending snippet:
<form action="${1:${TM_FILENAME/(.*?)\..*/$1_submit/}}" method="${2:post}"
accept-charset="utf-8">
<fieldset id="${6:${3/[[:alpha:]]+|( )/(?3:_:\L$0)/g}}" ${4:class="${5:}"}>
<legend>${3:enter form name}</legend>
$0
<button type="submit">submit</button><br/>
</fieldset>
</form>
So placeholder number 3 is the legend name and also populates the fieldset
ID. I can easily change the ID manually if it contains spaces, but I thought
it would be really cool if it would just replace them automatically with an
underscore instead.
Any help would be much appreciated!
Kind regards,
Ian
--
View this message in context: http://www.nabble.com/Replacing-a-space-with-an-underscore-in-Snippet-tp221…
Sent from the textmate users mailing list archive at Nabble.com.
Howdy,
I've got a weird bug displaying file paths in Tool Tips as output from
shell commands. The bug is that if a directory in a path ends in an
'l' (el, not one), then both it and the slash are elided in the Tool
Tip display.
For example, I have a simple bundle command that executes "git status"
(that's it; nothing more) and writes the output to a tool tip. In the
example below, I've modified a file named "clusters.py" in a
sub-directory named "util" (i.e. "util/clusters.py"). The tool tip
output of the path will be "uticlusters.py", like this:
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
#
# modified: uticlusters.py
If I execute "git status" from the terminal, I get the correct
"util/clusters.py":
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
#
# modified: util/clusters.py
I have had this problem before with other commands, so it's not
specific to git. If I tell the output to go to a New Document or to
Insert As Snippet, then the missing "l/" in the paths show up (using
the same bundle commands). So, it appears to be something weird about
the output going to a Tool Tip. Is there some kind of markup happening
in Tool Tips?
Any help is much appreciated -- I'm afraid I'm a bit out of my league
in this issue.
Jon
Keyboard shortcuts and what fingers?
Hello, been using TM for a litle white now, slowling moving over from
BB. There is a much stronger emphasis on keyboard shortcuts, I was
hoping someone could help me out a little.
I can find data online with regard to what fingers go where for
alphanumeric keys, the option, command, and control keys are largely
not talked about, especially when used in combination.
I do tend to work on the left side of the board, since sometimes I
move to a laptop, and it is missing control and option on the right. I
also use the caps lock as a control, but would not want to rely on
that for being able to move around as well.
"Control Shift <" is is a good example. I am using thumb on control
and ring on shift, then the right hand for the less than. This is a
bit of a stretch, and probably will be bad over time. Maybe index on
control and middle on shift would be better? That combo them requires
me to move my entire wrist down to hit it, which I wh
Or is there some strict rules for ergonomics and RSI prevention that
puts a specific finder on a specific key like the alphanumerics?
Some of these are just hard for me to hit. Control-Option-Shift-H is
a good example, though I only need to use it once.
Any suggestions on how you have all adapted to an app that must use
keyboard shortcuts to truly become powerful, would be apprecitated.
Thanks.
--
Scott
* If you contact me off list replace talklists@ with scott@ *
Hello everybody,
I just spent a few hours wrsetling with a strange bug, so I thought
I'd let you know.
In run_xcode_target.rb the command for executing shell programs is
built in line 295. The environment variables DYLD_FRAMEWORK_PATH and
DYLD_LIBRARY_PATH are set. Instead of setting them, the new
directories should be appended. In my case this caused some of the
libraries I was using to spawn random malloc errors, I guess that is,
because macports uses these paths. I don't know what happened exactly,
but changing the command to appending the new paths instead of setting
them solved my problem and sounds more reasonable anyway.
What do you think,
Cheers, Jonas
Hello.
I am a newcomer to the world of Textmate having previously designed websites
with Dreamweaver. I love the snippet functionality and have set about
creating loads of my own snippets for speedy XHTML coding.
I've hit a small snag whilst trying to get a regular expression to reproduce
text in two places in my snippet. The problem I am having is trying to tell
it to replace any spaces with say an underscore _ character.
Forgive me if this is easy to do, I am quite new to Regular Expressions and
I'm still feeling my way!
Here is the offending snippet:
<form action="${1:${TM_FILENAME/(.*?)\..*/$1_submit/}}" method="${2:post}"
accept-charset="utf-8">
<fieldset id="${6:${3/[[:alpha:]]+|( )/(?3:_:\L$0)/g}}"
${4:class="${5:}"}>
<legend>${3:enter form name}</legend>
$0
<button type="submit">submit</button><br/>
</fieldset>
</form>
So placeholder number 3 is the legend name and also populates the fieldset
ID. I can easily change the ID manually if it contains spaces, but I thought
it would be really cool if it would just replace them automatically with an
underscore instead.
Any help would be much appreciated!
Kind regards,
Ian
--
View this message in context: http://www.nabble.com/Replacing-a-space-with-an-underscore-in-Snippet-tp221…
Sent from the textmate users mailing list archive at Nabble.com.
1. switched the following languages to use a magic heredoc token instead of
a comment
2. there was one way to trigger ruby scope, by have a heredoc token of
*_EVAL
now, there are two options:
a. foobar = <<-RUBY
b. eval <<-FOOBAR # works with eval, module_eval and class_eval
TODO:
* support <<-'HEREDOC' or <<-"HEREDOC" syntax for magic tokens for embedded
languages
* support <<HEREDOC magic tokens for embedded languages
patch is attached, and can be found here: http://pastie.org/394164