Howdy.
I'd like to be ability to change themes just like I change languages.
Shortcut key for 1 or many. Scope based.
I'm developing themes for different kinds of things.
Say i'm developing an ASP.NET page with html, javascript, css &
embedded ASP.
I'd like to define themes that show more detail in the language that
I'm working in and wash out the colors of everything else.
EG:
select an HTML tag, hit cmd-opt-shift-option-numpad_5... shebang!
asp, javascript & css fade & html tags pop!
select embedded ruby within the string of an html attribute, cmd-opt-
shift-option-numpad_5... sheboom! everything fades & embedded ruby pops!
OH, yeah!!!
PS: i'll be sharing more wacky themes soon-ish.
If anyone has any suggestions for color palettes, please let me know.
I'm itching for some code sweetness.
Hi,
in find there is a good support for regular expressions, and also the
best lookahead function (?=) and (?!), but there isn't lookbahind? (?
<=) and (?<!)
Is it possible in the next release to add it?
Many thanks!
Salvo
Hey, I somehow hosed TextMate's ability to perform the Run Ruby
command, and I don't know how I did it, or how to fix. (Or rather, I
know how I did it, but I don't understand why it broke.)
Symptom 1: invoking Run Ruby command produces
"/usr/local/bin/ruby: No such file or directory -- /Users/
gavinkistner/Library/Application Support/TextMate/Bundles/
Ruby.tmbundle/Supprt/tmruby.rb (LoadError)"
Symptom 2: selecting text and invoking the Lookup Ruby Docs command
produces
/bin/bash: /usr/bin/ri: /usr/bin/ruby: bad interpreter: No such file
or directory
What I did:
1) Despite having /usr/local/bin first in my path[1], TextMate was
using /usr/bin/ruby instead of /usr/local/bin/ruby
So I used TextMate's preferences and set the TM_RUBY variable
explicitly to /usr/local/bin/ruby
To be sure, I also moved /usr/bin/ruby to /usr/bin/ruby_apple
2) I was tired of seeing warnings in my ruby output, so I changed the
Ruby Ruby command from:
${TM_RUBY:=ruby} -w -- "$TM_BUNDLE_PATH/Supprt/tmruby.rb" "$TM_FILEPATH"
to
${TM_RUBY:=ruby} -- "$TM_BUNDLE_PATH/Supprt/tmruby.rb" "$TM_FILEPATH"
...and it broke, complaining about lack of tmruby.rb. (Spotlight
confirms that no such file exists on my drive.)
3) I then put the -w back in, and it's STILL broken!
...what happened to tmruby.rb? If I remove that bit and change the
command to just
${TM_RUBY:=ruby} "$TM_FILEPATH"
I can get ruby code to execute, but I don't get the nice output in
the HTML window :|
[1] Output of terminal session, which defaults to tcsh:
[Slim:~] gavinkis% setenv
PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:.
...extra variables omitted...
[Slim:~] gavinkis% bash
Slim:~ gavinkistner$ echo $PATH
/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:.
Does anyone have an idea why using Python's os.fork() to start a
daemon process from within TextMate doesn't work? Why would I want to
do this, you ask? It seems the most logical way to browse local
Python documentation (via pydoc). The doc commands that already exist
are great if you know exactly what you're looking for, but I still
find myself starting up the doc server every now and again to go
poking around. My thought was to run a command "Browse Python
Documentation" or whatever from TextMate that opens a web browser to
the local server. If the server isn't running then it needs to start
lazily. This works great from the shell. From within TextMate the
server starts fine but the process doesn't appear to be properly
forked because TextMate just hangs like it's waiting. The script is
attached for reference.
K
I think this might be a useful preference/fix.. lots of times I open
scratch documents in TxMt to copy and pasted into my web browser.
Constantly switching back and forth between them, I end up having to
cancel the "save as" dialog every time I return to the app.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
this seems to be the case since at least beta 5, and apparently still
present. Suddenly the numbering of the new, untitled documents begins
to jump, and so I'm at untitled 86, then it's 295, and it keeps on
skiping numbers. (the numbers here are examples only)
I don't really know what triggers it, but my usage pattern is really
simple: I mostly just load a lot of sketch projects from the terminal,
and every now and then create a new, non-project file.
I'm trying to figure out a way to do auto-importing for Java in
TextMate. I'm stuck at a couple of places and I would appreciate it if
someone who knows more about TM than I do could chime in with some
suggestions.
Essentially, what I'd like to be able to do is take a class name,
select it, and hit Ctrl-Meta-Bucky-I and have TM add the appropriate
import statement to the file. My naive implmentation would look
something like:
1. Get the project CLASSPATH from a project-level config file
2. Build a list of the jar files on the CLASSPATH and grep through
their contents to find matches.
3. If there's only one match, munge it appropriately and stick it in
the import section of the buffer
4. If there's more than one match, pop up a dialog and let the user
pick the appropriate fully-qualified class name, then stick in import
section.
Does this seem to be a sensible way of approaching the problem? Is
there a way of sticking the import statement where it belongs? More
generally, is there any way to do arbitrary transformations on the
contents of the buffer as if it were a java AST, instead of a stream
of characters? I think that would probably be necessary to create
commands to do source-level refactorings.
Thanks,
Alex
Hi All,
In the project drawer, a right-click on a file icon opens a dialog
where one can find :
Treat Files with ".xxx" Extension as Text
Where does TM store this infos afterwards? Did not find anything in
"Application Support" nor in "Preferences"
The point is to have TM consider files with a variable extension as
text, like the ones I have to deal with : the extension is a 8-digit
number representing the date the document was edited (*.20041023 for
instance)
Can we use regular expression for this (like \d{8})?
Found nothing in the Wiki nor in Help.
Thanks,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
Subversion seems to work with TextMate only if the .tmproj file is
saved within a subversioned folder, or if a Subversioned folder has
been opened in TextMate without the project being saved.
Is anyone else experience this -- or am I not doing something wrong?
Just checking.
Hi, this is my fist post on this ML, i want to share some little
extensions that i've made to C Language Bundle.
Hope these helps
Name : Run
Activation : command-R
#!/usr/bin/python
import os
file = os.environ['TM_FILEPATH']
path = os.path.split(file)
filename = path[1].split('.')
os.system("gcc -Os " + path[1] + " -o " + filename[0])
os.system("./" + filename[0])
Name : Run Project
Activation : command-shift-R
#!/usr/bin/python
import os
file = os.environ['TM_PROJECT_FILEPATH']
path = os.path.split(file)
projectName = path[-1].split('.')
projectName = projectName[0]
os.system("make -k")
os.system("./" + projectName)
Name : Compile
Activation : command-B
#!/usr/bin/python
import os
file = os.environ['TM_FILEPATH']
os.system("gcc -c -Os " + file);
Name : Compile Project
Activation : command-shift-B
make -k
--
Ciao
Fabio
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it