I'm getting a bit more into textmate, and, that has brought me to some less
newbie questions, but, things that have been bothering me:
1) Where can I find a list of keyboard shortcuts? The other day I wanted to
comment out a block of text, but had to google to figure out ⌘-/
2) I'm ready to start playing with projects some -- and, from my lurking on
this list, it seems that the default project stuff isn't very capable. What
is a good project bundle to start playing with?
Thanks in advance,
-Dave
How come when println is executed within the Groovy script, the output does
not show carriage return?
println "hello"
println " world"
The output window shows hello world in the same line.
I am using TextMate 1.5.8.
--
View this message in context: http://www.nabble.com/println-has-no-carriage-return-in-Groovy-bundle-tp224…
Sent from the textmate users mailing list archive at Nabble.com.
Let's say I have a project folder open in TM. The folder has already
been initialized with Git, and all the files that are supposed to be
under source control have been added. Let's further say that I've made
some changes to the files "sample.html" and "sample.css," and it's
time for a commit. The sample.css file is the current tab and is the
file I've been editing most recently. I hit Control-Shift-G, the Git
command menu pops up, and I choose Commit. Up pops a browser/message
window with the words
Committing Files in ‘sample.css’ on branch ‘master’
In front of that is a two-paned window. The top pane has a place for
me to type in the commit message, and the bottom shows a list of files
to commit. Even though I've changed both sample.html and sample.css,
only sample.css is in that list.
If I click in the project drawer before pressing Control-Shift-G,
things work the way I think they should: The browser/message window
says
Committing Files in ‘./’ on branch ‘master’
and the two-paned window has both files in the list of files to commit.
Is there a way (apart from clicking in the project drawer) to get the
commit to apply to the entire project instead of just the frontmost
tab?
--
Dr. Drang
I'm sure this can be accomplished with a regular expression but I'm
looking for an easy way to find a whole word. For xample, if I have
these types in a file:
Listener
ClickListener
And I do a find on "Listener", I'll hit both of these, although more
often than not, I want to match only the "whole" word, so just match
the first Listener.
I think this is easy to do by adding word boundaries around your
search (whitespace, ., [, (, {, etc), but I'm wondering if this
functionality is built in as an option that I'm missing.
Thanks-
Robert
I find TextMate's behavior when unindenting (text shift left or cmd-[)
text slightly annoying. Often times the cursor is pretty much at the
end of a line when I decide to unindent. If I need to unindent a
couple of steps, the cursor jumps down one line when the end of line
crosses the cursor position. To prevent this from happening I always
have to move to the beginning of the line before unindenting. I'd
prefer the cursor to simply stay on the line I'm unindenting (Xcode
works this way) no matter which column the cursor is positioned in.
Does anyone know if it is possible to modify/extend/whatever TextMate
to behave like Xcode in this respect?
Thanks in advance
Hello,
i discovered Textmate few weeks ago, and it is a relay great tool. For
drawing electrical circuits in Latex i use the M4 Circuit-Macros.
So i started to create a Textmate bundle for this purpose. Its working
now but i have some problems to set the right language grammar.
So if anyone is interested to help me with this pleas contacted me
br
Tobias
Using the reStructuredText bundle, I keep running into a problem with
TextMate "forgetting" the soft tabs settings I apply to the .rst file
extension.
When I quit TextMate, start it, open my project's folder, then open
a .rst file, it knows my preferred tab size, but it defaults to hard
tabs.
When I switch it to soft tabs, it remembers it for the duration of the
TextMate session. That is, when I close the window for the project,
then reopen it, it still remembers that I prefer soft tabs for .rst
files.
I've even closed TextMate, opened com.macromates.textmate.plist file
with the Property List Editor and made sure that Root/
OakTextViewScopedSoftTabs/text.restructuredtext/softTabs was set to
"Yes", saved it, closed PLE, reopened TextMate, and it still thinks
that I want hard tabs for .rst files.
It doesn't seem to be doing this for other file types. Very
frustrating! I'd gotten used to the habit of letting TextMate
remember my soft tab settings; now I seem to be getting into a
defensive habit of double-checking soft tab settings -- not exactly an
experience I enjoy having spent money for. :)
Any suggestions about what I can do to get TextMate to remember soft
tab settings?
Thanks,
--
Matthew Scott
gldnspud(a)gmail.com
Dear all,
I try to build a scope that matches a text block within a latex
document. The beginning of a text block should be given by a line
containing some text, which is preceded by a blank line (possibly
filled with whitespace characters). Likewise, the end of a text block
is a line containing some text followed by a blank line. So far I
tried to put
{ name = 'meta.paragraph.text.latex';
begin = '\n[^\S\n]*\n[^\S\n]*(?=[^\S\n]*\S)';
end = '(?<=\S)[^\S\n]*\n[^\S\n]*\n';
},
inside the latex language definition, but this didn't work out (simply
putting \n for both regexes works, but does the wrong thing). However,
the beginning regepx matches the beginning of a text block, that is a
line that is preceded by an empty line when I use it in the find
window (and the same for the end of a text block). Can anybody tell me
what I am doing wrong?
Perhaps there is another Scope already doing the job?
Best, Christoph
I've recently switched from subversion to git for my latex projects. I
find git a lot easier to use and it was absolutely painless to switch.
However, I miss the ability to use File Merge to graphically display
changes. (*Very* useful if you are working with multiple authors and
you want to see where text has changed.
The git bundle allows you to compare things, but I would like to use
File Merge instead of the standard window comparing the changes.
Is it possible to set File Merge as default viewer for diff files as
you are with subversion?
Thanks a bunch!
Max
On Mar 5, 2009, at 2:19 PM, textmate-request(a)lists.macromates.com wrote:
> On 3 Mar 2009, at 17:33, Claus wrote:
>>
>
> Yes, the environments (shown via the ?env? command) can differ in many
> ways, in your case it could be that TZ is setup differently for the
> Terminal than TextMate, or maybe it is related to the LC variables?
>
> Can you provide a small example which reproduce the problem?
I've run into this with other applications before. One solution, at
least short term, is to quit out of TextMate and open it using the
Terminal, for instance:
open /Applications/TextMate.app
It should then inherit your shell's environment. See if your script
runs that way.
Hope this helps,
-berto.
I have noticed since the latest update that with the C++ bundle,
comments that I write that are between the function name and the
opening bracket no longer are shown in comment color.
For example,
int foo(int x)
//this comment is not shown in comment color and is instead the
default text color
{
....
}
Is there a way to revert to the old functionality?
Andrew Sapperstein
University of Michigan-Class of 2012
McDonogh School-Class of 2008
Hi,
Is there any way to disable TextMate's behaviour of treating spaces as
tabs in the middle of the line (i.e. after a non-whitespace character
at the beginning of a line)? Say for example I have soft tabs and a
tab size of 2, and have a line of "a <sp> <sp> <sp> b" Using the
keyboard to navigate between the a and the b will always skip at least
one of the spaces and it isn't always easy to tell where the cursor
will jump if you have a larger tab space than that. Is there any way
to disable this behaviour?
Thanks,
Adam
What is the max file size that TM supports?
TextEdit is able to open 267MB file and working smoothly.
However I got an "Out of Memory" error.
There are 3.9GB free memory in the system.
Thanks in advance.
I've been running awk and sort commands on text files via 'Filter
Through Command' for months, on an Intel MacBook Pro, with OSX 10.5
and the current version of TextMate. This week, following an install
of TexLive 2008 (it's the only significant system change I can recall,
but may not be related), when I try to run an awk command (e.g. awk
'{ print $2 }'), bash takes and keeps a full core of the Core2 Duo
CPU, and from what I can see it can only be stopped by a ForceQuit. I
suspect that there's a simple way to debug and resolve this -- can
anyone help me with this?
Thanks in advance -
G
--
Gordon Robertson
Canada's Michael Smith Genome Sciences Centre
Vancouver BC Canada
Hi,
I have some python code that runs fine if I execute it from the
terminal. If I run it from within textmat (cmd-R) I get this error:
IOError: 2, No such file or directory
function main in AMODConv_pathLaufen.py at line 198
t3 = t2.astimezone(pytz.timezone(pytz.country_timezones('de')[0]))
function country_timezones in __init__.py at line 202
zone_tab = open(os.path.join(os.path.dirname(__file__), 'zone.tab'))
Program exited with code #1 after 2.05 seconds.
I guess it has to do with the pytz module?
But why does it run on the terminal?
Can there be a difference between running python on the terminal vs.
from within TextMate?
I am running OS X 10.5.6, TextMate 1.5.8(1498)
TextMate does find the pytz module - at least it displays the pytz
module help after hitting F3.
Thanks for your help,
Claus
Sometimes I am writing code, and I need to go back and quote
something...
foo=$this/$that/$other
What I wanted was this:
foo="$this/$that/$other"
What I end up with is this
foo=""$this/$that/$other
How do I prevent that, I know I can delete one, but it sometimes gets
strange, and puts another one back in, or other oddness. It is really
rough when you are in the middle of a regex string, and it starts
messing with you.
Thanks
--
Scott
I'm working on a command that I'd like to be able to apply to all
files in my project. Looking at the env vars I only see items for
working with the current file. Is there any way to get a list of all
files in the current project?
It is certainly possible this sort of thing is available somewhere in
the shared support ... how do I get more info about what's there?
Thanks!
Hi list:
I'm testing TextMate to write LaTeX documents, so the first thing that
i did was see the screencasts posted on the page by Charliaos Skiadas
-- totally liked.
I downloaded the TextMate v1.5.7 Trial to testit but i can't stop to
realize that the icons that we can see in the Bundle Editor for
(commands, languages, drag commands, etc.) is missing when i click on
the bottom of the windows in the icon on the left of the Tab Size
section.
This is ok, or in this 'menu' should i see the icons?
Thank you very much!
P.S: Great editor!!!!
I am finally trying out git -- the ability to work off-line and still
make commits was what drew me -- but I am having a few difficulties
with the current bundle.
Perhaps the worst one is that I can't seem to get the keyboard
shortcut to work. I can work things by using the menus, but whenever I
use CTRL + SHIFT + g, I get the following tool-tip error message:
/tmp/temp_textmate.pjlEGg:26:in `open': No such file or directory
- pages (Errno::ENOENT)
from /temp/temp_textmate.pjlEGg:26:in `entries'
from /temp/temp_textmate.pjlEGg:26
I have no idea what this means.
Also, I really liked the cool little badges that the SVN bundle
offered that gave you a quick visual take on what files you had worked
on or added. Is there any way to get something similar with git?
john
Hi,
is there a new way to disable auto-indent, other than going through Terminal as
described here a few years ago? I’m new to TextMate 1.5.8 and prefer to code
XHTML without auto-indent. Why not add this option to the "Tab size" pop-up in
the status bar?
Thanks,
Philip
Hi,
I tried to update my bundles using svn as described in the online-manual but
unfortunately I failed.
I started and instaled svn. Then I cd to the bundles directory in
~/Library/Application\ Support/TextMate/ and ran:
svn update *.tmbundle
and received:
Skipped 'AppleScript.tmbundle'
Skipped 'HTML.tmbundle'
Skipped 'NanoBlogger.tmbundle'
Skipped 'Pragmatic Examples.tmbundle'
Now I have 2 questions:
What did I do wrong?
Where are my other bundles.
Thanks for your help.
Greetz
Khushru
The TODO bundle seems to ignore .xml files when run in a project.
If I just open an .xml file with TODOs by itself and run "Show TODO
List" it works. But if I have a project with that same file in it and
run "Show TODO List" it doesn't work.
It does list TODOs in other files,just not .xml
I've tried it as another user, and have also tried removing all my
settings and downloaded bundles as per the troubleshooting 101 page.
TM_TODO_IGNORE is not defined
In Preferences, Advanced, Folder References:
File Pattern = !(/\.(?!htaccess)[^/]*|\.(tmproj|o|pyc)|/Icon\r|/svn-
commit(\.[2-9])?\.tmp)$
Folder Pattern = !.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*
\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
Version is 1.5.8 (1498)
If it helps at all the files as a docbook project with a directory
struture like:
product_version\book_name\Makefile
product_version\book_name\en-US\Book.xml
product_version\book_name\en-US\Chapter.xml
product_version\book_name\de-De\Book.po
product_version\book_name\de-DE\Chapter.po
product_version\book_name\ja-JP\Book.po
product_version\book_name\ja-JP\Chapter.po
Thanks in advance
I just found a problem with TextMate and symlinks. Say I have a regular
file and a symlink to that file. If I open the symlink in TextMate and
save it again, the original file's permissions are changed to those of
the symlink. My umask is set to 0022, so files are created 0644
(rw-r--r--) and directories are created 0755 (rwxr-xr-x). Symlinks are
created with permissions as if they were directories. The end result of
all of this is that if I edit a symlink to a file, the file ends up
getting its execute bits set.
Is there any way to keep this from happening? I don't really want to go
around setting execute permission on arbitrary text files...
MariMac:/tmp/test$ umask
0022
MariMac:/tmp/test$ echo "hello world" > foo
MariMac:/tmp/test$ ln -s foo bar
MariMac:/tmp/test$ ls -l
total 8
lrwxr-xr-x 1 sking wheel 3 2009-03-03 14:10 bar -> foo
-rw-r--r-- 1 sking wheel 12 2009-03-03 14:10 foo
MariMac:/tmp/test$ mate -w bar
MariMac:/tmp/test$ ls -l
total 8
lrwxr-xr-x 1 sking wheel 3 2009-03-03 14:10 bar -> foo*
-rwxr-xr-x 1 sking wheel 24 2009-03-03 14:11 foo*
(Obviously I have "Perform atomic saves" unchecked in the preferences,
otherwise the symlink would get overwritten and the original file
wouldn't be changed.)
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>
Hello all, every day I shave a few percentage points off the time I
spend in BBedit, and get closer to 100% in TM.
Today, I am stuck on showing differences. TM has a lot of good tools
to show the differences in a standard `diff`y kind of way.
What I usually find useful, was in BBedit, I could compare the two
most front files, a window would pop out below the files, sort of a
left, right, and bottom frame display. I could then move through the
line differences in the files.
Any way to do this in TM?
--
Scott
* If you contact me off list replace talklists@ with scott@ *
How do you shut off that annoying start up beep? I've tried the Wiki
and the built in help searching for beep. Nothing found in the
preferences either. It's got to be simple but where?
--
Bob Love
"Entropy ain't what it used to be."
Hello,
I recently installed TextMate on a new computer, and I was pleasantly
surprised when I did Bundles->Subversion->Diff->Diff With Newest and
the changes were color coded for add, remove, etc. So my question is,
why does my old installation of Textmate not do this same
highlighting? Both are version 1498.
I actively use both computers, so this is a nice visual aid. Thanks.
Best Regards,
Armon Dadgar
Hi,
A problem that no-one's been able to help me with since the update
still sits un-resolved. Is there anywhere else I can go to try and get
support with this?
It's weird because I feel that I've paid cash for Textmate (which is
fine, I think Textmate is brilliant) and therefore I should expect
actual tech-support. However if it's a problem with a bundle then
maybe that's not Textmate's responsibility and hence I must resort to
the open-source model of posting questions in places, which is fine
until that model of support fails, as in this case.
I guess I'm hoping that there's another forum somewhere that I should
post to, or should I think about submitting a bug somewhere?
Cheers,
Mike Dewar
Love ProjectPlus, but:
I have several projects within the same git tree. Only for one of them
are the git badges displayed in ProjectPlus, not for the others.
Interestingly the icon in the window title always properly reflects
the git state. That is just a tad maddening, anyone found a workaround
for this?
It seems to be related to how the project is opened: via the tmproj it
does not work. It seems to work when opened as folder, but I can't use
that as I have some project-specific settings in the tmproj file which
the build process needs.
Has there been an update since the 1.2 version from 6 months ago?
Thanks
Gerd
I've heard (from lurking on this list) that the default TextMate concept of
projects is a bit lacking.
Given that, which of the multitude of project bundles should I check out --
or -- should I just play with all of them? i.e. Is there
any canonical "best" ?
-Dave
A few months ago, I been successfully using TM for all sorts of Python
scripts. I recently decided to use it again, but now scripts that used to
run perfectly no longer do so. Here is the key: those same scripts still run
perfectly if I run them from XCode, Editra, or if I make the files
executables and run them from Terminal. They only fail in TM.
I have run into two problems. First, this simple one-line script will cause
two error windows to appear:
text = raw_input("--> ")
The first error window says, "The application Python quit unexpectedly. The
problem may have been caused by the tm_interactive_input.dylib plug-in."
The second error window says, "The application tm_dialog2 quit
unexpectedly."
I can paste the error reports here if you want to see them.
The second script that causes problems is this (reduced down to its
essentials):
import pyglet
class Test(pyglet.window.Window):
def __init__(self):
pyglet.window.Window.__init__(self)
def on_draw(self):
self.clear()
test = Test()
pyglet.app.run()
I get this error message:
OSError: dlopen(/System/Library/Frameworks/AGL.framework/AGL, 6): Symbol not
found: _CGLClearDrawable Referenced from:
/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo Expected
in: flat namespace
function __getattr__ in __init__.py at line 307
__import__(import_name)
module body in __init__.py at line 133
from pyglet.gl import gl_info
module body in __init__.py at line 99
from pyglet.gl.lib import GLException
module body in lib.py at line 141
from pyglet.gl.lib_agl import link_GL, link_GLU, link_AGL
module body in lib_agl.py at line 51
framework='/System/Library/Frameworks/AGL.framework')
function load_library in lib.py at line 90
return self.load_framework(kwargs['framework'])
function load_framework in lib.py at line 226
lib = ctypes.cdll.LoadLibrary(realpath)
function LoadLibrary in __init__.py at line 408
return self._dlltype(name)
function __init__ in __init__.py at line 325
self._handle = _dlopen(self._name, mode)
That error message makes it seem like a pyglet problem, but again, I get no
errors when running it outside of TM.
I am running Mac OS X 10.5.6 and the cutting edge version of TextMate
(1498), and I completely reinstalled TM after experiencing these errors. I
am using the stock Python that shipped with Leopard (2.5.1) and that's the
version being used by the Python bundle. There were two older MacPorts
versions of Python that were carried over to my Leopard installation, but I
have uninstalled those. I tried setting the TM_PYTHON variable, but it made
no difference.
A simple pure-Python script that doesn't use pyglet or raw_input will run
fine:
class Test(object):
def __init__(self):
print("Hello, World")
test = Test()
Odd. Ideas?
Jim
--
View this message in context: http://www.nabble.com/Python-bundle---2-problems-tp22163059p22163059.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I'm new to Latex with TextMate.
It might be an easy question, but I couldn't figure it out.
Any comments will be thankful.
I placed the caret in \cite{} and press ESC. There was only one beep.
Nothing happend.
After googling the shell variables TM_LATEX_BIB were filled as my local copy
of bib file. - No luck.
After googling again, I placed the bib file in ~/Library/texmf/bibtex/bib. -
Still no luck.
I've read many posts, but still the citation function is not working.
Would you help me out?
Thanks in advance,
SC
Hi all,
What is the proper channel for submitting bugs and/or feature requests
to bundle authors? Should I just contact the developer directly? If
so, where can I find the developer's contact info?
Thanks,
Michael J. I. Jackson
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
Hi,
If I set ProjectPlus sort to show folders on top, the order gets messed
up if I add a file to a project folder outside of TM. When I switch back
to TM the project list updates to show the new file, but the folders are
now mixed in alphabetical order, rather than at the top. I then have to
uncheck "folders on top" and the re-check it to restore the order.
Is this a bug? If I add the file through TM (using the 'add existing
files...' option, this doesn't happen, it's only if I add a file into a
folder that is in the project, and the re-sort happens when TM regains
focus and the project drawer is
redrawn.
Thanks,
Nigel
Hi,
Is it just me? I've got the latest version from Subversion. Erlang
bundle doesn't have any command, like Compile, ... Google says that it
used to have them. Then I just tried TerminalMate bundle and it
crashes with "`initialize': No such file or directory - /Users/dm/
Library/Application Support/TerminalMate/server.bin (Errno::ENOENT)".
Cheers,
D
Hi,
Last week I received an automatic update of TextMate. I think this was
actually the first time since I have been using TextMate for a year or
s. I am now on Version 1.5.8 (1498)
After the update the Focussed Unit Test function of the Ruby bundle
stopped working. When I now run a focussed unit test it will run all
the unit tests.
Has anybody seen the same problem? Do you know how to fix this? I
Googled this problem, but I couldn't find anybody else with the same
problem.
Thanks,
Marco
I have in and got myself an iPhone.
Now I'm wondering if any of you others on the list - who I know share
my love of TM - have ever seen a code editor for these slices of
loveliness?
I should point out that I have already installed iSSH, so I can use vi
(after a fashion) but it would be a nice touch to be able to get
something with a fixed width font and syntax highlighting for putting
ideas down on the go. Of course, without copy and paste, it's a little
pointless!
Still, I thought I'd ask!
Best,
Pete
Sent from my iPhone
I notice that Spotlight is not indexing the contents of my .rb files. Do I
need a special TextMate Spotlight importer, or is this just something about
my LaunchServices? Here's the listing from mdls showing the content type
tree on a typical .rb file:
kMDItemContentTypeTree = (
"public.ruby-script",
"public.shell-script",
"public.script",
"public.source-code",
"public.plain-text",
"public.text",
"public.data",
"public.item",
"public.content"
)
Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
Hi...
I was wondering if we're ever going to see collaborative text editing
with TextMate? It's perfect for coding solo efforts, and I've been
using Coda for collaborative stuff, but without all the nice TM
shortcuts, the project view, etc, it's pretty much useless.
Pretty please?
Thanks...
Matt
Hi List !
I would like to add a few lines to the ruby L file to support git merge colors.
Details here:
http://zenadmin.org/en/blog/post536.html
How should I proceed ?
Gaspard
Whenever I try to run GetBundles Get Bundles command I get the error
message:
/bin/bash: line 14: ~/Library/Logs/TextMateGetBundles.log: cannot
overwrite existing file
If I delete the above file then the Get Bundles command will run once
and then the error occurs again.
I have just been upgraded to TextMate 1.5.8 (1498)
Any suggestions ?
Phil
Hey Guys,
I'm guessing this was caused Apple Security Update that was just
released, but I have updated TextMate and some other things since the
last time I tried this. Unfortunately I kinda wanted this to work! Heh.
I get the following error when I try to "Preview" or "Produce HTML"
for Markdown:
Digest::MD5 object version 2.36 does not match bootstrap parameter
2.38 at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/
XSLoader.pm line 94. Compilation failed in require at /Applications/
TextMate.app/Contents/SharedSupport/Support/bin/Markdown.pl line 16.
BEGIN failed--compilation aborted at /Applications/TextMate.app/
Contents/SharedSupport/Support/bin/Markdown.pl line 16.
Even though I suspect it was Apple's update, this might help. I
updated Textmate on the 10th and this file seems to have changed.
shell> ls -l /System/Library/Perl/5.8.8/darwin-thread-multi-2level/
XSLoader.pm
-rw-r--r-- 1 root wheel 10465 Sep 23 2007 /System/Library/Perl/
5.8.8/darwin-thread-multi-2level/XSLoader.pm
shell> ls -l /Applications/TextMate.app/Contents/SharedSupport/
Support/bin/Markdown.pl
-rwxr-xr-x@ 1 joe joe 35622 Feb 10 12:45 /Applications/TextMate.app/
Contents/SharedSupport/Support/bin/Markdown.pl
Any pointers?
Thanks guys!
- Joseph Pecoraro
Hi,
Since earlier this week the balancing/pairing of brackets etc. no
longer seems to work. Thought these were syntax defined, but neither
R, JavaScript, Fortran, and a few other bundles I treid seems to work
any longer. Have I done something to my settings?
Thanks,
Rob
Hi,
I unsuccessfully searched the web site and the list archive, but I may have missed something.
I need to work for a client with humongous text files encoded in ISO-8859-1, with diacritical characters.
This is mostly OK, but I could not find a way to set the output window that TextMate opens to ISO-8859-1 encoding. This is a PITA.
I tried both Perl and Ruby and the issue is the same. For the sake of an example, save the following 6 lines (French composers) to a text file encoded in ISO-8859-1, named "test.txt":
Léo Delibes
César Franck
Gabriel Fauré
Edgard Varèse
Jean Françaix
Henri Büsser
Now run the following Ruby program from TextMate:
file = File.open("test.txt", "r")
file.each { |line| print line }
file.close
In the output window, all diacritical chars are replaced by the dummy "white question mark within a black diamond".
This is despite having set the preferences to Latin 1.
Note that the same small Ruby program displays diacritical chars correctly when run from a terminal window (provided the said terminal window is set to ISO Latin 1 of course).
So my question is: is there a way to set the TextMate output window to ISO-8859-1?
A workaround might be to redirect standard err and standard out to another window, already open, with ISO-8859-1 encoding. Is that possible?
I hope my request makes sense.
(Unfortunately, switching to UTF8 is not an option: input is almost 100GB ISO-8859-1, and so output needs be. A roundtrip to UTF8 would triple execution time, which is already too long as it is).
Many thanks,
Jean-Denis
In textmate it looks like there are spaces everywhere! I mean, even if no
trailing spaces are there at the end of the line, I can move right with the
keyboard arrows.. even worse, when I go down (down arrow) I don't get to the
end of the next line, but to somewhere in empty space!
How can I fix that?
thanks
After upgrading to Textmate 1.5.8 the program has all of a sudden started to
use all CPU and allocating more and more memory for no apparent reason. It
then beachballs and has to be forced to quit. This happens even with a
single, small file open. Anyone else seeing this?
--
Sven Axelsson
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.
Thank you very much for your help here, the function of that option was not
very clear to me before :-)
> Message: 2
> Date: Thu, 12 Feb 2009 14:22:15 +0100
> From: Pierre Riteau <pierre.riteau(a)gmail.com>
> Subject: [TxMt] Re: "Texify" script in LaTeX bundle
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <2C5EA38A-66B4-4B98-B662-7E2E8DF21C91(a)gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
>
> On 12 f?vr. 09, at 14:04, Felipe Rech Meneguzzi wrote:
>
> > Hello all,
> >
> > I've searched the texmate documentation for the latex bunde and
> > then list archive but did not find any query towards this
> > functionality, so I am posting my suggestion here.
> > I've recently moved to the mac from working in windows and was
> > quickly convinced by a friend to use textmate both for programming
> > and LaTeX editing. In the LaTeX department, I have noticed that
> > there is no shortcut to execute this sequence of commands: latex +
> > bibtex + latex + latex. In the windows incarnation of LaTeX, mikTeX
> > has an executable that does this, but I believe this is easily done
> > by a script under MacOS. It would not be extremely hard to create a
> > script to do this, and smart it up by checking for the existence of
> > a bbl file and comparing its date with the source files in a
> > textmate project and decide on the most efficient sequence of
> > commands.
> > I would greatly appreciate it if (assuming people liked the idea,
> > of course) someone with more experience in textmate could add this
> > functionality, otherwise I may have to learn how the bundles work
> > and try to do it myself.
>
> Use Latexmk.pl? (see LaTeX bundle preferences)
>
> --
> Pierre Riteau
>
>
--
___________________________
Felipe Rech Meneguzzi
felipe.rech(a)gmail.com
http://fmeneguzzi.blogspot.com
___________________________
Salutations, list! When running scripts using the Python bundle, I noticed a
complaint from python3 about the use of reload() in sitecustomize.py. Since
reload is no longer a built in function in python3, this little one line
patch will fix the issue while still supporting python2.
Index: Python.tmbundle/Support/sitecustomize.py
===================================================================
--- Python.tmbundle/Support/sitecustomize.py (revision 11288)
+++ Python.tmbundle/Support/sitecustomize.py (working copy)
@@ -18,6 +18,7 @@
# now import local sitecustomize
try:
import sitecustomize
+ if sys.version_info[0] >= 3: from imp import reload # python 3 support
reload(sitecustomize)
except ImportError: pass
I am currently using TM 1.5.7 (1436), and everything is working swimmingly.
When I update to the latest "minor update," I end up with the following
message when I ask LaTeX to typeset my document:
env: ruby: No such file or directory
Now, I can see from searching around this forum and elsewhere that this is
somewhat a common problem. I've seen
http://manual.macromates.com/en/shell_commands this and several posts
trying to solve this issue. In particular, I am running Leopard, and have
not replaced Ruby. Both ruby and env are sitting in /usr/bin, and my path
has /usr/bin as the first entry. Furthermore, ~/.MacOSX/environment.plist
reads { PATH = "/usr/bin"; }.
At this point, I'm not sure what to do, and would appreciate some help.
Fortunately, I was able to roll back to v1436 via Time Machine, and
everything is working fine again. But I'd like to be able to use the latest
minor update. Any suggestions?
--
View this message in context: http://www.nabble.com/Error-on-Update%3A-env%3A-ruby%3A-No-such-file-or-dir…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all-
What became of the BibTex.tmbundle? I have it on my computer, but
didn't see it listed in the SVN. Googling didn't find a definitive
statement on it's fate.
Was it merged into the LaTex.tmbundle? Am I hallucinating, inattentive,
stoopid?
Any info greatly appreciated!
Best, Charles
Hello all,
I've searched the texmate documentation for the latex bunde and then list
archive but did not find any query towards this functionality, so I am
posting my suggestion here.
I've recently moved to the mac from working in windows and was quickly
convinced by a friend to use textmate both for programming and LaTeX
editing. In the LaTeX department, I have noticed that there is no shortcut
to execute this sequence of commands: latex + bibtex + latex + latex. In the
windows incarnation of LaTeX, mikTeX has an executable that does this, but I
believe this is easily done by a script under MacOS. It would not be
extremely hard to create a script to do this, and smart it up by checking
for the existence of a bbl file and comparing its date with the source files
in a textmate project and decide on the most efficient sequence of commands.
I would greatly appreciate it if (assuming people liked the idea, of
course) someone with more experience in textmate could add this
functionality, otherwise I may have to learn how the bundles work and try to
do it myself.
Regards,
--
___________________________
Felipe Rech Meneguzzi
http://fmeneguzzi.blogspot.com
___________________________
The sitecustomize.py script in the Python.tmbundle in build 1498 seems
to have an error, which keeps the traceback from the user script from
being formatted.
It seems the error offset (e.offset) is a NoneType instead of an int.
This diff fixes the output:
diff --git a/Python.tmbundle/Support/sitecustomize.py b/
Python.tmbundle/Support/sitecustomize.py
index ffb3525..a30c6d0 100644
--- a/Python.tmbundle/Support/sitecustomize.py
+++ b/Python.tmbundle/Support/sitecustomize.py
@@ -47,6 +47,7 @@ def tm_excepthook(e_type, e, tb):
# if this is a SyntaxError, then tb == None
filename, line_number, offset, text = e.filename, e.lineno,
e.offset, e.text
url, display_name = '', 'untitled'
+ offset = offset if offset else 0
io.write("<pre>%s\n%s</pre>\n" % (escape(e.text).rstrip(),
" " * (offset-1) + "↑"))
io.write("<blockquote><table border='0' cellspacing='0'
cellpadding='0'>\n")
if filename and path.exists(filename) and
"TM_SCRIPT_IS_UNTITLED" not in environ:
I searched on the gmane list and couldn't find anything, so I hope
this might prove helpful.
Thanks,
Jaremy Creechley
Last week I read an article re. where a bundle 'RubyFrontier' was
mentioned. Reading the documentation I got the impression that this
bundle is somewhere available but I do not see it when I use the
GetBundles-Bundle.
Maybe someone can tell me where to find this RubyFrontier-Bundle? Or
confirm that it is not available yet.
Thanks,
Gert
I'm getting this message only the first time I cmd-R a ruby script.
*LoadError:* no such file to load — builder
method gem_original_require<txmt://open?line=27&url=file:///System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb>
in *custom_require.rb* at line 27method
require<txmt://open?line=27&url=file:///System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb>
in *custom_require.rb* at line 27*at top
level*<txmt://open?line=56&url=file:///Users/david/scripts/getAndaleSales.rb>
in *getAndaleSales.rb* at line 56
If I cmd-R a second time, the script runs normally. If I restart TM, I get
the same failure again on first run, works on second run.
I followed the troubleshooting instructions & removed a local copy of the
Ruby bundle that I had downloaded previously via svn.
Thanks for any suggestions.
---
David Carter
david(a)carter.net
I have noticed that when I updated, if I have comments in a function,
before the start bracket(see below, it is no longer color-coding as it
used to. I really preferred the way it used to handle this, where it
would just comment it as normal. Was this change by design?
Andrew Sapperstein
University of Michigan-Class of 2012
McDonogh School-Class of 2008
Hi all,
is there a scopes' hierarchical list?
I am trying to style a theme but I am confused on which scope to use
and their hierarchical order.
Thanks a lot to everyone.
TextMate just updated itself, now at version 1.5.8. Suddenly, the C++
highlighting is slightly broken. Example:
#include <stdio.h>
#include <stdlib.h>
#include "vector/Cartesian3Vector.h"
#define C3V Cartesian3Vector
#define PI acos(-1.0)
int main(int argc, char *argv[])
{
vector<Track> * tracks;
McGossip mcg;
double z0;
<more code...>
}
gives weird wrong highlighting. But if you add a semi-colon in a
strategic place, everything is fine again.
#include <stdio.h>
#include <stdlib.h>
#include "vector/Cartesian3Vector.h"
#define C3V Cartesian3Vector
#define PI acos(-1.0); // Added semi-colon, but you don't want
this in real code
int main(int argc, char *argv[])
{
vector<Track> * tracks;
McGossip mcg;
double z0;
<more code...>
}
Or if you move the #define ending with a parenthesis up one line it's
happy again:
#include <stdio.h>
#include <stdlib.h>
#include "vector/Cartesian3Vector.h"
#define PI acos(-1.0)
#define C3V Cartesian3Vector
int main(int argc, char *argv[])
{
vector<Track> * tracks;
McGossip mcg;
double z0;
<more code...>
}
So I guess the line ending in closed paren is throwing it off. It
didn't do this before the update.
Hi,
Is there anything I can do to help deal with the following issue with
Leopard's Spaces feature?
I like to keep each project I'm working on at any one time in its own
space, which often means having 3 or 4 TextMate project windows open.
I have TextMate assigned as belonging to every space.
Sometimes, I need to reorganise this, and it would be convenient to
open the spaces overview screen and drag one of the TextMate windows
to a different space. Unfortunately, doing this causes all the open
TextMate windows to move to that space.
I'd chalk this down to a general problem with spaces if it weren't
that Safari doesn't have the same problem. Again, Safari is assigned
to every space -- but here I can use the spaces overview screen to
drag a Safari window from one space to another without causing all
Safari windows to move to that space.
To make the comparison clearer, I've done a quick quasi-screencast:
http://www.shedside.com/tmp/spaces.mov
Cheers,
Andrew.
I'd like to redefine the shortcut for 'comment/uncomment' from
'SHIFT+APPLE+/' to 'CTRL+§'.
Of course I could copy the command (code) from the source bundle, but
I'd prefer to only call the existing command from my bundle. Is this
possible? Or is there any other easy way?
Thanks and cheers,
Hans-Peter
I often need to enter text (consisting of repeated characters) like this:
------------------------------------
TODO
------------------------------------
In emacs, I can do a
C-u 60 -
that's a Ctrl+U followed by a "60" followed by a "-", which makes entering a
repeated sequence of characters easy.
Is there any way to do something like this in TextMate?
--
View this message in context: http://www.nabble.com/Textmate%3A-How-do-I-enter-a-repeated-sequence-of-cha…
Sent from the textmate users mailing list archive at Nabble.com.
I'm having the same problem discussed here a couple years ago:
http://thread.gmane.org/gmane.editors.textmate.general/20093
On my dual g5 powermac (leopard 10.5.6) I get the alert bell whenever textmate
(r1496) loses focus and the "save file when focus is lost" option is enabled. I
couldn't find any debug info anywhere. It happens even if I create a new file
from the command line this way:
$ mate foobar.txt
The file is written with no problems.
This doesn't happen on my macbook.
Thanks for any info...
Cheers
Hi List!
I am not sure what exactly happened to my TextMate but it doesn't
create any new files anymore.
The dialog still pops up, takes all the parameters and stuff, but
then, nada. No new file and NO error message.
--Kai
Hello List,
When I¹m deleting single characters using the backspace or delete key
textmate shows a very strange behaviour; instead of the character next to
the cursor the second char before the cursor gets deleted. For Example: If I
want to delete de character a¹ in the Word Textmate¹ I place the cursor
after the a¹ character and press backspace. Now the character m¹ gets
deleted! Using the delete key I have the same behaviour but to the other
direction.
I have already completely removed textmate and reinstalled it but still the
same effect. I use the most recent revision 1496 from 2008-11-27. I bought
the licence of this product.
I looking forward to hear from you.
Best regards
A. Felder
Hello again,
Seems I am still having some trouble with the latex bundle.
Basically, the first time I attempt to typeset after launching textmate, I
get:
==================================================
The current PATH is:
/usr/bin
/bin
/usr/sbin
/sbin
Please add the directory containing “kpsewhich” to PATH in TextMate's Shell
Variables preferences.
Alternatively, the PATH can be retrieved from Terminal but this requires a
relaunch:
(button to perform this operation)
==================================================
Now as a matter of fact the correct path is present in my shell variables in
textmate's preferences (in "shell variables" under "advanced"), as opposed to
just /usr/bin, /bin and sbin as mentioned in the message; furthermore, it is
already in my usual PATH. If I do click on the button, it quits and restarts
and everything is ok. Checking the preferences, a new PATH var has been added,
containing my shell path. This addition occurs even if the exact same path
variable is already present in textmate's preferences.
If I now quit and restart textmate, the same process is repeated, and a new
path variable added to the preferences before I can typeset (identical to the
other ones already there), and everything works after that, until I quit
again, and so on.
This did not happen before I updated my latex and support bundles.
Maybe I'm just being thick, but I can't see what is going on, and this is
starting to get annoying. Any ideas?
> Christopher Brewster wrote:
>> I am a passionate devotee to TM but I notice that latex compiles much
>> faster on TexShop than in TM.
>> Is there something I can do to improve the performance of TM?
>>
>> TM takes 4-6 seconds to compile and display on skim.
>> TexShop takes 2-3 seconds.
Christopher,
Has there been any resolution to your TM/Latex problem? I am having the same
speed issue, even with pdflatex as the engine and turning off spell checking
(the latter solution was suggested in a different post).
For what it's worth, I'm running 10.4.11 on a G4 iMac with 1.24Ghz and 768
RAM.
I'd appreciate some input. The slowness of TM making me crazy but I don't
want to go back to TeXShop.
Thanks, Mike
--
View this message in context: http://www.nabble.com/Speed-of-latex-in-TM-vs.-TexShop-tp20225325p21837876.…
Sent from the textmate users mailing list archive at Nabble.com.
I'm trying Textmate out and wondering if it's possible to set a
default file type. I'm using it pretty much exclusively for editing
SQL and would like it to default to SQL highlighting rather than plain
test
Adam
Truphone and SIM4travel are trading names of Software Cellular Network Ltd. registered in England and Wales (registered company number: 4187081). Registered office: 5 New Street Square, London EC4A 3TW
This e-mail, and any attachment/s, may contain information which is confidential or privileged, and is intended for the addressee only. If you are not the intended recipient, you may not disclose, copy or distribute this information in any manner whatsoever. If you have received this e-mail in error, please contact the sender immediately and delete it.
I'm starting to try out GetBundles, but I see the following error in its log:
01/24/2009 18:08:21 TextMate[GetBundles]
GetBundles' DIALOG runs at token 1
deadlock 0x5b5c0c: sleep:F(10) - /Users/jay/Library/Application
Support/TextMate/Bundles/GetBundles.tmbundle/Support/getBundles.rb:583
deadlock 0x341ac: sleep:F(15) (main) - /Users/jay/Library/Application
Support/TextMate/Bundles/GetBundles.tmbundle/Support/getBundles.rb:137
/Users/jay/Library/Application
Support/TextMate/Bundles/GetBundles.tmbundle/Support/getBundles.rb:789:in
`getResultFromDIALOG': Thread(0x5b750c): deadlock (fatal)
from /Users/jay/Library/Application
Support/TextMate/Bundles/GetBundles.tmbundle/Support/getBundles.rb:1165
01/24/2009 18:09:06 TextMate[GetBundles]
Timeout while connecting Bundle Server
What could cause this? I've deleted Bundles/GetBundles.tmbundle and
reinstalled with svn co, but the same thing happens...
Hi,
I'm trying to use tm_dialog2 on a Bundle but I've run into a problem,
while waiting (nib --wait) for user input TM will hang until I killall
-9 tm_dialog2. It works fine on a shell though.
The offending lines:
token = %x{"$DIALOG" nib --load ~/Desktop/Document --model '{document
= {name = blah;};}'}
print %x{"$DIALOG" nib --wait #{token}}
Maybe I didn't read all the available documentation, but I couldn't find any :\
Can anyone help me out on this one?
Thanks in advance.
Cumprimentos,
António Afonso
Hi there,
I think this is more a new angle on an old question - can anyone tell
me what I *lose* if I work with PHP in PHP-mode rather than HTML-mode?
I ask because I am getting a little frustrated at the way snippets of
HTML are messing with the folding on my PHP files. I realise it's
probably bad form to have an open <div> tag in a separate file to it's
closing </div> tag, but needs must when the devil drives. I have set
the language to PHP and all seems to be ok, but I know I have read in
a few places to set the language to HTML in PHP files.
Cheers,
Nigel
I'm a brand new user (and licensee) of TextMate and I am mostly very
happy (and eager for the next release) but I am noticing a slight
syntax highlighting problem.
I tend to write code like this (when argument lists get too long):
Widget w = new Wiget(
x,
y,
z
)
And that seems to break the highlighting. So sure, you might say,
"you write code weird, get over it", but in writing an enum, in what I
think is a "normal way", it also breaks it, e.g.:
private enum ImageInfo {
WIDTH("100px"),
HEIGHT("100px");
}
So I'm wondering if I can update the syntax file to account for this,
and if so, how?
Thanks!
Hi!
The "Documentation for Word" command in the default Apache bundle
fails with the following error.
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Apache.tmbundle/Support/bin/apache_doc.rb:39: uninitialized constant
Error (NameError)
The file in question which has not been fixed on SVN yet cf. http://svn.textmate.org/trunk/Bundles/Apache.tmbundle/Support/bin/apache_do…
seems to point to this being a known bug. Line 42 reads:
#TODO: Check the Error "Superclass" assumption otherwise this will fail.
Could someone please fix this.
Regards,
Nicholas
I am currently using all the absolute bleeding edge releases of all
the TextMate bundles (courtesy of the example "mateup" script in the
wiki), and the other day I hit Command + / to comment a selection in
PHP, and got HTML comments instead (that <!-- --> business). I haven't
edited the relevant bundles at all. Has anyone else noticed this bug?
Simply make a new document, switch the bundle to HTML, and type some
PHP to reproduce the bug:
<?php
function my_function() {
echo "aw man the auto comments are broken";
}
?>
After selecting the function, and pressing command + /, this is the
result:
<?php
<!-- function my_function() {
echo "aw man the auto comments are broken";
} -->
?>
If I press Command + Slash once more, things get a little weirder:
<?php
// <!-- function my_function() {
// echo "aw man the auto comments are broken";
// } -->
?>
I realize I could just revert to the release version, but I thought
someone might like to know about this.
In addition, the problems are not necessarily isolated to the handling
of PHP within HTML. If I switch to the "PHP" bundle instead of HTML,
the commenting works (using slashes for each line - I would kind of
prefer /* */ to be honest because occasionally it is useful to place
comments between expressions on the same line), but destroys the
indentation of my function:
<?php
// function my_function() {
// echo "aw man the auto comments are broken";
// }
?>
When I undo the comments, the indentation is still messed up.
Thanks,
William
Hi,
I am using TextMate 1.5.8 (1497) with the ProjectPlus plug-in, and I
have spotted a bit of a bug with selecting text in a document.
If I click to select a point in the document and then drag up to the
top to select all text between the cursor and the start of the
document, if the cursor goes beyond the top of the TextMate window the
selection carries on forever, effectively running off the top and back
up from the bottom of the document so the selection never ends. You
can see the scroll bar running up and down the document as it does
this, showing that the document text is being selected in something
like an infinite loop.
If you drag a selection like this in Mail.app or TextEdit then the
selection halts at the top of the document text. It does do this with
TextMate, but only if the cursor is somewhere over the TM window (not
necessarily the document area itself). As soon as you go off the top
of the TM window it starts the scrolling round. If you bring the
cursor back onto the TM window then the selection is in place as you
would expect.
Any ideas? I've disabled the ProjectPlus plug-in, but this still
happens without it. I've checked the console and nothing is coming up
there to give any clues.
Cheers,
Nigel
Hi,
Is it possible to have a 'checkbox like' behaviour in a bundle menu
and/or to modify the menu text from within a command?
More concrete example of what I want:
1) menu entry 'Advance after line sending' which could be checked or unchecked
2) menu entry 'Send line to Rapp [Rdaemon|Rterm]' which would be
modified after each click
('Send to Rdaemon [Rterm|Rapp]' and 'Send to Rterm [Rapp|Rdaemon]')
Regards,
Hans-Peter
I am relatively new to using LaTeX through TM so I'm not sure if this
is a common experience, but when I ask TM to typeset my LaTeX (cmd-R)
the command runs for a very long time (i.e. a few minutes) even though
the document isn't very long (25 pages) and only has a few medium
sized images.
If anyone has had similar difficulties and can suggest things I can
try or check that would be great.
Many thanks,
Dan
I've been hacking away at this syntax file lately, in the hopes that
Textmate will wind up actually usable for Haskell.
For comparison purposes I've made screenshots of the old and new
grammars' highlighting capabilities.
Before: http://www.rsmw.net/ergo/textmate_haskell1.png
After: http://www.rsmw.net/ergo/textmate_haskell2.png
(I sent this e-mail once already to bundles@<...>, but was told to
re-send it here.)
I'm getting the following error when I try to run the TODO Bundle
"Show TODO List" I can't figure out what it means.
/opt/local/lib/ruby/1.8/erb.rb:354:in `trim_line2': private method
`scan' called for #(NoMethodError) from /opt/local/lib/ruby/1.8/erb.rb:
311:in `call' from /opt/local/lib/ruby/1.8/erb.rb:311:in `scan' from /
opt/local/lib/ruby/1.8/erb.rb:534:in `compile' from /opt/local/lib/
ruby/1.8/erb.rb:702:in `initialize' from /Applications/TextMate.app/
Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:52:in
`new' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
TODO.tmbundle/Support/todo.rb:52
I'm running a macports version of ruby (ruby 1.8.7 (2008-08-11
patchlevel 72) [i686-darwin9])
Any help you could provide would be greatly appreciated.
Tony
The new way of selecting snippets with "command + #" (when for
instance there's more than one assigned to a tab trigger) forcing you
to use "command" key instead of just number is really annoying... to me.
Is it possible to cancel this new behavior somehow?
And if not, what's the reason behind the change? I might be better
able to get used to it if I can understand the benefits. ;)
Thanks!
Hi all,
Below is a patch for the Ant bundle. It fixes up the htmlization
of the Ant output (escapes the output correctly so that, for example,
generics display correctly). It also turns htmlization back on, so
that you can click on error messages to jump to the appropriate line
again. Finally, it adds source.java to the scope of the build command
so you can build from a source file, not just from the build file.
I haven't turned column parsing back on... yet.
Be well,
Will :-}
Index: Commands/Build.tmCommand
===================================================================
--- Commands/Build.tmCommand (revision 11139)
+++ Commands/Build.tmCommand (working copy)
@@ -13,7 +13,7 @@
TM_PROJECT_DIR=`dirname "$TM_PROJECT_FILEPATH"`;
-#TM_ANT_BUILD_PARSER=htmlize_ant.py
+TM_ANT_BUILD_PARSER=htmlize_ant.py
if [[ "$TM_ANT_BUILD_PARSER" == "" ]]; then
TM_ANT_BUILD_PARSER=pre
@@ -42,7 +42,7 @@
<key>output</key>
<string>showAsHTML</string>
<key>scope</key>
- <string>text.xml.ant</string>
+ <string>source.java, text.xml.ant</string>
<key>uuid</key>
<string>C7888301-C304-4EF2-A15F-5681A7D6D13C</string>
</dict>
Index: Support/bin/htmlize_ant.py
===================================================================
--- Support/bin/htmlize_ant.py (revision 11139)
+++ Support/bin/htmlize_ant.py (working copy)
@@ -1,6 +1,6 @@
#!/usr/bin/python
-import sys, os.path, re, os
+import sys, os.path, re, os, cgi
matcher = re.compile(
r'(/.*?):(\d+):\s*(.*)$'
@@ -20,6 +20,8 @@
sys.stdout.flush()
+print "<pre>"
+
## read all data from stdin
lastLine = None
line = sys.stdin.readline()
@@ -33,15 +35,13 @@
match = matcher.search(line)
- print "<pre>"
-
if not match:
- print line
+ print cgi.escape(line)
else:
fn = match.group(1)
if proj_dir and fn.startswith(proj_dir):
- short_name = fn[len(proj_dir):]
+ short_name = '/.../' + fn[len(proj_dir):]
else:
short_name = fn
@@ -56,19 +56,21 @@
## # print lastLine[(brktInd + 2):], colInd
- print line[:match.start()].rstrip(),
- print '<a href="txmt://open?url=file://%s&line=%s&column=%d">
%s:%s: %s</a>' % (
- fn, match.group(2), colInd, short_name, match.group(2),
match.group(3)
+ print cgi.escape(line[:match.start()].rstrip()),
+ print '<a href="txmt://open?url=file://%s&line=%s&column=%d">
%s:%s</a>: %s' % (
+ cgi.escape(fn), match.group(2), colInd,
cgi.escape(short_name),
+ match.group(2), cgi.escape(match.group(3))
),
- print line[match.end():]
+ print cgi.escape(line[match.end():])
- print "</pre>"
sys.stdout.flush()
## read next line
lastLine = line
line = sys.stdin.readline()
+print "</pre>"
+
print """
</body>
</html>
Hello there,
On 1.5.8 r1496 the LaTeX bundle seems to ignore the TEXINPUTS variable.
I turned on the debug output:
===
%!TEX Directives: {}
[...]
TEX package list = ['indentfirst', 'setspace', 'pdfsync', 'amsmath',
'amssymb', 'amsthm', 'fancyhdr', 'lastpage', 'extramarks', 'chngpage',
'url', 'graphicx', 'graphviz']
texMateVersion = $Rev: 10791 $
engine = pdflatex
texCommand = latex
viewer = Skim
texinputs = .::/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/tex//
fileName = A2.tex
[...]
===
Python seems to be able to pull the env variable properly:
===
toirse:~ thatha$ python
Python 2.5.1 (r251:54863, Jul 23 2008, 11:00:16)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print os.getenv('TEXINPUTS')
/Users/thatha/.latex//:
===
Any ideas what's wrong?
I recently transitioned to OS X from Linux and I'm wondering if
setting the variable in .profile is enough?
Thanks,
Ian.
I'm getting this error message when running the command tidy from the
XML bundle on any xml doc:
Errors: dyld: lazy symbol binding failed: Symbol not found: _gzdopen
Referenced from: /opt/local/lib/libxml2.2.dylib
Expected in: dynamic lookup
Here's a couple of questions:
1) How can I get access to the error above which appears in a yellow
fading window in a location I can copy and paste.
2) How is the default path set for running textmate commands from
bundles -- perhaps I can remove /opt from the path?
3) Anybody know what this error message means?
Thanks
Hi,
Following from an different email thread earlier this year. Link:
http://www.nabble.com/Searching-for-Objective-C-documentation-td16722396.ht…
As some of you know, Textmate has this very good script for performing
correctly the searches on Apple Docset with the /Developer/usr/bin/
docsetutil tool.
The command is bound to Ctrl - h, and will also search the unix man
(3) pages.
Offers a multiple - selection popup.
To access this feature you must type in and select the word into your
document before proceeding. However it strikes me that adding an
alternative method to use the script (probably a Search box) could be
useful.
There;s nothing wrong with the Ctrl - h shortcut just that its rather
cumbersome if you are searching
speculatively for a series of related classes. For that we really can
prefer an open Search box where
the choices are typed in, without affecting / editing the current open
document.
Basically any improvement of the current functionality thats going to
let me stay inside TextMate and
not lead me to an external program or tool such as AppKiDo. Actually
there also used to be QuickSilver + Developer Documentation Plugin,
but that was broken since the Docset format came in.
Perhaps something like the "Select Bundle Item" window (Ctrl-Cmd-T),
which can be toggled visible / invisible and left open for multiple
searches would be the best way to go.
My ruby is - 0/0 unfortunately so cannot put up any code myself for
what i am trying to propose here. But anyway the relevant place to go
is file docset_query.rb
There could be an obstacle because how should we handle multiple
results?
Of course already there is a place already in the Ctrl-H cmd where the
mini selection list pop-up is shown.
http://svn.textmate.org/trunk/Bundles/Objective-C.tmbundle/Support/lib/docs…
Function "def show_document (results, query)"
If we write a new command in this file and choose not to call this
above function, then its going to mean that we can use other existing
function definition in the ruby script and we can bypass the showing
of the results mini- pop-up window, right ?
Or perhaps we will need some kind of re-write because there another
place at the beginning of the file where "the selected word" is used
for input? Would we want a different input going into a new ruby
function. The user input is probably going to be from a search box.
And later we must print any multiple search results (called 'results'
array). Printed back into e.g. an NSTableview of the bottom half of
our search box.
I cannot find any existing feature improvement / request for this yet,
but still looking.
Cheers
Gulliver
dreamcat7
dreamcat7(a)googlemail.com
I'm thinking to create a new bundle to help people translating documents.
I think the most important thing is to have the original text handy, so
here's my idea.
#begin
#it
Questa è una parte di testo in italiano
#endit
#en
This is a parte of text in italian
#enden
#end
-- now I just have some code, which doesn't change.
[x | x <- [1..100]]
So we have markers for the text and markers for the languages.
In this way we can fold whenever we already finished to translate something.
After there will be a command that looks how many languages there
are and generates n files in from <filename<language>.ext>.
And maybe other commands to look for on the internet for words.
What do you think? Could it work??
It' s not as good as using something more xmlish but I think that for
articles or just normal text it could be fine...
--
View this message in context: http://www.nabble.com/Translations-tp21525170p21525170.html
Sent from the textmate users mailing list archive at Nabble.com.
Hey,
the phpDoc stuff in the PHP bundle always inserts an @version tag with
value $Id$ when I insert doc_h. According to the phpDocumentor docs (http://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial…
), this is for integration with SCM ($Id$ to be substituted with the
last-change revision for the given file), but how do I automate this
within TextMate, or does this belong in a post-commit hook?
Thanks,
Ben
Hi, I'm fairly new to TextMate but I've been through the mailing list
archives and was unable to determine if the following is possible.
In general, I'd like TextMate to display a unicode character in place
of a sequence of ASCII characters. For instance, I'd like to be able
to type => but have the editor display ⇒ (U+21D2).
The saved file will need to be ASCII so I'm not looking for a way to
replace characters, just a way to choose a different representation.
Is there a simple way to do this?
Thanks,
Jonathan
--
ten ni hibari ningen umi ni asobu hi zo
larks in the sky
people in the sea
a holiday
Hey everyone,
Recent TextMate convert here and boy do I love it - trial expiring
within the week, so will be a paying customer from then on. ;)
Have a question, though, with regards to sorting in the Project Drawer.
Is it possible to have entries sorted by type, and only then by
name? I'd like to keep directories together. (At the top,
preferably. ;)
I found the following reference (and its references) in the mailing
list archives:
http://comox.textdrive.com/pipermail/textmate/2004-December/001971.html
This message seems to imply the sorting is hard-coded.
Alexander Deruwe
I've been trying to get the Execute line command working in the Python
Bundle. I'm running Python 2.6.1 installed from Macports, latest
cutting edge TextMate, and the latest Python bundles. Each time I try
to run a line I get this error:
env: python: Permission denied
Any help would be appreciated,
Regards,
Mark P
Hi all,
I'm new to TextMate for Latex (and actually I'm new to Mac!) so excuse me if
my question is "stupid". I've been searching for an answer to my question in
the net for a lot but I didn't find anything.
Before switching to TextMate I tried TexShop and I really like its Latex
Panel (under the Window menu) because it helps you when you don't remember a
mathematical symbol or something like that. My question is: does it exist
something similar in TextMate? I like TextMate for the project option and
the tab navigation but I miss the Latex panel and I can't prefer any of the
2 editors. What's your opinion?
Thank you very much for your help, I really appreciate it.
Michela
--
View this message in context: http://www.nabble.com/Latex-facilities-tp21564371p21564371.html
Sent from the textmate users mailing list archive at Nabble.com.
hello everyone, I've just created a simple bundle, that is really just
a proof-of-concept.
check it out here: http://github.com/amiel/fuzzyfilefinder.tmbundle/tree/master
the idea is to use Jamis Buck's FuzzyFileFinder to find files instead
of the basic ⌘T file finder
what it does different, is gives you the ability to scope the file you
are looking for by directory
and if you've ever worked on a rails project with over 20
show.html.erb files (or whatever)
you'll see why this is useful
however, this bundle isn’t quite as useful as TextMate’s ⌘T as it
is not integrated enough with TextMate.
I’m hoping that somebody will be interested in rewriting this to work
with Dialog2.
let me know what you think,
I'll be hanging out the next couple of days on irc.freenode.net
#textmate as <amiel>
-amiel
Amiel Martin
VP Engineering
http://tatango.com
amiel(a)tatango.com
http://twitter.com/tatango_amielhttp://github.com/amiel
I'm probably missing something simple, but a few google
searches of the web and the mailing list didn't solve it.
How can I provide command line arguments for something
like a simple Ruby script? Is this possible? I thought I
remembered hearing something like this was possible.
Thanks,
Joseph Pecoraro
A little thing a little bit annoying is when I reach the end of the file
during programming.
I use very often to crtl-l to return at the middle of the file but when I
reach the end of the file it doesn't work (of course).
I sometimes solve putting many blanks line at the and adding new lines with
ctrl-o, but is't not very comfortable..
Are there other ways??
--
View this message in context: http://www.nabble.com/End-of-screen-tp21319865p21319865.html
Sent from the textmate users mailing list archive at Nabble.com.
CURRENT SITUATION: "Evaluate Line / Selection" barfs on lines like this
25/10 = 2.5
PROBLEM: This means the user has to manually delete the "= nnnnn" if
they wish to reevaluate the line
SUGGESTION: change the command to overwrite "( = [-0-9\.]+)" with the
new result.
I don't speak perl, but this is the bit that would like changing
printf " = %s" `{ tr -d ,; echo; } | bc -l`| perl -pe 's/(\.[^0]+)0+$|
\.0+$/$1/'
Bit early for xmas, but it would be great if a currency- and
formatting-friendly command was available, i.e., one which would be
happy to take
$250,000*12.5%
see "250000*12.5"
and return "$250,000*12.5% = $3,125,000"
Hi,
I'm trying out the Almost Plain Text (APT) bundle. It has snippets and
commands, but for some reason it doesn't do syntax highlighting. This
is strange because the bundle already defines the regex for some scopes:
http://macromates.com/svn/Bundles/trunk/Review/Bundles/Almost%20Plain%20Tex…
I want to try to finish the work and add syntax highlighting support
myself, but I'm not sure where to begin. For instance, how would I
make the "comment.line.tilde.apt" patten be highlighted by TextMate as
a comment? Likewise, how would I make "markup.bold.inline.apt" appear
in bold?
Thanks,
Trevor
Hello,
I have a problem with the "Documentation for word" command in the Ruby
bundle :
Some times, there is multiple entry with the same name (for example :
let's try find_command), then there is a pop-up menu listing the
different matches (wich is fine). But if I chose any item of the list,
I just get back to the same menu, again and again.
I looked the linked_ri.rb script, but did not find anything. Anyone
have an idea ?
Thanks,
David
Hi all,
I'm writing a macro right now and I'd like Textmate to save the document
when the macro is finished running. Unfortunately, when I save the document
while the macro is recording, the save operation is not recorded. Any ideas?
Thanks,
Michael
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings! I tried to install the bundles for R, SWeave, and Make
based on the instructions on
http://macromates.com/textmate/manual/bundles#installing_a_bundle. But
I do not see them in Textmate even after restarting the program. I can
confirm that the bundles were downloaded and placed in
/Library/Application\ Support/TextMate/Bundles.
Any thoughts?
Many thanks in advance for your assistance,
Kristen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkluE1wACgkQVEgA12HkABWangCfVp9SaLnAXHJqXOtnPlYOYE0G
PlEAnjxF4zfydKzGolYIfKZjpkfziyph
=Ucjs
-----END PGP SIGNATURE-----
Hello,
TextMate has a nice feature for people who want to use projects: when you
open several files, it opens them in a single window with a drawer.
But when I want to work with several files, not in a project but in separate
windows, what can I do? Do I need to open them one by one? It is the only
solution I found, and it's a bit irritating, so please help.
I didn't find the option in the Prefs window, so if I missed something, if
you can show me a hidden pref or a plugin for this, I'll appreciate. Thanks!
--
View this message in context: http://www.nabble.com/How-to-open-in-separate-windows--tp21454114p21454114.…
Sent from the textmate users mailing list archive at Nabble.com.
Works better with TM_RUBY set.
Thanks,
Jean-Michel
On Wed, Jan 14, 2009 at 3:29 AM, <textmate->
> Message: 1
> Date: Tue, 13 Jan 2009 10:14:14 -0800
> From: Jean-Michel Esnault <jesnault(a)gmail.com>
> Subject: [TxMt] plagued with invalid multibyte char (US-ASCII) since
> moving to ruby 1.9.1
> To: textmate(a)lists.macromates.com
> Message-ID:
> <2eef5a030901131014o1d7dab46tcbeef14e033c57a8(a)mail.gmail.com>
> Content-Type: text/plain; charset=windows-1252
>
> Hi,
>
> I got all kinds of invalid multibyte char (US-ASCII) since I moved to
> ruby 1.9.1.
> Not sure how to fix these, any help much appreciated.
>
> Show TODO List:
>
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:27:in
> `require': /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:44:
> invalid multibyte char (US-ASCII) (SyntaxError)
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:43:
> invalid multibyte char (US-ASCII)
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:43:
> syntax error, unexpected $end, expecting '}' install ?#{command}?. If
> you kno... ^ from
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:27:in
> `' from ruby:0:in `require'
>
> Invoking rake from TextMate:
>
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:4:in
> `require': /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
> invalid multibyte char (US-ASCII) (SyntaxError)
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
> invalid multibyte char (US-ASCII)
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
> syntax error, unexpected $end, expecting ')' ...
> #{e.message.sub(/`(\w+)'/, ''\1'').sub(/ -- /, ' ? ')... ... ^ from
> /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:4:in
> `'
>
> Thanks
> Jean-Michel
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 13 Jan 2009 10:25:37 -0800
> From: Alex Ross <tm-alex(a)rosiba.com>
> Subject: [TxMt] Re: plagued with invalid multibyte char (US-ASCII)
> since moving to ruby 1.9.1
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <9CBC6686-FDCF-46DB-A04B-80055FC47E4F(a)rosiba.com>
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
> delsp=yes
>
> On Jan 13, 2009, at 10:14 AM, Jean-Michel Esnault wrote:
>
>> Hi,
>>
>> I got all kinds of invalid multibyte char (US-ASCII) since I moved to
>> ruby 1.9.1.
>> Not sure how to fix these, any help much appreciated.
>
> TextMate commands aren't yet compatible with Ruby 1.9. You can still
> install Ruby 1.9, just install it somewhere so that the system ruby is
> the first thing on the path. You can also use ruby1.9 with the Ruby
> bundle by setting TM_RUBY to the path of the ruby executable you'd
> like to use.
>
> ?Alex
>
> ------------------------------
>
> Message: 3
> Date: Tue, 13 Jan 2009 12:52:18 -0600
> From: James Gray <james(a)grayproductions.net>
> Subject: [TxMt] Re: plagued with invalid multibyte char (US-ASCII)
> since moving to ruby 1.9.1
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <3AA8732E-67A1-432E-A184-000E68BF473F(a)grayproductions.net>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> On Jan 13, 2009, at 12:25 PM, Alex Ross wrote:
>
>> On Jan 13, 2009, at 10:14 AM, Jean-Michel Esnault wrote:
>>
>>> Hi,
>>>
>>> I got all kinds of invalid multibyte char (US-ASCII) since I moved
>>> to
>>> ruby 1.9.1.
>>> Not sure how to fix these, any help much appreciated.
>>
>> TextMate commands aren't yet compatible with Ruby 1.9.
>
> Actually, I've been working on this with the help of Dave Thomas. I
> believe we have most of the commands running now.
>
> You can checkout the latest bundles to get the updates:
>
> http://manual.macromates.com/en/bundles.html#getting_more_bundles
>
> James Edward Gray II
>
Hi everyone,
I recently have run into troubles with Ciarán’s ProjectPlus plugin.
It will simply prevent TM from launching. Console.app systematically
reports the following :
2009-01-12 16:54:59.339 TextMate[11730] *** -[NSBundle load]: Error
loading code /Applications/TextMate.app/Contents/PlugIns/
Dialog2.tmplugin/Contents/MacOS/Dialog2 for bundle /Applications/
TextMate.app/Contents/PlugIns/Dialog2.tmplugin, error code 2 (link
edit error code 0, error number 0 ())
2009-01-12 16:54:59.339 TextMate[11730] instance Dialog2 plug-in has
no principal class
I guess it’s the first time I relaunch TextMate since last update or
something (possibly ProjectPlus update).
Some information about my currrent config :
10.4.11
PPC
TM 1.5.8 (1496)
ProjectPlus 1.1 (if I trust the CFBundleVersion string entry of
ProjectPlus.tmplugin/Content/info.plist — nothing will appear in
system info)
I guess I’ll just work without Project+ for a while, but if any of
you has any idea of what it could stem from, help would be appreciated.
Édouard
Hi, I just joined this list, so I apologize if this bug was already
mentioned. When working with TextMate with the file tray visible, (having
opened an existing .tmproj file), I right click on a folder and try to make
a new file. After I click "Create", I get the Mac beachball for a little
while, and then no file was create, and no errors are thrown.
Is there any quick fix people are using for this? I'm using the latest
build, 1436.
Thanks,
- Jared
Hi all,
I'm sure this must be a common bug, but I do not see any posts on it.
When I try to correct a marked mis-spelling, I right click on a word.
But Textmate will highlight the word and the preceding text up to the
mis-spelled word. As a results the spellcheck correction is not
presented
in the popup box, because the software is not detecting the incorrect
word.
This came about with the last upgrade and was first noticed in Latex
mode, but I have demonstrated this in other modes.
I am using the cutting-edge version.
I have 'check spelling as you type' activated.
Any suggestions would be appreciated.
Jeff.
Why "Edit in TextMate" (that is really valuable as Markdown editor in
Moodle pages that are html-editor Safari-always-incompatible) doesn't
work with WebKit (the cutting edge nightly build for Safari)?
Is there any way to hack this to make Edit in TM Webkit compabible?
Thanks in advance.
I made this little command to search for examples of programming libraries /
construct:
#!/usr/bin/env python
import webbrowser
from os import environ
lang = environ['TM_MODE'].lower()
QUERY="http://google.com/codesearch?q=" + environ['TM_CURRENT_WORD'] +
"++lang:" + lang
webbrowser.open_new(QUERY)
It works fine, do you see any possible "problem"?
Could I maybe use the browser integrated inside Textmate?? How to call it
directly?
Another little thing:
I read on the dev guide that I should modify directly bundles and the svn
diff to view my changes.
Actually I'm not doing like that but I have all my changes in the "normal"
directory.
How is better to do to propose changes or some new features to bundles
mainatainers?
Thanks
--
View this message in context: http://www.nabble.com/Codesearch-tp21252252p21252252.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I got all kinds of invalid multibyte char (US-ASCII) since I moved to
ruby 1.9.1.
Not sure how to fix these, any help much appreciated.
Show TODO List:
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:27:in
`require': /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:44:
invalid multibyte char (US-ASCII) (SyntaxError)
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:43:
invalid multibyte char (US-ASCII)
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:43:
syntax error, unexpected $end, expecting '}' install «#{command}». If
you kno... ^ from
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:27:in
`' from ruby:0:in `require'
Invoking rake from TextMate:
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:4:in
`require': /Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
invalid multibyte char (US-ASCII) (SyntaxError)
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
invalid multibyte char (US-ASCII)
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:30:
syntax error, unexpected $end, expecting ')' ...
#{e.message.sub(/`(\w+)'/, ''\1'').sub(/ -- /, ' — ')... ... ^ from
/Users/jesnault/Desktop/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:4:in
`'
Thanks
Jean-Michel
It was supposed to be nice weather for those brilliant May 1st Labour
Day, but it's not, barbecue gonna be tommorow... so I'm writing here
about my favorite text editor :>
I was wondering if I'm missing some hidden TM option to enable some
more sophisticated undos in TM, and I found this:
http://nslog.com/2006/11/08/textmates_undo
So, are some non-single character undos on the horizon of TM? I'm
aware it is all about TM 2.0 will relay on NSTextView that does it for
free, but how about 1.x? Something easy at least as whole word or
whole edited line undo would be enough, just to keep our fingers less
stressed of pressing ⌘Z.
Regards,
--
Adam Strzelecki |: nanoant.com :|
Hello.
This is a simple feature request that I think is easy to implement for
anybody knowing something more about TextMate bundles than myself.
Is it easy to mark TABs at the beginning of the line that does not
have anything else?
I mean, mark as suspicious all lines that math /^\t\s*$/
Thank you,
Alberto
--
Alberto Simões
I am finding that Textmate will not color the syntax in my html document,
nor will it allow me to use any of the html bundle keyboard shortcuts or
even auto indent properly. If I save the exact same file as a php document
then I instantly get all these features back.
Why is this happening? Is it possible to get proper html handling within an
html document?
-Colin
Good day, hope its possible to post here asking for a feature request,
maybe it will be implemented in 2.0?
My suggestion is simple - subtle vertical grid on background color,
marking tab widths. So you can easily find matching bracket or opening
if() just by glancing at the code.
Like, if tab width set to 4chr - background gets lined up with
vertical bars: width:4chr darker, 4chr lighter, till the edge of window.
I use Select Balanced Tags Bundle http://subtlegradient.com/articles/2007/11/15/sel...to
quickly find my way around in html, and want some simple guidelines
so they can be used anywhere we use tabs. If you enable Show
Invisibles its not quite the same – too much clutter and essentially
useless.
Hello,
Sorry if this has been asked and answered previously - I quickly searched
but couldn't find an answer...
I have written a "push" command to save my current file/line/column (where
I'm at) and restore it with a "pop" command. I would like to run the "push"
command before I do operations like "Goto Current Tag [TM CTags]" so that I
can run my "pop" command to restore where I was at.
I cannot seem to figure out how to build a "macro" command that could do
both push and goto with a single key stroke (i.e. like remapping the ^] key
to do both) - I tried to record a macro but the macro stops recording when I
run the "Goto Current Tag" command.
Thanks,
-- dv
--
View this message in context: http://www.nabble.com/Run-multiple-commands-with-single-short-cut-key-tp212…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
The media wiki bundle lacks snippets for inserting references.
I wonder if whomever maintains that bundle could add the two attached
snippets which are triggered by "ref" and insert either
{{Fact|date=month year}}
or
<ref>$author ($year). $title. $journal, $vol $pages</ref>
I'm sure books and websites are common references too, but at least
this get the idea going. Feel free to edit/improve of course.
Happy hanukah,
tim
That directory re-creation seems to have fixed the problem. I'm typing
this in TextMate :)
Thanks Mel.
jon
/RNN (http://responsenotnecessary.com)
On Jan 5, 2009, at 7:01 AM, textmate(a)lists.macromates.com wrote:
> The old method works for Panther. For Leopard you need to look at
> this link
> Allan gave me
> See http://blog.macromates.com/2007/inputmanagers-on-leopard/
>
> Hope this is what you're looking for.
>
> Mel
Hi Dave,
Well, I've just started :) and probably wouldn't use it for quick
replies. But my motivations for using Edit in TextMate were:
* Snippets make it easy to boilerplate responses. I know there are
Mail plugins to help with this, but I haven't seen any with TextMate's
Regex capabilities. I used to use TextExpander but the current version
conflicts with my Dvorak keyboard.
* When I write a long email I often like to save a text file version
for future reference.
* I work in digital preservation and know that all those Microsoft
Word documents will eventually become unreadable. Using TextMate as my
text editor, blogging platform, and now email editor lets me keep non-
proprietary versions of all my documents. (I save most everything as
HTML.)
Of course, there are wrinkles I haven't smoothed out yet. For
instance, when I select part of a quoted message in Mail.app and Edit
in TextMate, the overall quote level seems to increase for some reason
when I return to Mail. But so far, so good.
jon
/RNN (http://responsenotnecessary.com)
> From: "David Frascone" <dave(a)frascone.com>
> Do you actually find it easier to compose mail in textmate? For me,
> I've
> replaced all of my programmers' editors with textmate -- and I've
> even gone
> so far as to set my EDITOR variable.
>
> But e-mail? Is it worth the effort?
>
> -Dave
Chaps,
The essay question I have is this:
"It would be great to save regexes from the find & replace dialog.
Discuss."
;-)
I have a number of projects running from the same codebase, and whilst
there's a basic framework that's mirrored across all of them (via a
hard linked directory) I'm finding myself wanting to use the same find
& replace fixes across them all.
I've tried a creating a super-project, which does work, but is
cumbersome (it's slow, and you have to be careful with mercurial and
with saving updates to the referenced framework).
What would be really nice would be the ability to save find & replace
regexes as matching pairs.
As an aside - 10 regexes aren't really enough in the dialog either ;-)
is there a way of upping them?
Happy new year,
R
--
Richard Dyce MA (Cantab.) MBCS MIET
Hello all,
I managed to get fullscreen editing with TextMate the way I want it
(no menubar, text not filling up the full width of the screen and
being centered on the screen). I know that I am not the only one who
wanted this feature...
I use BackDrop and a patched version of Megazoomer. You can find the
details in my blog: http://sadilek.blogspot.com/2009/01/fullscreen-editing-in-textmate-la.html
Best regards
Daniel Sadilek
hi,
any ideas why the standard indexing command doesn't work in the two
situations described below?
(i) given the following text which is to be inserted into the index:
``functional-typological'' approach
upon marking the phrase and issuing shift-control-i the following
erroneous output produced:
functional-typological'' approach\index{functional-typological''
approach}
this is the command behind the scenes:
{
command = "echo -n \"\\\\index{s\\$0}{$TM_SELECTED_TEXT}
$TM_SELECTED_TEXT\"";
input = none;
output = insertAsSnippet;
}
behind which we have:
selectWord:
executeCommandWithOptions:
what's the reason for "``" to be eaten by the command?
(ii) given the following text:
Proto-Indo-European (PIE) to
"Proto-Indo-European (PIE)" is to be inserted, hence this but not "to"
gets marked, then shift-control-i. the result is:
Proto-Indo-European (PIE) to\index{Proto-Indo-European (PIE) to}
that is, wrong position of the index-tag and an erroneously in the tag
included "to".
thanks,
christoph
I've followed the steps Allan recommends in his 2006/textmate-tricks blog entry:
>>>install the Edit in TextMate input manager, which is done by clicking the gear menu in the status bar (inside TextMate), navigating to the TextMate submenu and selecting Install "Edit in TextMate"
I relaunched all apps and my computer and confirmed that an "Edit in TextMate" alias is now in my ~/Library/InputManagers directory. But I seel no new edit item in my Mail.app pulldowns, and Ctrl-Cmd-E does nothing :(
I'm running TextMate 1.5.7, Mail.app 3.5 on OS 10.5.6. Does this trick not work in Panther, and/or are there any workarounds?
Thanks!
jon
/RR
Hello,
I am a website developer using php for my projects, along with the
CodeIgnitor php framework.
This works great, especially along with Transmit for ftp connectivity,
There is one missing link I'm looking for. It would be super great if
there was a way to browse a
project's classes. I know of the CodeBrowser plugin, but that is for
the file you are editing.
The function / code block selecter in TM's status bar is also very
good but again only for 1 file.
Does anybody know of an application that does a good view of classes /
methods / variables
in a multi-file php project? I like TM so much because of its speed
and "Mac feel".. I don't want
to switch to a big, clunky, slow IDE! So I'm looking for the "Mac
like" way in the middle.
Well, if anyone has any tips they would be greatly appreciated.
A very happy holiday wish to everyone in the TM and Mac community!
Michael, Haarlem, The Netherlands
Hello.
I recently did a fresh install of Mac OS X 10.5.6, downloaded TextMate
1.5.7 (r1436) from macromates.com and activated it with my serial
number. It's odd, but there are some things that doesn't work.
1. It can't create new files from templates. Nothing simply happens
when I try.
2. When I have open a folder I can't create new files in that folder
from TextMate, I can however create new subfolders.
Console shows no output. I have tried the standard troubleshooting
including reinstalling the application bundle, removing the preference
file and zapping the PRAM. It didn't help.
Does anyone have an idea of what this could be?
Marcus
I would like to add a couple of things (at least), but I'm afraid I need some
clarifications...
I need a disassembler command, it's just
import dis
dis.dis(module)
or dis.dis(function) or dis.dis(object)
Maybe I need a menu to let it know what I want to disassemble..
I tried something like this:
MOD_NAME=${TM_FILENAME%.py}
cd $TM_CURRENT_DIR && python -c "import dis; import os;
os.chdir(os.environ['TM_CURRENT_DIR']); print "Now in", os.getcwd(); import
$MOD_NAME; dis.dis($MOD_NAME)"; cd -
But it doesn't change dir at all, what am I missing?
Another nice command would be
execute line/selection as python, should I use eval?
I found that tm_helpers give me some nice functions, other sources of
"helpers"?
Last command is pylint "integration", this is alreadly not too bad
pylint $TM_FILEPATH 2>/dev/null | tail -n 2
It just gives me the score of my source code, but a better rappresentation
in html format could be better...
Thanks a lot
--
View this message in context: http://www.nabble.com/Adding-python-commands-tp21201499p21201499.html
Sent from the textmate users mailing list archive at Nabble.com.
I discovered the blogging bundle and I think is great, so I created a blog
for the first time in my life.
http://petitesnouvelles.wordpress.com/http://petitesnouvelles.wordpress.com/
Well if I can't write with textmate it means that I can't write in a certain
way :D
Now the problem is that if I paste code I need to use the <pre> (or the
equivalent in markup or textile) tag which keeps the indentation but hides
part of the code if I enlarge the font on my browser.
I could also limit the lenght of the strings but it does not solve
completely the problem...
It would be also nice some sintax highlighting and better formatting, any
advices?
So how could I do?? Is it also possible to attach automatically binary and
text files directly from textmate or not? (didn't see that function).
Thanks a lot
--
View this message in context: http://www.nabble.com/Blogging-and-code-tp20838410p20838410.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello.
I'm getting this error in Console
....
28/12/2008 01:42:52 TextMate[3577] didn't find rule source.ruby
28/12/2008 01:42:52 TextMate[3577] didn't find rule named source.ruby
28/12/2008 01:42:52 TextMate[3577] didn't find rule source.ruby
28/12/2008 01:42:53 TextMate[3577] didn't find rule named source.ruby
28/12/2008 01:42:53 TextMate[3577] didn't find rule source.ruby
28/12/2008 01:42:53 TextMate[3577] didn't find rule named source.ruby
28/12/2008 01:42:53 TextMate[3577] didn't find rule source.ruby
28/12/2008 01:42:53 TextMate[3577] didn't find rule named source.ruby
...
this messages appear in the list every time I press any button inside
the editor. So, looks like one of the bundles which has scope selector
'source.ruby' activated after pressing on keyboard. But how to find
which of them and to fix it?
Any suggestions? Thanks.
---
Best regards, Vladimir Prudnikov.
Blog: http://prudnikov.com/
E-Mail: prudnikov(a)tobeedo.com
I looked somewhere on the internet to find out why I get this problem and it
looks like is a problem of python versions, but I didn't find a way to fix
it..
Here it is the error, maybe someone else got the same problem here...
Thanks
Traceback (most recent call last): File "", line 7, in File
"/Users/andrea/Library/Application Support/TextMate/Pristine
Copy/Bundles/Python.tmbundle/Support/DocMate/docmate.py", line 7, in import
urllib2 File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 91, in import hashlib File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/hashlib.py",
line 133, in md5 = __get_builtin_constructor('md5') File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/hashlib.py",
line 60, in __get_builtin_constructor import _md5 ImportError: No module
named _md5
--
View this message in context: http://www.nabble.com/Problems-with-python-bundle-tp20577401p20577401.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I am working on a latex document and using the newcommand
"\newcommand{\comisc}[1]{\lstinline[style=comisc]|#1|}". When I write
something like "\comisc{$MATH_SCALE_FACTOR}". Textmate now colours the
rest of text in the colour of an equation (here green). I think this
happens because of that dollar sign for inline formulas and TM thinks
that is not closed.
Is there way to avoid this behaviour?
Thanks
Christian
Hello,
I'm trying to run a ruby script and get this error:
/Users/sam/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/
Support/RubyMate/run_script.rb:1:in `require': no such file to load
-- /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
executor (LoadError) from /Users/sam/Library/Application Support/
TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:1
any idea what might have gone wrong here, I've run scripts plenty of
times in the past no problem
I received an error message when attempting to run a ruby script that
asked I report it:
> Select threw Errno::EINVAL. Please report this error to the TextMate
> mailing list or to ##textmate on irc.freenode.net. /Applications/
> TextMate.app/Contents/SharedSupport/Support/lib/io.rb:28:in
> `select': Invalid argument (Errno::EINVAL) from /Applications/
> TextMate.app/Contents/SharedSupport/Support/lib/io.rb:28:in
> `exhaust' from /Applications/TextMate.app/Contents/SharedSupport/
> Support/lib/tm/process.rb:168:in `run' from /Applications/
> TextMate.app/Contents/SharedSupport/Support/lib/tm/executor.rb:
> 122:in `run' from /Applications/TextMate.app/Contents/SharedSupport/
> Support/lib/tm/executor.rb:184:in `process_output_wrapper' from /
> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
> executor.rb:121:in `run' from /Applications/TextMate.app/Contents/
> SharedSupport/Support/lib/tm/htmloutput.rb:135:in `call' from /
> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
> htmloutput.rb:135:in `show' from /Applications/TextMate.app/Contents/
> SharedSupport/Support/lib/tm/executor.rb:96:in `run' from /
> Applications/TextMate.app/Contents/SharedSupport/Bundles/
> Ruby.tmbundle/Support/RubyMate/run_script.rb:65
Ryan Neufeld
neufelry(a)gmail.com
Hi,
Maybe I'm a bit paranoid, but I just tried out the new GetBundles and
GitHub integration. I like the idea (that it dynamically finds GitHub
projects).
I'm just worried about the security implications. Does TextMate
sandbox bundles? I mean, technically speaking, GetBundles lets you
download unknown bundles which can execute arbitrary code on my machine.
I'm also inspired by the GitHub/TextMate solution and would like to
use a similar interface for downloading script modules in my app. I'm
just hoping there's a good way to secure them.
Thanks so much!
-Geoff
Is it possible to prevent the svn bundle from stealing focus after it
finishes an update? I've got a couple repos that take a while to
update so i'll start the update, switch the browser and get the
environment ready or switch to mail and read up on my mail. It's
really annoying when TM steals focus back.
--
Jacob Coby
I did this for myself a while back, assuming it was only a matter of
time before someone more knowledgeable would make an official LDAP
bundle. That hasn't happened, and searching in GetBundles indicates
that no one has worked on an LDAP/LDIF related bundle, so I've cleaned
mine up and am submitting it for consideration. (Surely there are
other people that work with LDIF? I notice vim has a syntax for it.)
One good way to test it: If you have an OpenLDAP server, run `slapcat -
l somefile.ldif`, then open that file in TextMate. You should see
everything scoped nicely, every entry should be listed in the symbols
list, and you should be able to fold entries. You shouldn't see any
"invalid" sections.
I've looked at man pages and other documentation and I think I've
covered the LDIF syntax pretty well. The only thing I can't figure out
the regex for is "more than one space before an attribute's value".
(It should be scoped as invalid.) Since the first space is part of the
"begin" pattern, it's difficult to identify additional spaces without
matching every space in the string. Any suggestions there would be
appreciated.
Thanks.
--
Rob McBroom
<http://www.skurfer.com/>
Because it screws up the order in which people normally read text.
Original message:
> Why is it bad to top-post your reply?
I typically LaTeX with a translucent background with the file in front
of TeXniscope (and sometimes Skim). On my new machine, however, the
workflow speed-up is greatly diminished, because the rendered file
often looks... bad. The standard font looks all blocky, the math
renders incorrectly, etc.
If I make no changes to the .tex file, save, and re-examine the .pdf,
the pdf changes---it seems to cycle through a few stages:
bad http://www.eberkowitz.com/images/tm/incorrect.png
medium the text renders correctly, but the math is bad
good http://www.eberkowitz.com/images/tm/correct.png
As far as I can tell (ie. 10 or 12 experiments), no such issue exists
when I compile with Latexmk.pl
I've tried deleting my font caches, after reading Q0.1 here at [ http://www.tug.org/mactex/faq/
], but to no avail.
Anyone else have a similar experience? Anyone have an idea how to get
this to stop happening?
Thanks a lot,
Evan
--------------------------------------------------
It was mentioned on CNN that the new prime number discovered recently
is four times bigger than the previous record.
John Blasik
I'm using TextMate to compile a Java class (I usually use a Java IDE, but
TextMate should be great for a "quick and dirty" check). When I attempt to
compile and run my class, I get an error. I suppose there are paths to
define. How do you do that in TextMate?Thanks in advance,
marc
Guys,
I just read in the documentation that it is not possible to change the
Fonts & Color style on a per file type base. This is a pity. I don't
want the same style for my Twiki files and my C source files.
Do any of you have a trick to do that? Hopefully better than creating
a new color and style entry for every scope of the Twiki grammar. ;-)
Thanks in advance.
Best regards,
Mathieu
___________________________________________
Mathieu Godart
Skype: mathieu_godart
MSN: mathieu_godart(a)hotmail.com
ASIC Integration Manager
Coolsand Technologies
___________________________________________
Does anyone know if ReMate has compatibility issues with TextMate
Version 1.5.8 (1496)? I have recently found this fantastic plug-in,
but it doesn't appear to work for me. I connect to remote drives
using ExpanDrive, and it seems to take ages to load large projects.
---
chad gulley
I would like to add this command to my python bundle and it should be easy..
I would like to go to a line in TM and getting something like that in
ipython:
run -d -b$TM_LINE $TM_FILEPATH
So i can easily start to debug from where I want.
Best way could be also automatically "continue" to that breakpoint.
But if I try to do
ipython2.5 << EOF
run -d -b30 file.py
EOF
It launches correctly ipython but exits just after, why??
--
View this message in context: http://www.nabble.com/Debug-in-ipython-tp21037085p21037085.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello
When using Emacs or VI it is possible to add a specific comment on the
source code (unfortunately they use different syntaxes) to specify (in
the middle of other things), the number of spaces a tab have, and if
they should be soft, or not.
Is there any such markup under TM?
Thanks In Advance,
Alberto
--
Alberto Simões
Has anyone out there come up with a way to insert "end-of-line"
comments. As a former vim user, I had a plugin that would insert a
comment on column 55 of the given line. I would love to be able to do
the same in textmate. Any suggestions?
---
chad gulley
cag(a)adfitech.com
www.adfitech.com
405-715-8083
Hi
Markdown does not do well codeblocks in between list items
<http://daringfireball.net/projects/markdown/syntax> :
To put a code block within a list item, the code block needs to be
indentedtwice — 8 spaces or two tabs:
* A list item with a code block:
<code goes here>
- Juan Falgueras
So maybe my last email (pasted below) was poorly worded. I'll try again...
I've found 3 highlighting bugs and 2 export bugs in the Markdown
bundle. I'd fix them myself but the Markdown Bundle's kung-fu is too
much for me to handle.
Highlighting Bugs
-----------------
1. Raw code nested inside blockquotes require indentation by
two tabs, not one.
2. Same rule applies to lists.
3. Reference-style links should allow titles to be listed on
the next line, indented with as many tabs as you'd like.
All three of these are *just* highlighting bugs, they export to HTML just fine.
Export to HTML bugs
-------------------
1. Raw code nested inside blockquotes is incorrectly exported
with two leading spaces inside the pre/code tags.
2. According to Markdown syntax, reference-style link's titles
are allowed to be inside single-quotes.
And that's it. If you need an example to paste into TextMate see here:
<http://pastie.textmate.org/private/tetzlcuww7rmb8jkcff4ia>
--oliver
------------------------------------------------------------
On Fri Dec 5 at 20:55:31 Oliver Taylor wrote:
> I was playing with Markdown (yeah I'm that kind of nerd) and I ran
> into the following bugs:
>
> This message is also on pastie in case the list strips tabs:
> http://pastie.textmate.org/private/tetzlcuww7rmb8jkcff4ia
>
> - - -
>
> > This text is indented from the bracket ">" by one tab
> > (which is allowed in Markdown) and is mis-highlighted
> > by TextMate as a nested code block.
> > If, however, I indent by 4 spaces TextMate highlights
> > this correctly.
>
> > When blockquote-nested code blocks, like this paragraph, are
> processed into HTML they include two spaces at the beginning of the
> code block.
>
> * Code blocks in lists must also be indented by 2 tabs.
>
> This should be highlighted as code.
>
> Processing this to HTML works as expected, and does not
> include the blockquote's "2 space" bug.
>
> - - -
>
> [Links](http://example.com) can be [written][foo] a number of
> [different ways][bar].
>
> [foo]: http://example.com
> "This line begins with 2 tabs. It is highlighted as code, but
> processes as a title (as it should)"
>
> [bar]: http://example.com 'single quoted titles don't highlight or
> process, but should be allowed according to the Markdown syntax'
>
> Is there a specific reason single-quote titles aren't allowed?
>
> - - -
>
> Also, shouldn't links like this <http://example.com> be scoped as
> `string.other.link.markdown` or something so that they highlight like
> every other kind of link?
>
> - - -
>
> Thanks for indulging me.
>
> --oliver
Hi there,
Due to some trouble with my current laptop, I had to borrow another
one and as a consequence, did a fresh TextMate install on a fresh user
account on OS X 10.4.11. Next step was getting GetBundles, which
failed with
/bin/bash: line 15:
/Users/someone/Library/Logs/TextMateGetBundles.log: No such file or
directory
I had to create a ~/Library/Logs to avoid the problem. I guess this
qualifies as an easily corrected bug.
Édouard
Hi all,
Is it possible to fix the YAML inline-hash syntax highlighting?
Working with Symfony, it's very common to have inline hashes in the
routing.yml file. They look something like:
feed_enhanced:
url: /recently-added.xml
param: { module: feed, action: enhanced }
The YAML bundle considers "feed, action: enhanced" to be a value for
"module:" where "action:" should be a new key.
Is there a fix? I've briefly looked at fixing it, but I'm not
familiar enough with the TM syntax definition to figure this out on my
own.
Thanks,
--
-Jacob
Hey everyone,
I'm trying to piece something together and I figured I'd ask if it was
possible before I put all of the mental effort into it.
I use the "find email address in address book" bundle almost daily. I
was wondering if it is possible to configure similar functionality for
the calendar? I want type in a word from an event's name and the
command would pull the full name, location, start and end date from
iCal. Is this possible?
I'm not a programmer but I was hoping to modify the existing bundle.
I *think* the CalCalendarItem and CalEvent frameworks provide the
necessary information to pull this off but I wanted to make sure that
it was feasable before I attempted something so far above my pay grade.
j.
I am trying to create a command that takes input as "selection or
scope", so I set the input option accordingly.
I set the scope selector to string.quoted.double.block.python
However, when I press the key equivalent, my command receives the
entire file as input instead of just the string.
Can you already see something that I am doing wrong? Screenshots attached.
Thanks,
Abhi
There must be a key command for this, but I can't find it. In php
mode, if you have an area selected, how do you wrap it with /
* ..selection.. */ ?
Thanks.
smosk wrote:
>
> Just switched over to textmate from the pc port e text editor.
>
> I see how to column select, but I can't figure out how to select multiple
> words (or sections of text).
> In e, you just hold control and select arbitrary sections of the document.
>
> Please tell me you can do this! I thought this was one of the big draws
> to textmate. It certainly was for me when I switched to e.
>
Uhm I'm not sure I understood anyway
ctrl + (right|left) arrow and you select many words.
Otherwise command + mouse and you select whatever rectangular shape you
want.
Look in "Edit -> select"
--
View this message in context: http://www.nabble.com/Multiple-Selections-tp20930086p20940328.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
There were a number of QuickTime tutorialsI watched a month or so ago
showing how to use TextMate (general editing info: autocompletion, tag
balancing, keyboard equivalents, etc.) that were of interest to me as
a long-time BBEdit user who's begun the switch to TextMate.
I can't remember how I got to them, but I thought it was via
macromates.com, but I can't find them any more. Googling "textmate
videos" brings up lots of stuff, but not the ones I'm looking for.
The person doing the walkthroughs had a northern European accent; he
was very soft-spoken (but had very good English). Does this sound
familiar to anyone?
--
Regards,
Christopher Mackay
I'm facing compiling problems after the TM update to 1.5.8 (bleeding
edge).
I save my tex-files in my project in Latin1. As soon as i open a new
file in the project and want to compile it, i get the following error
message.
"LaTeX Error: Command \textcurrency unavailable in encoding T1"
When i save the file with "save as" and make sure TM saves it in
latin1, and i close the file, then the compile process suceeds. I'm
sure I haven't faced this problem with 1.5.7. When i downgrade to this
version, everything works fine. as soon as i upgrade, i have this
problem.
I think TM wants to save everything in utf8. At least i realised that
former latin1 docs were saved as utf8. In the prefs pane > advanced>
saving there is "latin1" listed under "file encoding".
Hope somebody can help me
Is there anything further on this issue? I'm experiencing the same results
for a fresh checkout from an svn+ssh repo, performed through TM.
> On 24 Jan 2008, at 21:59, dave.myron wrote:
>
> >> [...] the default values for the above should become:
> >>
> >> svn log --xml --limit 15 -vr HEAD:1 \
> >> «file» 2>&1 | ruby -- "${TM_BUNDLE_SUPPORT}/format_log_xml.rb"
> >>
> > Digging up an old thread here, but I'm getting these same problems
> > with the
> > latest TextMate and the latest Subversion bundle.
> >
> > When I run the second command above (the *parsed* one with defaults)
> > [1] I get
> > the same *REXML* error [2].
> ... [show rest of quote<http://www.nabble.com/Subversion-bundle-problem-td13754459.html#>
> ]
>
> So you can reproduce the error outside TextMate?
>
> > However, if I change it to this (two-liner) it
> > works just fine (of course, it doesn't show in TM...):
> > [...]
> > The error with the rescue block uncommented:
> > /opt/local/lib/ruby/1.8/*rexml*/source.rb:226:in `pos': Illegal seek
> > (Errno::ESPIPE)
>
> It would appear the *REXML* *parser* treats the IO object as more than
> just a pipe (i.e. it tries to seek).
>
> Try instead of using '</tmp/test.log' do: 'cat /tmp/test.log|ruby …',
> see if that changes things. Also try change '2>&1' to '2>/dev/null' in
> the version that fails for you in Terminal.
>
--
Dana
I'm a new TextMate user trying to write a simple bundle command to launch my g++
builds from TextMate. Leaving out the stuff to HTMLify the results (which
doesn't seem to make a difference to this bug), it looks like this:
cd ${TM_PROJECT_DIRECTORY}
./build.sh
Where build.sh is a script which calls make on a series of makefiles, checking
the result each time. It works fine if I call it from the command line. But
when I trigger the command in TextMate, the compiles work fine, but ar calls
("ar crv") to build the library fail pretty consistently with errors like this:
ld: in ../hw_nmtlib_core.a(__debug_frame), not a valid archive member
The error is apparently in the .a file, as executing build.sh from the command
line will still generate the error, until you force it to regenerate the .a file.
I'm hoping someone has an idea what might be going on here, because TextMate
will be a dream if I can get this working properly.
Thanks,
Sol
hi all,
while switiching documents in Latex the following happens.
Hitting the ENTER-key on my keyboard as my cursor is somewhere in the
name of a document (like \input{moretexthere.tex}) results in 'popping-
up' the file 'moretexthere.tex' together with a warning in a yellow
area:
-:14: warning: Insecure world writable dir /Users/.....etc..path...
in PATH, mode 040777
-:18: warning: Insecure world writable dir /Users/.....etc..path...
in PATH, mode 040777
The path stops at a folder where (eventually - 4 subdirectories
deeper) the document I'm working on is located.
Can I improve my settings so that this warning dissappears?
I've seen this mentioned before but couldn't find the thread. My
TextMate.app is located in /Applications and the folder I'm working in
is somewhere in ~/Documents and this all with up to date software and
so on.
Thanks for any reply,
Gert
I was wondering if it was possible to map a key (I'll choose [enter])
to the following procedure:
go to the end of the line (given by a particular column) via tabs and
enter two backslashes and return.
alternatively, if the distance to the given column is less than some
number K, go to the next line, tab over T many tabs, hit two
backslashes and return.
The main use of this for me would be inside the align environment, and
within tables--that way the layout of the align's lines appear
consistent automatically, instead of me having to do it by hand.
Evan
--------------------------------------------------
Cole's Law:
Shredded cabbage goes great with shredded carrots and
mayonnaise.
TextMate suddenly has problems saving files in latin1 encoding (which
I must use if I collaborate with others). Even though TextMate tells
me it saves the file in latin1, upon checking with TextWrangler, it is
clear that they are not saved in the correct format.
The only workaround is to avoid using special characters (like umlaute
or accents). This happens with extremely simple one-file projects as
well as more difficult projects.
Is it possible to downgrade to an older version of TextMate?
Max
Dear All,
I just encountered something of which I think is a bug in the latex bundle.
When using a directory and file structure like this
main.tex
|
---subdir
|
-----submain.tex
|
-----subcontent.tex
where main.tex has an \input{subdir/submain} and submain.tex contains a
\input{subdir/subcontent.tex} the show outline function gives me an error
that the directory
xyz/subdir/subdir/... could not be found (which, as a matter of fact is
correct since it does not exist). To my impression the parser forgets to cut
off the first part of the path in \input{} when in a subdirectory.
For generating a LaTeX file this works fine. Any help or hint would be
greatly appreciated.
Kind regards,
Nima
--
View this message in context: http://www.nabble.com/Latex-Bundle---Bug-in-Show-Outline-tp20909194p2090919…
Sent from the textmate users mailing list archive at Nabble.com.
Is there a way to bind the Home key in a way so that it
behaves similar to UltraEdit?
Nearly 2 years has past, since I last asked about this:
http://thread.gmane.org/gmane.editors.textmate.general/16116
Maybe there is a solution now?
The first time you press Home then the cursor jumps to
the first letter on the line (/^\s*/).
The second time you press Home it jumps to
the beginning of the line (/^/).
position A = ^
position B = ^\s*
Item1. pressing home and cursor jumps to position B.
Item2. except when cursor already is at position B, then it jumps to A.
Item3. doesn't modify the file.
Item4. when shift is held down then it preserves the selection correct.
I have tried different approaches mentioned in the past on
this list, but they have problems with Item3 and Item4.
I have also tried making my own ruby scripts for it, but
there was also problems with Item3 and Item4.
Has anyone a well behaved Smart Home command?
####################################################
# Good: Item1 and Item2
# Bad: Item3 and Item4
#
# Save: Nothing
# Input: Selected Text or Line
# Output: Insert as Snippet
# Activation: Key Equivalent, HomeKeyArrow
# Scope Selector: <blank>
####################################################
#! /usr/bin/ruby
line = ENV['TM_CURRENT_LINE']
index = ENV['TM_LINE_INDEX'].to_i
# extract leading whitespace
remain = line.sub(/(^[ \t]*)/, '')
whitespace = $1
if whitespace == nil
whitespace = ''
elsif index == whitespace.size
whitespace = ''
else
line = remain
end
# escape $ \ `
line.gsub!(/([\$\\`])/){"\\#$1"}
# place cursor
print "#{whitespace}${1}#{line}"
####################################################
--
Simon Strandgaard
my graphics program for mac - http://toolboxapp.com/
None of the Java templates seem to create properly; both from the File-
>New From Template as well as from the the project window...
I haven't gotten the time to look into why yet; but does anyone
already know about this?
-N.
Hi All,
I’m not sure if this has already been addressed, but I noticed
that my CSS language grammar highlights “transparent” in
{background-color: transparent;}, and most everything after that, as
an error (scope = invalid.illegal.css). The more common {background:
transparent;} doesn’t trigger the error, and in that
case “transparent” gets the scope “name =
'support.constant.property-value.css'.” I added transparent to
the value list in “name = 'support.constant.color.w3c-standard-
color-name.css',” which may not be the right place, but works
for me.
peace - oli
> On Fri Dec 5 19:54:25 Simon Strandgaard wrote:
>
>> Is there a way to bind the Home key in a way so that it behaves
>> similar to UltraEdit?
>
> On Fri Dec 5 22:51:55 Oliver Taylor wrote:
>>
>
> (please correct me if I'm wrong)
>
> Don't think it's possible. This is because I don't think TextMate can
> "see" the HOME and END keys being pressed. The OS must intercept the
> keypress and move the view without telling TextMate it even does it.
>
> Maybe a third-part macro utility like Keyboard Maestro could help
> here.
Wow. That was just dumb. Of course TextMate can assign HOME and END to
snippets etc.
What am I? New?
The Markdown bundle:
- Correctly highlights hyphen-delimited bullet lists, and
- Correctly translates hyphen-delimited bullet lists to HTML, but
- Does not allow the writing of such lists! Instead, hyphen-tab creates a horizontal line.
This is a problem because:
- Users may want to use hyhpens to demark bulleted lists instead of asterisks or plus signs for visual reasons
- Users may want to use hyhpens to demark bulleted lists instead of asterisks or plus signs because the hyphen is the only punctuation of those options which does not require use of the Shift button
- This behavior occurs even when converting a paragraph to a bulleted list item (result is "----------[...]---previous paragraph text")
A suggested fix is:
- Force users to type two hyphens for the horizontal-line auto-completion
Thanks,
Alan Hogan
Hi folks,
I'm a Wordpress user, and I also use a few plugins that make use of
custom fields, which are arbitrary key,value pairs that can be
associated with posts.
I've implemented support for these into the blogging bundle. I've
attached both a diff and a zip of the entire modified bundle.
It adds a 'Custom' header item, which has the format:
Custom: field_name (field_id) = field_value
Where field_id is an optional numeric value, and retrieved when
fetching posts.
Cheers,
Michael
--
Michael Tyson | michael.tyson.id.au
m: (+61) 0407 754 124
e: mike(a)tyson.id.au
aim: mikerusselltyson
twitter: MichaelTyson
Hi
Misadventures of a Wizard's Apprentice :
I found in this message : http://lists.macromates.com/textmate/2007-February/017504.html
this idea
ENV['PATH'] = %x{sh -c '. "$BASH_ENV"; echo $PATH'}
I put this line in the file require_cmd.rb and with this line, I can
compile
without setting the PATH in the Shell Variables.
I would like to know if this idea is fine or if it' dangerous ...
Alain
the code :
ENV['PATH'] = %x{sh -c '. "$BASH_ENV"; echo $PATH'}
require ENV["TM_SUPPORT_PATH"] + "/lib/escape"
require ENV["TM_SUPPORT_PATH"] + "/lib/exit_codes"
module TextMate
class << self
def require_cmd(cmd)
unless File.executable?(cmd) or ENV['PATH'].split(':').any? { |
dir| File.executable? File.join(dir, cmd) }
TextMate::HTMLOutput.show(:title => "Can't find “#{cmd}” on
PATH.", :sub_title => "") do |io|
io << "<p>The current PATH is:</p>"
io << "<blockquote>"
ENV["PATH"].split(":").each do |p|
io << htmlize(p + "\n")
end
io << "</blockquote>"
io << "<p>Please add the directory containing
“<code>#{cmd}</code>” to <code>PATH</code> in TextMate's Shell
Variables preferences.</p>"
io << "<p>Alternatively, the PATH can be retrieved from
Terminal but this requires a relaunch: "
io << "<button onclick=
\"TextMate.system('#{(ENV["TM_SUPPORT_PATH"]+"/bin/
set_tm_path.sh").gsub(" ", "\\\\\\\\ ")}', null)\">Set PATH and
Relaunch.</button></p>"
end
TextMate.exit_show_html
end
end
end
end
I would like to see if there is a way to conditionally include some other
files (or part of them) directly from textmate.
For example I have a file which contains a program contained in another
file, so it would be nice to autoupdate that part of the text file every
time.
Does it makes any sense??
Something like
\inc{otherfile}[0-10]
At every opening of the file fetches the first 10 lines of otherfile. The
problem is how to distinguish text from include instruction.
I may have an idea but maybe it doesn't make sense the whole thing...
--
View this message in context: http://www.nabble.com/conditional-inclusion-tp20853565p20853565.html
Sent from the textmate users mailing list archive at Nabble.com.
I see that OCaml bundle knows which function we're in, as it's shown
in the lower right. Yet the fold handles are all screwed up and don't
do no foldin', and selecting [Scope] in the bundle editor always
selects the whole document. But we know we are in a function! How
can we make it a scope?
Cheers,
Alexy
Hi,
I have a bash alias called mb ("mate bash") to edit my bash config files
(and a few others). It's pretty simple:
alias mb='mate ~/.alias ~/.bashrc ~/.profile ~/.inputrc ~/.screenrc'
This worked fine when I first used it (quite a long time ago) but I've just
tried it today and it only half works. I get the project drawer listing the
5 files, but .profile and .bashrc don't open in TextMate when I single-click
them. If I double-click them, .profile opens in TextEdit and .bashrc gets
executed in a terminal.
What settings can I change to get back the old behaviour? I realise it's
probably a system setting rather than something TextMate-specific, but I
can't even find a way to show dotfiles in the finder so I can "always open
with...".
Thanks
Jon
Hi,
The problem is always the same and it's the third time with 1.5.7 and
1.5.8 :
cmd shift / opens the "HELP Menu"
I need to delete the file "com.macromates.textmate"
Is it possible to see the problem in the pref file ?
Best Regards
Alain Matthes
Hello,
Does anyone how simple it would be to add a "Run" macro to the
Objective-C package?
What I'm looking for is something that works exactly like the C bundle
(latest version).
Would the maintainer of the package mind adding this capability?
Best Regards,
Armon Dadgar
The 'Help' page for the PHP bundle includes a link to the "PEAR style
guide", which looks like it goes to a defunct (possibly hijacked?) site.
IMHO the link should get re-pointed to http://pear.php.net/manual/en/standards.php
Jon
On Fri Dec 5 19:54:25 Simon Strandgaard wrote:
> Is there a way to bind the Home key in a way so that it behaves
> similar to UltraEdit?
(please correct me if I'm wrong)
Don't think it's possible. This is because I don't think TextMate can
"see" the HOME and END keys being pressed. The OS must intercept the
keypress and move the view without telling TextMate it even does it.
Maybe a third-part macro utility like Keyboard Maestro could help here.
--oliver
I was playing with Markdown (yeah I'm that kind of nerd) and I ran
into the following bugs:
This message is also on pastie in case the list strips tabs:
http://pastie.textmate.org/private/tetzlcuww7rmb8jkcff4ia
- - -
> This text is indented from the bracket ">" by one tab
> (which is allowed in Markdown) and is mis-highlighted
> by TextMate as a nested code block.
> If, however, I indent by 4 spaces TextMate highlights
> this correctly.
> When blockquote-nested code blocks, like this paragraph, are
processed into HTML they include two spaces at the beginning of the
code block.
* Code blocks in lists must also be indented by 2 tabs.
This should be highlighted as code.
Processing this to HTML works as expected, and does not
include the blockquote's "2 space" bug.
- - -
[Links](http://example.com) can be [written][foo] a number of
[different ways][bar].
[foo]: http://example.com
"This line begins with 2 tabs. It is highlighted as code, but
processes as a title (as it should)"
[bar]: http://example.com 'single quoted titles don't highlight or
process, but should be allowed according to the Markdown syntax'
Is there a specific reason single-quote titles aren't allowed?
- - -
Also, shouldn't links like this <http://example.com> be scoped as
`string.other.link.markdown` or something so that they highlight like
every other kind of link?
- - -
Thanks for indulging me.
--oliver
Hi guys, Textmate doesn't seem to catch the correct interpreter, no
matter what I do ...
ngw@slicingupeyeballs ~$ irb
irb(main):001:0> require 'jcode'
=> true
ngw@slicingupeyeballs ~$ echo $PATH
/Users/ngw/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/
local/sbin:/opt/local/lib/postgresql83/bin:/usr/bin:/bin:/usr/sbin:/
sbin:/usr/local/bin:/usr/X11/bin
ngw@slicingupeyeballs ~$ which ruby
/opt/local/bin/ruby
The error I get when I try to load something in ruby (like the
Blogging Bundle fetch posts) is:
ruby: no such file to load -- jcode (LoadError)
I'm stuck ...
TIA,
ngw
I am trying to write a snippet that allows me to write a helpful usage
string for my Python script, and then automatically insert a "if
len(argv) != ..." thing below that:
"""
$TM_FILENAME ${1:args}
"""
if len(argv) != <some regex that counts number of words in $1>:
exit(1)
$0
Depending on the number of words that I enter for args, I want the
appropriate number to be inserted in front of "if len(argv) != ...".
What regular expression can do that?
If a regex can't do that, can I somehow insert the results of a shell
script (e.g. wc) in a regular expression (which, by the way, seems
like a useful thing to be able to do anyways!).
Thanks!
Abhi
I am trying to write a snippet that allows me to write a helpful usage
string for my Python script, and then automatically insert a "if
len(argv) != ..." thing below that:
"""
$TM_FILENAME ${1:args}
"""
if len(argv) != <some regex that counts number of words in $1>:
exit(1)
$0
Depending on the number of words that I enter for args, I want the
appropriate number to be inserted in front of "if len(argv) != ...".
What regular expression can do that?
If a regex can't do that, can I somehow insert the results of a shell
script (e.g. wc) in a regular expression (which, by the way, seems
like a useful thing to be able to do anyways!).
Thanks!
Abhi
Hi,
I've just rolled back from the newest cutting edge release because I've
discovered all my previous Java snippets have been either removed or changed
drastically and I can no longer use textmate to compile my Java classes
without falling over
I was just wondering if it is possible to keep my old snippets and the way
that textmate currently uses to compile Java while updating to the latest
cutting edge update.
Regards
James
--
View this message in context: http://www.nabble.com/Java---Textmate-1496-tp20832061p20832061.html
Sent from the textmate users mailing list archive at Nabble.com.
(Apologies if this is a duplicate post--my previous didn't seem to "take".)
I stumbled upon the description of WebMate, a TextMate plugin that lets you edit
a document (say, HTML) directly in the preview window rather than in source.
Unfortunately, all the links I could find (which eventually pointed to End.com)
were dead.
Does anyone know a mirror site, have a copy of WebMate themselves, or have
suggestions for a replacement?
Many thanks from a happy TextMate user!
jon
/RR (http://responserequested.com)
Hi all,
I keep losing my syntax highlighting in only one certain file type.
I have a JSP bundle that does an include of the source.java scope.
In essence, everything between <% and %> should be treated as Java. The Java
syntax highlighting still works, however, when I open a .java file.
If I blow out my Application Support/TextMate/ directory and start over, it
works fine, and if I add back in the bundle, it will work for a little bit
as well.
But for some reason, after a day or two of editing, everything between <% %>
is colored as plain text.
Here's the really weird part: the scope reads partially correct, and
snippets work, but the syntax highlighting is gone.
When I say the scope works, basically, it will tell me I'm in the proper
scope (text.html.jsp) but it doesn't have the proper scopes for the data
types and such.
Here is the part of my Language portion of the bundle that does the include:
jsp = {
patterns = (
{ name = 'comment.block.jsp';
begin = '<%--';
end = '--%>';
captures = { 0 = { name = 'punctuation.definition.comment.jsp'; }; };
},
{ name = 'source.java.embedded.html';
begin = '<%[!@=]?';
end = '%>';
patterns = ( { include = 'source.java'; } );
},
);
};
Does anyone have any ideas? I am stumped on this one...
(PS. Running Leopard 10.5.5, and running TM 1.5.8 build 1496)
--
View this message in context: http://www.nabble.com/Syntax-highlighting-is-gone...-tp20821869p20821869.ht…
Sent from the textmate users mailing list archive at Nabble.com.
I did some searching on the list before subscribing to see if anyone
answered this. But I couldn't find anything definitive on the
subject. Please forgive me if this has been asked before and feel
free to provide a link to appropriate documentation citing a method...
I would love to have TextMate respond to NetNewsWire's "Post to
Weblog" functionality the same way say - MarsEdit does.
Has anyone developed a way to integrate the two? When I try to simply
selected "Textmate" as my blog editor in NetNewsWire it (not
surprisingly) doesn't work.
TIA
--
David Orriss Jr.
My blog: http://www.codethought.com/blog
Hi all,
I've just updated TextMate to [2008-11-27: REVISION 1496] and in doing
so have noticed that context menus now have ⌘1, ⌘2, etc instead of 1,
2 listed as shortcuts next to them.
As an example the Git bundle is trigger by Ctrl-Shift-G which pops up
a menu that I used to be able to press 1 to Show Uncommitted Changes.
Now that menu item has ⌘1 next to it. (The same thing has happened to
the Subversion menu too.)
Is there anyway to go back to the previous behaviour as this change
breaks my muscle memory?
Cheers,
Paul.
I already sent this message but publication is delayed
for some reason - excuses in advance if the post will be repeated
After updating the Support folder, I am getting
error messages in some of my routines which
use ui.rb. But the errors seem produced by the
lines in ui.rb like
<<<<<<< .mine
and
=======
and similar ones. Strange thing, it seems like the errors
are not related to my routines: a typical example:
/tmp/temp_textmate.LJOoCE:4:in `require': /Library/Application
Support/TextMate/Support/lib/ui.rb:92: syntax error, unexpected tLSHFT,
expecting kEND
(SyntaxError)
<<<<<<< .mine
^
Any help appreciated
Piero
> Well, at least a reason: in Snow Leopard Apple wants to allow menu
> items to trigger without any modifiers at all.
Thanks for the clarification... I have to say it's bad news for my
workflow... I've been going crazy the last couple of days... It's so
ingrained in my system... Plus, trying to get used to it, I keep on
hitting command + # key and switch tab instead... grrr...
At least I know it's because of Snow Leopard now... so I'll do some
kung fu training to get used to it... :'(
Hello. I've been using TextMate for writing Objective-C for the iPhone.The
features that come in the Objecive-C bundle are great but the supported
frameworks for documentation look up and completion do not include the
iPhone SDK / Cocoa Touch Frameworks.
This thread <
http://thread.gmane.org/gmane.editors.textmate.general/25089/focus=25595>
resolved the documentation issue for me but I'm still trying to get
completions for the iPhone specific frameworks/Classes.
So far I have tried to use the Index Headers For Completion command to index
the Cocoa touch headers. I created a TextMate project and copied all the
UIKit framework header files to the project folder.
I ran the Index Headers command but the generated .classes.TM_Completions.txt
and .methods.TM_Completions.txt files where empty.
I then opened the GenerateMethodList.rb script and added "UIKit" => "UI" to
the "translate" array. After doing this some Classes show up in the
generated completions files but the list is far from complete. This is the
generated clas list:
NSValue
NSCoder
UIColor
UIFont
UIViewController
NSBundle
NSObject
NSString
NSIndexPath
UIView
I don't know why the NS* classes show up in the list and I dont know what
sets the UI* classes in the list appart fro all the other UI classes that
didn't show up. I've never written a single line of Ruby and there are a lot
of things I don't understand in the generateMethodsList.rb script
Allan or anybody else, If you are listening, could you please give me some
pointers as to how to index these header files (Along with the other
iPhoneSDK/Cocoa Touch header files) and use them for completions in my
projects?
I would love to help including this in the official Objective-C bundle or
help create a new Objective-C iPhone bundle.
Thanks!
RafaVega
Hi guys,
In adding my own command to convert a HTML document/selection to
Markdown, I discovered that the Markdown bundle's version of
html2text.pl is a few versions old. Since that version, unicode is
handled better - the version included with TM dies with an error when
encountering HTML entities like μ.
May be worth updating it, perhaps.
Cheers,
Mike
--
Michael Tyson | michael.tyson.id.au
m: (+61) 0407 754 124
e: mike(a)tyson.id.au
aim: mikerusselltyson
twitter: MichaelTyson
I'm using TextMate with OCaml extensively, and use an Eval script from
Johan Kullbom to send either a selection or a current line to an iTerm
with ocaml interpreter in it (adapted from F#):
http://blog.hoomla.se/post/F-TextMate-bundle-on-Google-Code.aspx
The problem is, OCaml grammar doesn't really show functions properly,
fold-unfold handles make no sense. Thus, I have to select a function
manually if I want to send it to ocaml.
Now I chose "Line" in Input: [Selected Text] or [Line], but what I'd
really like to choose is "Non-blank line segment around the cursor".
I'm not sure what can I do with the [Scope] there, as scopeName
defines the whole 'source.ocaml', AFAICU.
So, is there a way to achieve "select Non-blank line segment around
the cursor, then send THAT to ocaml using an Eval snippet or similarly"?
Cheers,
Alexy
I'm trying to rebind ^j to insertNewline. I've tried the following:
1: cp /Applications/TextMate.app/Contents/Resources/
KeyBindings.dict ~/Library/Application\ Support/TextMate/
2: edit the local copy and change ^j to map to insertNewline:
diff /Applications/TextMate.app/Contents/Resources/KeyBindings.dict ~/
Library/Application\ Support/TextMate/KeyBindings.dict
63c63
< "^j" = "reformatTextAndJustify:";
---
> "^j" = "insertNewline:";
3: restart TextMate, but ^j is still bound to Reformat & Justify
I also tried removing /Applications/TextMate.app/.../
KeyBindings.dict, but that didn't help either. I'm using TextMate
Version 1.5.7 (1436) on Mac OS X 10.5.5 (9F33)
Any ideas?
--
Peter McLain
27 nov 2008. New build of TM.
DIALOG2 now part of TM (i'm sure its there).
Can i use dialog2 to choose categories? Can i use DIALOG2 to
autocomplete Python/Django code? How can i use DIALOG2 in common?
Changelog says nothing i can understand...
-- Alexey