Hi everybody,
I have very simple question being rather new to textmate:
How do I change the key binding of command-r from "compile xcode
project" to "run the makefile in the parent directory"? Any help would
be appreciated...
Greetings,
Nick
I realize there's some kind of workaround to make autocompletion work in a
vaguely pleasant way:
http://www.nabble.com/Autocompletion-to17643856.html#a17643856
But is there a more user-friendly option. (I happen to have XCode installed
on my machine, but I imagine there are members of the target audience for
TextMate who won't.) Are there plans to make autocompletion part of
TextMate's core functionality?
--
View this message in context: http://www.nabble.com/Autocompletion-tp18700987p18700987.html
Sent from the textmate users mailing list archive at Nabble.com.
Dear all,
I'm just writing a a tiny bundle
'Copy Formatted as'
RTF
(Xe)TeX
wordml
HTML
...
I was inspired by the bundle Copy as RTF by Max Muermann (kindly
hosted at github by Dr Nic Williams) [I found it with GetBundles ;)].
This bundle works fine for RTF but it lacks UTF-8 support. Thus I
went an other way to achieve that and it works perfectly also for TeX ;)
But back to my suggestion.
It often occurs to me that I'm to write a tiny paper, article or
whatever about a piece of source code I wrote. For that purpose I
often need doctohtml.rb with line numbering. Fine. But one thing I
cannot do with it. If I write something about a piece of code between
line 10 to 20 and I want to refer to line number in my text the
default doctohtml.rb produces line numbers between 1 to 10. Due to
that fact I thought it would be nice to have an option to produce
relative line numbers.
I modified doctohtml.rb a bit to achieve that.
Here's the diff (also attached to that mail):
--- untitled
+++ (clipboard)
@@ -189,10 +189,10 @@
return lines.join("\n")
end
-def number(str)
+def number(str, rel_numbering = false)
# number each line of input
lines = str.split(/\n/)
- n = 0
+ n = (rel_numbering) ? ENV['TM_INPUT_START_LINE'].to_i - 1 : 0
lines.each do | line |
n += 1
line.gsub!(/^(<\/span>)?/, "\\1<span class='linenum'>#{ sprintf("%
5d", n) }</span> ")
@@ -255,7 +255,7 @@
end
end
- code_html = number(code_html) if opt[:line_numbers]
+ code_html = number(code_html, rel_numbering = opt
[:relative_numbering]) if opt[:line_numbers]
html << "<pre class=\"textmate-source"
html << " #{theme_class}" unless theme_class.empty?
By doing so one can call document_to_html like that:
document_to_html( STDIN.read, {:relative_numbering =>
true, :line_numbers => true, :include_css => true }
If one leaves the new option out the line numbering starts at 1.
Hopefully this tiny improvement will be accepted soon ;)
Thanks,
--Hans
Hey everybody, don't ask why, but I have to do a small project in
Silverlight :) I have read a couple of comments on blogs from Textmate
users who are doing it, but the closest I've come to any kind of description
on how to do it was from John Lam
http://hex-dump.blogspot.com/2008/03/silverlight-2-sdk-mac-os-x-and-mono.ht…
He's using mono to run chiron.exe in the Silverlight 2 Dynamic Language SDK.
Is anyone doing it any differently?
Thanks
~sean
Hi,
I don't know how to install SVN_MERGE, can you help me ?
When I click on "Show available revisions for merging", I have this message :
"Couldn't find svnmerge
If you have installed svnmerge, then you need to either update your
PATH or set the TM_SVNMERGE shell variable"
I try with Svnmerge.py (http://www.orcaware.com/svn/wiki/Svnmerge.py),
and I added the path in shell variable, but it doesn't work.
Thanks,
Cedric
I'm sure this has been asked a number of times, but I can't seem to
locate any answers after searching extensively through the list
archives and online.
I'm trying to get the web preview window to a) display relatively
linked images and CSS files, and b) process all PHP includes referred
to in the file.
I've got the first one working by using Thomas Aylott's ruby script,
but I can't seem to get the PHP includes working at the same time.
Can anyone put me out of my misery and give me an idea of how to get
this working? I've got TM_PROJECT_SITEROOT and TM_PROJECT_SITEURL set
properly.
Thanks!
Neil
Hi all,
I know the tab overflow thing has been discussed quite a bit before, but I
had a question that I couldn't seem to find the answer for.
Is there any way to move tabs with a keyboard shortcut? I often have over 35
files open at a time as I work in a project on different tasks, but often
I'll have about 15-20 of those spilled over into the overflow.
The problem is, many times I'll have multiple tasks that overlap in file
access, and I would like to move one tab next to another so I don't have to
keep Command+Arrow-ing over multiple files (which often times I don't
remember which ones are hidden behind the overflow, or what order).
The only references I've heard to rearranging tabs is to use the mouse, but
I didn't know if there is some hidden way to do this, or some other type of
work around.
Any help is greatly appreciated.
Thanks!
--
View this message in context: http://www.nabble.com/Moving-tabs-with-the-keyboard-tp18671843p18671843.html
Sent from the textmate users mailing list archive at Nabble.com.
I'd really love to be able to split the working area to allow side by
side viewing of 2 documents. I've looked and looked through the
documentation / posts / tutorials, and it seems like all that's
available is navigating between tabs?
Any ideas?
Thanks!
Michael Larkin | http://pixallent.com | mikelarkin(a)pixallent.com
> The completion command picks the current word (rather, gets the
> current word from textmate), looks that up and completes based on
> that. In this case, since - and/or : are not considered word
> characters, a label such as "here-is-a-label", if we are at "here-
> is", will be completed as if it as only showing the "is" part. So TM
> passes to the completion command the word "is", gets back the label
> "here-is-a-label", and inserts it in place of "is", resulting in
> "here-here-is-a-label". The quick fix from your side is to go to
> Textmate -> Preferences -> Text Editing, and add whatever characters
> you need in "Word Characters" box. You gain proper completion in this
> case, but you lose alt+left/right moving you through each part.
I see.
The whole point of using the colon was, of course, the ability to
navigate quickly via alt+left/right within the label/citation (e. g.
to fix something or so). It's a pity the fix is difficult,
autocompletion really rocks and has improved my workflow a lot. Now I
just stop short of the first colon, but the list is usually not short
(I'm into mathematical physics, so I have to label sections, theorems,
formulas, etc.), so it would be nice to have. But if it's just not
possible with the current methods, I guess we have to wait for the
programmer to add what we want and need ...
But in any case, thanks for the explanation. And I know now that this
is a pet peeve of others as well and not just myself :-)
> However, Ctrl+left/right should still do the right thing.
Huh? Ctrl+left/right switches spaces on my system.
Max