Hi all there
I am suffering an uncomfortable problem with TM scripts that depend on
Ruby and makes them unusable. Using for example Cmd-B in LaTeX
(toggle_style.rb -style=textbf), TM inserts instead:
no such file to load -- ubygems (LoadError)
Sometimes I fixed the problem renaming ~/Library/Application\ Support/
TextMate. Sometimes not.
I use an env
RUBYOPT=rubygems
- Juan F.
Hi all there
I am suffering an uncomfortable problem with TM scripts that depend on
Ruby and makes them unusable. Using for example Cmd-B in LaTeX
(toggle_style.rb -style=textbf), TM inserts instead:
no such file to load -- ubygems (LoadError)
Sometimes I fixed the problem renaming ~/Library/Application\ Support/
TextMate. Sometimes not.
I use an env
RUBYOPT=rubygems
- Juan F.
After a crash of my system disk yesterday and the ressurection of the
system today I'm getting the following error while trying to insert a
citation or label based on the current word:
\autoref{/tmp/temp_textmate.haeIjJ:4: command not found: kpsewhich -
show-path=tex
cha:auswahl_eines_loesungskonzeptes}
The thing is. It tells me about kpsewhich is not found but it was able
to insert the correct label.
When I fire up "which kpsewhich" in Terminal, I get the following
output:
> [Jan@iah] ~ > which kpsewhich
> /usr/local/texlive/2007/bin/i386-darwin/kpsewhich
Also I have no problem to compile my document.
Maybe it has something to do with PATH, but I'm not sure. Can anyone
give me a hint on this?
Thanks,
Jan
Am I correct in assuming that TextMate now supports synctex, and that
I need to download and install the latest LaTeX bundle in order to
have this functionality?
If so, how do I download/install this bundle?
Thanks
Geoff Vallis
I just grabbed the latest ruby.tmbundle from svn and put that in my ~/
Library/Application\ Support/TextMate/Bundles directory
When I try and run a test file with command-R I get the following
complaint
/Users/stu/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/
Support/RubyMate/run_script.rb:1:in `require': no such file to load
-- /Applications/Editors/TextMate.app/Contents/SharedSupport/Support/
lib/tm/executor (LoadError) from /Users/stu/Library/Application
Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:1
I have had a look around and sure enough can't find the files it is
referring to
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/executor"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"
I am on the cutting edge 1.5.7 (1464) version.
Stuart
> From: Trevor Harmon <trevor(a)vocaro.com>
> Message-ID: <AA646749-1963-48F8-BA06-2DEEB46200DF(a)vocaro.com>
>
> I was thinking it might be cool if TextMate had visual tabs like
> OmniWeb or Shiira:
>
> http://www.mathgamehouse.com/images/phillryu/shiira2full.png
>
> But after testing the idea I've decided it just doesn't work with
> text. Web pages with graphics can be distinguished at thumbnail size,
> but source code files can't.
Reminds me of this:
http://basildoncoder.com/blog/2008/03/21/the-pg-wodehouse-method-of-refacto…
Be well,
Will :-}
Hello,
Maybe I'm just not understanding how it works, but while in an HTML document
I wanted to insert a DocType. I pulled up the Insert Bundle item window
(Ctrl-Cmd-T) and tried typing "doctype" to see if the shortcut came up, but
it did not. I just looked at the window again, and I see, right in the first
page of items "Insert DocType", but when I start typing "doctype" it goes
away, not matching what I'm typing. Am I missing something?
Thanks
John
In TextMate, buffer tabs are automatic: A new tab is always opened
whenever you click on a file in a project drawer. After a half hour of
navigating source code, I suddenly find dozens of tabs open at the top
of my editor window, but I can only see a few of them. This makes the
tabs feature basically unusable.
In contrast, web browser tabs operate quite differently. They're
manual instead of automatic: A new tab doesn't open unless you
explicitly open one. Until then, new data is displayed in the current
tab. TextMate's tab feature would be much more useful to me if it
worked this way --- the way web browsers do.
Does anyone prefer the current (automatic) behavior?
Trevor
So,
I've just installed the AS3 bundle from the repository in TextMate and
thought I'd share the steps I had to go through in order to make it
work, partially so I have a document explaining what I had to do (if I
need to do it again) and to help others who might be stuck.
Message for Simon Gregory: This was the bundle I downloaded from the
repository so it's possible that the svn version is b0rked... :(
I have an up to date version of TM on Leopard, and I used the "Get AS3
Bundle.sh" script that I downloaded a short while ago. Unfortunately
I couldn't find the site where it came from but it just appears to
grab the latest version from the repository by svn so it can't do that
much.
First, I got the wonderful error dialog:
> The “ActionScript 3” bundle located in ~/Library/Application Support/
> TextMate/Bundles could not be loaded and will be skipped. The
> contained info.plist appears to be corrupt or missing.
What's going on here? No idea. So I looked at the plist file in
question and found what looked like a half failed diff at the bottom:
<<<<<<< .mine
... some txt
=======
... other text
>>>>>>> .r10513
This is present in a bunch of files, I have so far found it in
build_with_fcsh.sh and asd.rb. Anywho, I took that out of the plist
file, probably breaking it slightly but at least TM now loads the AS3
bundle.
Next I created a new, blank AS3 project. Make a more or less empty
class and "Build with FCSH". Nothing, no output, no error, no
feedback, nothing. Build with MXMLC, a window pops up telling me
there's 0 errors and a successful build, but no .swf file was produced
in the deploy/ folder. Try the "Build (custom)" option, it tells me
the script is not executable. Joy. So I run the supplied compile.sh
script manually by opening the script and pressing Apple-R to run it.
TM alerts me that the script is not executable, so I make it so. OK,
so now it runs.
However, still nothing coming out of mxmlc, still 0 errors. What
happens when I run mxmlc on it's own? I get this wonderful error:
-bash: ./mxmlc: /bin/sh^M: bad interpreter: No such file or directory
Joy. That error is familiar, usually found when running a binary
built for a different architecture, but that wasn't the problem.
mxmlc turns out to be a shell script that runs slightly different
commands for windows and unix. Turns out that the default file
supplied by Adobe is also in DOS encoding (funny line endings). So,
open the file in vim and type:
# vim ./mxmlc
:set ff=unix
:wq
And the script now runs mxmlc properly. I also had to chmod a+x in
Flex/bin/* as well.
OK, so building in mxmlc now works but I know that it's slow and I'd
rather use fcsh to do my compiles. So I try building with fcsh and
get even less reponse, no progress bar, no iTerm window, nada. OK,
stay calm...
So I check the encoding of the fcsh script supplied by Flex, it too
was in DOS format so I converted it back to Unix. That script now
fires up the fcsh compiler so that part worked. Next, why was the
build command silently failing? Open up the Bundle Editor and edit
the "Build (fcsh)" command to show output as HTML. This revealed a
syntax error in the build_with_fcsh.sh script. Find the script, open
it in vim and I found the same sort of failed diffs as I found in the
plist file.
This time I just copied the r10513 file over the existing one:
# cd "/Users/gaby/Library/Application Support/TextMate/Bundles/
ActionScript 3.tmbundle/Support/bin/"
# cp build_with_fcsh.sh.r10513 build_with_fcsh.sh
Now the script works, fcsh works, mxmlc works and I have finally got
a .swf file being output into the deploy folder. Sorry for the length
of this rant but my hope is that if anybody else is fighting with AS3
under TextMate, hopefully this might shed some light on problems
they're having.
Gaby
--
Being drunk is feeling sophisticated without being able to say it.
http://www.playr.co.uk/
Hi,
yesterday I installed TM plus some bundles on my new Mac. Among others
I also installed the R bundles. These bundles have some Ruby functions
which insert something into the current doc. Fine. But there's a
"problem" with the Pristine's bundle folder permissions.
I get for instance that warning:
... warning: Insecure world writable dir “DIR” in PATH, mode 040777
This means that the bundle folder has also set the write access rights
to group and others. The way to fix this is to execute: chmod og-w
'DIR' .
My question is whether this is a general thing; and if yes, whether it
could be fixed in TM internally?
Cheers,
--Hans
Hi,
I have a problem. I took the finite example coming from progress.rb to
figure out how to cancel the block running inside of
TextMate.call_with_progress.
If I have a TM Ruby doc with the code and press apple+R the Cancel
button works. If I have the same code in a tmCommand the Cancel button
does not work, even if I store the code as Ruby file somewhere.
Is this something which should be fixed in the future?
Is this my fault? If yes, how is the correct syntax or workaround?
Thanks in advanced,
--Hans
I'm building up a grammar for the Confluence wiki markup, and I'm
having trouble with tags that take a list of parameters.
Tags look like this (all strings are examples only):
{noparams}
{oneparam:key=10}
{twoparams:keyOne=value|keyTwo=2%}
{threeparams:keyA=a value|keyB=another value|keyC=a third value}
So the tag name can stand alone, or if it is followed by ':', it takes
a '|'-delimited list of key=value pairs.
When I use the grammar fragment at the end of this message, noparams,
oneparam, and twoparams are highlighted as I expect. When there are
three or more parameters, the first and last parameters are
highlighted as I expect, but the middle ones are highlighted as plain
entity.confluence.
I'm sure this is a defect in my match= regular expression, but I'm not
seeing it. Could someone enlighten me, please?
— F
{ name = 'entity.confluence';
match = '(?x:
\{
([-[:alnum:]]+)
(:(\w+)=([^|}]+)
(
\|(\w+)=([^|}]+)
)*
)?
\}
)';
captures = {
1 = { name = 'keyword.confluence'; };
3 = { name = 'support.confluence'; };
4 = { name = 'string.confluence'; };
6 = { name = 'support.confluence'; };
7 = { name = 'string.confluence'; };
};
},
I added a bundle for JSFL (Flash JavaScript API) to the review section
of the repository a few weeks ago. Personally I only ever really use
jsfl to batch process images, swfs, video etc, once a month or so but
even with my limited use am sure the bundles solid enough.
If anyone has had chance to test it and has any suggestions please let
me know (and hopefully I can actually get a bundle out of review...).
Cheers,
Simon
Hi,
I'm just playing with Oniguruma's nested levels etc. In principal it
works brilliant, BUT it could happen that the regexp engine runs in an
eternal loop with no chance to cancel that loop.
Example:
<html lang="en">
<body>
<div>
<div id="2">
<p>blah</p>
</div>
</div>
</body>
</html>
regexp: (one line!)
(?-i)(?<element>\g<stag>\g<content>*\g<etag>){0}(?<stag><\g<name>
\s*[^>]*>){0}(?<name>[a-zA-Z_:]+){0}(?<content>[^<&]+(\g<element>|[^<&]
+)*){0}(?<etag></\k<name+1>>){0}\g<element>
Place the caret within the p tag and find previous match (SHIFT+APPLE
+G) and repeat it. Fine this works. The same also works for find next
match.
But the regexp CANNOT handle up to now tags like <img src="foo">.
So if you have e.g.:
<html lang="en">
<body>
<div>
<img src="foo">
<div id="2">
<p>blah</p>
</div>
</div>
</body>
</html>
[ATTENTION TextMate will freeze!!!!]
place the caret inside of the p tag and press three time SHIFT+APPLE+G
and TM freezes. You only can "force quit". Attached is a part of the
error report.
Of course, this is a problem of the regexp but if one wants to develop
such a regexp such errors could appear. The question now is how to
interrupt such an eternal regexp loop??
To be honest I have no idea but maybe one could listen to the keyboard
event (APPLE+.) inside of the regexp function.
Cheers,
--Hans
Error report:
223 __Z18view_find_previousPN4text4viewE + 1075 (in TextMate) [0x9c719]
223 __ZN9oniguruma4findEPtiiPKNS_6ptrn_tEii + 115 (in TextMate)
[0xf6639]
11 _onig_search + 414 (in TextMate) [0x161bba]
1 _onig_is_in_code_range + 67 (in TextMate) [0x15c2c1]
1 _utf16le_mbc_enc_len + 22 (in TextMate) [0x16361a]
1 _utf16le_mbc_enc_len + 11 (in TextMate) [0x16360f]
1 _onig_is_in_code_range + 29 (in TextMate) [0x15c29b]
1 _onig_is_in_code_range + 31 (in TextMate) [0x15c29d]
1 _onig_is_in_code_range + 88 (in TextMate) [0x15c2d6]
1 _onig_is_in_code_range + 11 (in TextMate) [0x15c289]
1 _onig_is_in_code_range + 4 (in TextMate) [0x15c282]
1 _mem_is_in_memp + 4 (in TextMate) [0x15c249]
1 _mem_is_in_memp + 5 (in TextMate) [0x15c24a]
1 _utf16le_mbc_to_code + 17 (in TextMate) [0x163651]
8 _match_at + 3858 (in TextMate) [0x15d291]
7 _match_at + 10242 (in TextMate) [0x15eb81]
7 _match_at + 8800 (in TextMate) [0x15e5df]
7 _match_at + 3848 (in TextMate) [0x15d287]
7 _match_at + 3814 (in TextMate) [0x15d265]
6 _match_at + 8811 (in TextMate) [0x15e5ea]
6 _match_at + 339 (in TextMate) [0x15c4d2]
6 _match_at + 3842 (in TextMate) [0x15d281]
6 _match_at + 10259 (in TextMate) [0x15eb92]
5 _match_at + 8784 (in TextMate) [0x15e5cf]
5 _match_at + 6579 (in TextMate) [0x15dd32]
4 _match_at + 2121 (in TextMate) [0x15cbc8]
4 _match_at + 3834 (in TextMate) [0x15d279]
4 _match_at + 10216 (in TextMate) [0x15eb67]
4 _match_at + 6626 (in TextMate) [0x15dd61]
4 _match_at + 3825 (in TextMate) [0x15d270]
4 _match_at + 6599 (in TextMate) [0x15dd46]
3 _match_at + 341 (in TextMate) [0x15c4d4]
3 _match_at + 8795 (in TextMate) [0x15e5da]
3 _match_at + 11214 (in TextMate) [0x15ef4d]
3 _match_at + 3387 (in TextMate) [0x15d0ba]
3 _match_at + 8790 (in TextMate) [0x15e5d5]
3 _match_at + 8806 (in TextMate) [0x15e5e5]
3 _match_at + 3434 (in TextMate) [0x15d0e9]
3 _match_at + 2195 (in TextMate) [0x15cc12]
3 _match_at + 6614 (in TextMate) [0x15dd55]
2 _match_at + 11317 (in TextMate) [0x15efb4]
2 _match_at + 3816 (in TextMate) [0x15d267]
2 _match_at + 6593 (in TextMate) [0x15dd40]
2 _match_at + 299 (in TextMate) [0x15c4aa]
2 _match_at + 6590 (in TextMate) [0x15dd3d]
2 _match_at + 2108 (in TextMate) [0x15cbbb]
2 _match_at + 1446 (in TextMate) [0x15c925]
2 _match_at + 10232 (in TextMate) [0x15eb77]
2 _match_at + 3811 (in TextMate) [0x15d262]
2 _match_at + 6616 (in TextMate) [0x15dd57]
2 _match_at + 2198 (in TextMate) [0x15cc15]
2 _match_at + 10238 (in TextMate) [0x15eb7d]
2 _match_at + 10227 (in TextMate) [0x15eb72]
2 _match_at + 8798 (in TextMate) [0x15e5dd]
2 _match_at + 10143 (in TextMate) [0x15eb1e]
2 _match_at + 2084 (in TextMate) [0x15cba3]
1 _match_at + 16465 (in TextMate) [0x1603d0]
1 _match_at + 3408 (in TextMate) [0x15d0cf]
1 _match_at + 11320 (in TextMate) [0x15efb7]
1 _match_at + 6548 (in TextMate) [0x15dd13]
1 _match_at + 2146 (in TextMate) [0x15cbe1]
Hello,
which switch do I have to turn on to get more verbose debugging output
from the latex bundle?
I'm using pdftex as the typesetting engine?
Thanks,
Jan
I'm trying to get all my apps to use the same basic keystrokes. After a
random dice roll, I decided on command-{ and } for previous/next tab. But I
can't figure out what to put in KeyBindings.dict; the obvious,
"previousTab:" and "nextTab:", didn't work. Neither did
"selectNextTabViewItem:" and "selectPreviousTabViewItem:".
So:
1. Can someone tell me what the right action is? Or is it not bindable?
2. How could I have found the answer to #1 myself?
Thanks..
Jay Levitt
Hi all-
I got the syntax coloring for my Forth bundle completed yesterday, and
mocked up a little test to verify my understanding of building more
complex entities in a grammar:
<http://pastie.textmate.org/private/45g1m5nirfrnoig1fqyz9w>
<http://pastie.textmate.org/private/3qiprool4ryent1tbcukla>
The above is for the imaginary Forth-like language "ZZZ" and includes a
sample file. If anyone had any comments, suggestions or criticism of my
mockup, I'd be greatly appreciative.
Thanks!
Charles
Hi everybody!
Is there (in TextMate's built-in search) a solution for forming a replace
string for a variable directly followed by a number, ie. $15 (read: $1 and
5, without a space in between)?
Can this somehow be done or is reformulating the search string the only way
in such a case?
Thanks!
Chris
Changes to color schemes (modifications as well as new schemes) don't
save in TextMate. Bundle changes and font choice, etc. do save, so this
problem is specific to color schemes. Having to set my color scheme
every time I open TM is definitely a hassle.
Thanks,
Thomas Allen
TextMate User
Hi,
I've got rspec working in my project ("rake spec") ok. I've downloaded the
rspec bundles into TextMate however however when I go
Bundles/RSpec/RunSingleExample (or RunExamples) I get the following error
dialog that appears...
-----error-----
Missing the Rails 2.1.1 gem. Please `gem install -v=2.1.1 rails`, update
your RAILS_GEM_VERSION setting in config/environment.rb for the Rails
version you do have installed, or comment out RAILS_GEM_VERSION to use the
latest version installed.
---------------
Q1- Any idea how to solve?
Q2 - Why does TextMate not see that (a) the environment.rb file has this
variable set correctly to 2.1.1, and (b) the rails 2.1.1 gem exists as I
downloaded it?
Q3 - How can I confirm what the environment variables are when this test
from within TextMate?
Q4 - Where would I normally set the environments variables for TextMate?
Q5 - What are the relevant TextMate environment variables that exist that
may need to be set?
Macintosh-2:~ greg$ rails -v
Rails 2.1.1
Macintosh-2:~ greg$ ruby -v
ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin9.3.0]
Macintosh-2:~ greg$
Macintosh-2:~ greg$ gem -v
1.2.0
Macintosh-2:~ greg$
Macintosh-2:~ greg$ cat ~/.profile
PATH=$PATH:/usr/local/bin
TERM_PROGRAM=iTerm.app
test -r /sw/bin/init.sh && . /sw/bin/init.sh
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0
Macintosh-2:~ greg$
Macintosh-2:~ greg$ cat /etc/profile
# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
Macintosh-2:~ greg$
Thanks
--
View this message in context: http://www.nabble.com/can%27t-run-RSpec--%28get-%22Missing-the-Rails-2.1.1-…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
This issue has already been discussed in the lists, but I didn't find any
conclusive answer. Would it be possible to add in the LaTeX bundle the
option to watch a latex file with latexmk (ie with the -pvc option)? I kind
of understood the advantages of the Watch bundle (mainly speed?) but still
want latexmk to do the job for me (to update cross-references and included
documents like figures).
For the moment, I am using
http://www.nabble.com/LaTeX-Watch-td9730030.html#a9814889 Martin's tip , but
I would like a better integration (like stopping watching), and anyway think
it would be worth being included in the standard LaTeX bundle.
--
View this message in context: http://www.nabble.com/LaTeX-Watch-with-latexmk-tp19158764p19158764.html
Sent from the textmate users mailing list archive at Nabble.com.
I use the nightly builds of WebKit and I am having no luck getting CMD-
R to refresh it. I have altered the Refresh Running Browsers Command
in the Bundle Editor to:
# Check if WebKit is running, if so refresh
ps -xc|grep -sq WebKit && osascript -e 'tell app "WebKit"' -e
'activate' -e 'do JavaScript "window.location.reload();" in first
document' -e 'end tell'
Any suggestions would be welcome.
Cheers,
Eric
Again, I *tried* to report this as a bug, but couldn't.
If I hurriedly type:
if ( foo ) {
bar
}
Upon typing the } Textmate (with autoindentation on) changes it to this:
if ( foo ) {
bar
}
instead of:
if ( foo ) {
bar
}
or better yet:
if ( foo ) {
bar
}
The "closed curly brace must reduce indent level by one" is a bit too
simplistic and I find it actively annoying.
--
View this message in context: http://www.nabble.com/Bug-Report-Feature-Request----Bad-Indentation-Heurist…
Sent from the textmate users mailing list archive at Nabble.com.
I was playing `textmate` gem.
I noticed that my bundle I made for fun <http://github.com/samuraicoder/samuraicoder-tmbundle/
> was not findable using `textmate remote` command.
Am I missing something? Maybe naming convention is wrong?
Or are they manually checked by human to avoid miscellaneous bundles
like mine?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Whenever I try to run a Python script using PyMate, I just get the
following error message:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:68:in
`initialize': wrong number of arguments (2 for 1) (ArgumentError) from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:68:in
`new' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:68
I've tried updating bundles and the support folder to no avail. I'm
using the cutting-edge version of TextMate.
Any advice on how to fix this would be greatly appreciated.
Thanks,
Chris
--
Follow the path of the Iguana...
http://rebertia.com
hello.my question is if can i somehow change the ctrl+w shortcut with
command+w, or maybe command+e wich i see is doing nothing.
i never close windows, but the current ctrl+w i'm using very often, and is
not very confortable for me the combination.
--
Cristi
www.ralcr.com
I tried to report this as a bug via the website but I'm being flagged as
spam, even when logged in. (Meta bug?)
Anyway:
If I double-click on the && in the following line of text:
if( transform.position.z > CameraTransitionAltitude && !AboveCamera.active
){
I select " && !" which is definitely not what I want or expect.
I've had similar oddness with double-click selection elsewhere but this set
me off.
--
View this message in context: http://www.nabble.com/Bug-Report----Double-click-selection-tp19295446p19295…
Sent from the textmate users mailing list archive at Nabble.com.
Hi
I've been trying to write an AppleScript to save any open TextMate
file into a specific folder with a filename constructed out of the
current date and time.
There is no problem creating the filename but I can't work out how to
get the path and filename into the TextMate file to be saved.
In the script below I've left out the bit that creates the file_name.
as that bit works fine. The problem is the line "save to file
file_path" which doesn't work :(
It does work with that other text editor for the Mac but of course I
don't use that one anymore :)
Thank you for any assistance you can give.
set file_path to "Macintosh HD:Users:patrick:Temporary:" & file_name
tell application "TextMate"
activate
if document 1 exists then
tell document 1
save to file file_path
end tell
else
display dialog "No open file"
end if
end tell
Patrick
http://www.patrickjames.co.uk
On Sep 2, 2008, at 2:45 AM, Allan Odgaard wrote:
|| [...]
|| and this unexpected result when run from PyMate:
|| PyMate r8111 running Python 2.5.2 (/usr/bin/env python) >>> loc.py
|| C/en_US.UTF-8/C/C/C/C
|| 282929992
| TM itself sets LC_CTYPE since it is only concerned about character
| encoding for the processes it launches (for stdin/out).
| If you want to have LC_ALL set for the processes it launches, set it
| in Preferences ? Advanced ? Shell Variables.
If TM were setting LC_CTYPE correctly, wouldn't PyMate produce the same output (stdout) as I saw in the shell?
Dave
Using 1.5.7 (1464), I realized that the command-shift-A shortcut for Add
New Files... doesn't work to add files to a project. I just get a
system beep.
I've seen no discussion of this here, aside from a 2005 post that said
it should start working once you've manually displayed the menu, so I'm
guessing this isn't a common problem. Yet I'm seeing it on two
different Macs. Command-Shift-N, which is on the File menu as well as
the gear menu, does work. Command-shift-G, which is also on the gear
menu (and not any other menu), doesn't work either.
Is this in fact a known problem? Is there a workaround, other than
QuicKeys/etc? I took a look at KeyBindings.dict, but I'm not sure if I
can add command-keystrokes that way, or what the setting would be
called, etc.
Jay Levitt
I've recently begun learning Erlang, and in the process made some
updates to the Erlang bundle that might be useful to others. I've
created an AppleScript that can perform basic remote control of a
Terminal window running an Erlang shell -- enough to compile a source
file at least.
There's a short screencast and download information on my blog:
http://imbriaco.com/braindump/articles/first-post-erlang-and-textmate/
If the original author of the Erlang bundle reads this, I'd love to
contribute this back to the official bundle. Feel free to contact me
off list.
-Mark
I have asked about this in the obvious places (pgf help forum and
comp.text.tex) and after some initial help, the help has dried up. As
this is going to be a specifically Mac users here, maybe the problem
may be more obvious.
When I try and compile this code (from the manual):
\documentclass[a4paper]{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}%
\begin{axis}[
xlabel=$x$,
ylabel=$\sin(x)$,
name=an axis,
]
\addplot plot [id=sin] function{sin(x)};
\end{axis}
\end{tikzpicture}%
\end{document}
I get these errors:
Latex Error: ./PDFPlotTrial2.tex:11 Package pgfplots Error: Sorry, the
gnuplot-result file 'PDFPlotTrial2.sin.table' could not be found.
Maybe you need to enable the shell-escape feature? For pdflatex, this
is '>> pdflatex -shell-escape'. You can also invoke '>> gnuplot
PDFPlotTrial2.sin.table' manually..
! Package pgfplots Warning: You have a plot with empty range.
Replacing it with default and clearing plots.
Latex Error: ./PDFPlotTrial2.tex:13 Extra }, or forgotten \endgroup.
Latex Error: ./PDFPlotTrial2.tex:13 Missing } inserted.
Latex Error: ./PDFPlotTrial2.tex:13 Extra }, or forgotten \endgroup.
Latex Error: ./PDFPlotTrial2.tex:13 Missing } inserted.
Latex Error: ./PDFPlotTrial2.tex:15 LaTeX Error: \begin{tikzpicture}
on input line 5 ended by \end{document}.
I have run pdflatex --shell-escape PDFPlotTrial2.tex from terminal
(which seemed to work as I got pages of text appearing with no obvious
error messages) and I have upgraded to version 2 of pgf. GNUPlot was
installed with fink and runs OK from typing gnuplot in terminal.
I am now stuck, and no idea what to try next. I am pretty new to this
so it could well be something so obvious that no one is suggesting it.
Can anyone help.
Many thanks,
Graham
Hi all-
I'm working on a language grammar for Forth, and am hoping I could get
some advice or pointers for my work. I've read the TextMate manual, and
James Gray's fine book, although I'm sure I haven't extracted every
nugget of info from those texts.
As some of you may be aware, Forth is a stateful language, and there
are certain keywords that are valid only when Forth is compiling. For
example, some words, like IF, THEN and ELSE, can be used only within a
word (function) definition.
So it would be nice to capture this in the scope, and assign these
compile-only words to an "invalid" scope when they are used outside a
function definition. The question is, how to (best) do this?
I've looked at the C language definition a bit, and clearly there are
two modes there: "preprocessing", and "not". But with Forth, I should
be able to assign an invalid scope to the top-level; in essence, have
an invalid scope for source.forth.
Any thoughts?
Best, Charles
Hi,
I've just upgraded the standard Java bundle and TM's support lib for
executor stuff.
I have the following tiny java script:
import java.io.*;
public class test {
public static void main(String args[]){
System.out.println("Hello World");
}
}
saved as test.java
If I compile and run it on a console, no problem.
If I use the Java bundle's "Compile & Run" I get this:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
executor.rb:87:in `run': undefined method `call' for nil:NilClass
(NoMethodError) from /Applications/TextMate.app/Contents/SharedSupport/
Support/lib/io.rb:41:in `call' from /Applications/TextMate.app/
Contents/SharedSupport/Support/lib/io.rb:41:in `exhaust' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/io.rb:
41:in `each_line' from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/io.rb:41:in `exhaust' from /Applications/
TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb:165:in
`run' from /Applications/TextMate.app/Contents/SharedSupport/Support/
lib/tm/executor.rb:99:in `run' from /Applications/TextMate.app/
Contents/SharedSupport/Support/lib/tm/executor.rb:198:in
`process_output_wrapper' from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/tm/executor.rb:98:in `run' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
htmloutput.rb:134:in `call' from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/tm/htmloutput.rb:134:in `show' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
executor.rb:83:in `run' from /Applications/TextMate.app/Contents/
SharedSupport/Bundles/Java.tmbundle/Support/bin/javamate.rb:32
I didn't set up any env variables.
I'm running a Intel MacOSX 10.5.4 (very fast;) with TM Version 1.5.7
(1466)
With the 'old' Java bundle ("Compile & Run single script") it works.
Any help available?
The new bundle has a nice feature. "Compile & Run (with args)"
I couldn't try out it yet but if I have a folder containing my Java
script and aFile, and I want to do something with that aFile. Is it
possible to enter only the filename aFile as argument without the
absolute path. In other words, does run the script in that folder?
Many thanks in advance,
--Hans
This Python code:
#!/usr/bin/env python
# encoding: utf-8
import sys
import os
import locale
def main():
print locale.setlocale(locale.LC_ALL, '')
print locale.format("%d", 282929992, grouping=True)
if __name__ == '__main__':
main()
produces the expected result when run under Python 2.5.2 from bash
shell on Mac OS X:
en_US.UTF-8
282,929,992
and this unexpected result when run from PyMate:
PyMate r8111 running Python 2.5.2 (/usr/bin/env python) >>> loc.py
C/en_US.UTF-8/C/C/C/C
282929992
Notice that the integer is formatted into comma-separated groups when
run from the shell, but not when run from PyMate.
Changing this line:
print locale.setlocale(locale.LC_ALL, '')
to this:
print locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
gives the expected results in PyMate.
Dave
Hi all-
I'm trying to match character constants of the form:
&a &B &!
'c' 'D' '!'
"e" "F" "@"
^G ^h ^+
within the match field of a language grammar.
If I use the search dialog box, this regexp will work for characters
enclosed in single apostrophes:
((?<=^)|(?<=\s))(([&^]\S)|(\'\S\'))(?=\s)
But it doesn't work when I get it into the match field, I suspect
because of the framing apostrophes, as in:
{ name = 'constant.character.forth';
match = '((?<=^)|(?<=\s))(([&^]\S)|(\'\S\'))(?=\s)';
},
Any ideas about what I'm doing wrong, or how I can solve my trouble?
I should also point out that the ungainly:
((?<=^)|(?<=\s))
seems to be necessary inside a language grammar as (?<=\s) alone
doesn't work, although it does in the search dialog. It matches within
a line, but not at the beginning of a line. It may be that this is only
the case with begin/end matching, and not single lines...
Thanks! Charles
The syntax highlighting for LaTeX math mode is very good. I have
noticed, however, a discrepancy in the way the highlighting and the
automatic delimiters are treated. I mean, normally typing a $ will
automatically generate a second one (after the cursor) to end the math
mode. However, I have found that this fails when a command in math
mode spans multiple lines. That is, if there is a hard return in math
mode, then the delimiters behave incorrectly eventhough the syntax
highlighting is correct.
Here's an example:
$math stuff
that spans two lines$ when I put a $ here it thinks I'm closing the
math mode from the first dollar sign on this line of code rather than
thinking I'm starting a new math mode.
Keith Penrod
Hi there,
Some people are working on updating Python and HTML-related bundles
for Django, prior to Django's 1.0 release (http://www.bitbucket.org/bkerr/django-textmate-bundles/
), and I've got a bundle command problem where I'm hoping someone can
point the way.
The idea is to provide some kind of automation for importing commonly-
used functions and classes from Django's source code. Many of these
objects are hidden fairly deep inside one module or another, and it's
easy to forget which, leading to long tromps through the source code.
I'd like to provide a command, perhaps similar to the HTML bundle's
code completion command, which lets people either a) hit command-
escape after the name of an object and view/paste its import path or
b) start typing 'from django.', hit a key combo, and see a list of
child modules, ideally letting them drill down into the modules until
they find the object they're looking for.
I haven't written complicated bundle commands before and am not sure
how to start this, in particular whether to go with route a or b. I
can either manually build up a dictionary of objects and their import
paths and then maintain that dict as Django evolves, or I can try for
a command that actually searches Django's source code for the
definition of an object. I'm leaning towards the former for two
reasons: Having a list of objects would also serve for syntax
highlighting, and also many objects are defined in one module, then
imported into the __init__ file of another. They're 'supposed' to be
imported from that second module, but a search function wouldn't know
that.
Anyway, any general pointers and issues to consider would be much
appreciated. I'd be writing the script in Python, naturally!
Thanks,
Eric
Using the latest Java bundle, strings are not highlighted correctly:
public class Foo
{
void bar(Object baz)
{
throw new RuntimeException(baz.toString() + "; void");
}
}
Trevor
I have a problem with Java Bundle. I can't create a new document from
templates.
Steps to reproduce:
1. From "File" menu, choose "New From Template..."
2. And choose a template from the selection.
Environment:
* The latest svn version of Java Bundle
* TextMate Version 1.5.7 (1464)
* Mac OS X Leopard 10.5.4
I was reading the code for the templates in Bundle Editor, but I don't
know what's happening.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi all-
Is there a way to dump the current scopes out? I'm thinking like the
"Show keyboard shortcuts" in the TextMate bundle?
Or is there something that documents the relationship between the
various scopes, and the syntax colors?
For example, there's an appearance attribute named "Preprocessor
Directive", but what scope would lead to something being colored with
that attribute?
I think also I've noticed some conflicting documentation: Is it
<comment.block.documentation> -or- <comment.documentation>?
Thanks as always, Charles
Hi all-
In section 12.4 of the manual, under the comment root group, there are
references to further specifications of the line comment. There's an
interesting italicization of the "character" type, which creates
ambiguity for me.
Does this mean that I should specify:
comment.line.character.<language> -or-
comment.line.<character>.<language> ?
I'm thinking about Forth's backslash \ comments:
comment.line.character.forth -or- comment.line.\.forth
Thanks!
Charles
On Fri, 29 Aug 2008 11:14:45 -0500, James Gray wrote:
> There's no reason to use a shell script. Ruby supports this directly:
>
> ./configure … --program-suffix=18
>
> That would add a 18 suffix to all programs built: ruby18, irb18, etc.
Hi James-
Nice tip, but I was referring to a shell script that would jiggle some
symbolic links in /usr/local/bin so that I could switch "ruby" between
1.9.0, 1.8.6 and MacRuby...
Best, Charles
Hi
I'm not as proficient with text editors as many on this list.
BBEdit has a very handy thing called "Includes"
The easiest way for me to describe them is simply to copy and paste
from BBEdit help:
An include file, or just an "include," is a special form of
placeholder
whose substitution happens to be the contents of another file.
If you
have used C or certain other programming languages, you may
already be
familiar with the concept. Using includes, you can reuse
standard bits
of text content or HTML markup in several templates or clippings
entries without having to revise all of those individual files
whenever
you revise the included text.
Apologies for not only mentioning BBEdit but pasting in something from
the help :)
The reason I want to use includes like this now is that I have quite a
large web-site which uses PHP includes a lot.
I have been asked to put this web-site on a CD and of course the
problem is that a CD doesn't have any PHP.
So, as you have probably guessed, I need to convert the web-site
changing all the PHP includes into the actual chunks of HTML in the
files supplying those PHP includes.
I know that with BBEdit I would do a find/replace changing the PHP
includes in BBEdit includes and do it that way.
However I haven't used BBEdit for quite a while now because I tend
always to use TextMate now of course.
I'm wondering if I can do this in TextMate?
I've been doing searches through the excellent "TextMate: Power
Editing for the Mac" with "includes" and "placeholders" but it doesn't
turn up a description of something similar.
Thank you for any assistance you can give.
Patrick
http://www.patrickjames.co.uk
i've been using textmate for a few months now. i'm a vim convert... ;-)
anyway, i've found a replacement for almost everything except vim's
ability to hit ctrl-o and ctrl-i to go forward and backward in the
"jump history". does anyone know how to accomplish this in textmate?
or maybe just jump back to previous position? i know bookmarks can do
basically the same thing...it's just nice to have when you realized
you forgot to set a bookmark.
thanks.
chad
Let me start by saying that I couldn't live without TextMate...it's the
one program that made my switch from the Windows world (a year and
counting! :) ) permanent. I have just a couple of issues I am looking
for guidance on however.
Firstly, when building Wordpress themes for clients, I generally start
with three files, for which I have my own custom TextMate templates. I
was wondering if there is a way to automatically create these three
files (with correct filenames if possible) from my templates. Ideally,
this would be bound to a keystroke string (command-shift-N would be
nice, since the muscle memory is already there for that string), but
mousing it from the menu would work too.
I had first thought of using a macro, but apparently, you can't use a
macro to create a new file.
Second, the keyboard shortcut for Save As stopped working some time
ago. I thought it might be an issue with a buggy install of Tiger, but
even after upgrading to Leopard (via a clean install), I still don't
have the ability to use the keyboard shortcut. I'm pretty sure it's not
a conflict with the keystroke string being redefined by a bundle or
anything (I've gone through all the bundles I have active, and nothing
is using it), so I'm at a loss.
Any ideas?
Thanks,
Keith
--
Keith Solomon - ksolomon(a)gmail.com
My Blog - http://reciprocity.be/
My Flickr - http://www.flickr.com/photos/zarath0s/
> I'm not seeing the behavior you describe, but this may help me to
> figure out
> what is going on.
>
> Run the following command in your terminal window.
>
> defaults write com.macromates.textmate latexDebug 1
>
> Then run typeset & view again from TextMate. This may help identify
> where
> the delay is coming from. Please send me the output in an offlist
> email
> and if you can, identify where the delays are.
>
> After you have run typeset & view with debug on you can turn it off
> again
> with:
>
> defaults write com.macromates.textmate latexDebug 0
Brad,
Thank you for your message. I apologize for the delay, Mail.app
decided that texmate-list was spam.
I will send you the information in a private email for interest, but
the problem seems to have cleared itself up. In the meantime, I had
removed some unwanted bundles, reset textmate, etc. and now when I
typeset the document of interest, it is nearly instantaneous.
Cheers,
Brian
When I try to start a ruby script, out of
textmate with "#!/usr/local/bin/ruby" which
is the wrong path, I get an error.
So I changed /Library/Application\ Support/TextMate/Support/lib/tm/
process.rb
around line 101 to
if ! File.executable?( cmd[ 0 ] )
puts "Bashbang #{cmd[0]} seems to be not executable"
return [ "Error!", "" ]
end
That's sub-ideal because the error message is written with the puts.
Maybe there is a better way doing this.
Maybe it's helpful
Regards
Karl-Heinz
Hey guys,
I am new to TextMate. I love this application, but some things I miss.
1. How do I reformat a text paragraph to be within a set width, like
80? On TextPad, on Windows, you could do that easily by setting the
default text width to 80, and reformatting the paragraph. I can't
find a similar 'text width' setting in TextMate. Where is it hidden?
Does someone have a command to do this? I can write my own, just show
me a similar example.
2. I have a single file of dairy-like entries. Before I start
writing, I want to timestamp each entry. I am looking to insert the
following snippet:
"==========
YYYY-MM-DD HH-MM-SS
"
How do I do that?
I am aware of the timestamp command in the Text bundle but that only
inserts the calendar date, not the time, and I don't know how to add
the horizontal break before it.
3. I must say whereas the manual is very easy to read. I find it hard
to find out how to quickly implement what I need.
Thank you all. I am trying to figure out how to do things the
textmate way. Apologies if I am clogging your mailbox
Ahmed
Hi-
Would someone be willing to upgrade rcodetools to the recent 0.8.0
version in the svn Ruby.tmbundle? It fixes my troubles with Ruby 1.9,
and it would make my svn updates easier:
svn: Directory 'Support/vendor/rcodetools/test/data/.svn' containing
working copy admin area is missing
Best, Charles
I have a project that uses the GNU automake system's Makefile.am files - for
some reason textmate is ignoring the file. I have checked file and folder
patterns and there is nothing that should preclude the file. Has anyone
else seen this? I there some other setting that might tell textmate to
ignore Makefile.am files?
Thanks,
-- dv
--
View this message in context: http://www.nabble.com/Makefile.am-tp19026092p19026092.html
Sent from the textmate users mailing list archive at Nabble.com.
At work, I always connect to network drives. However, when I try to open my
Macbook pro at home, it always hangs.. It opens a default project window and
just sits there. Please note that I am connecting to the same servers via
VPN client. Here is a sample:
Analysis of sampling pid 1355 every 10.000000 milliseconds
Call graph:
100 Thread_0f07
100 start
100 _start
100 NSApplicationMain
100 -[NSApplication run]
100 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
100 _DPSNextEvent
100 AEProcessAppleEvent
100 aeProcessAppleEvent
100 dispatchEventAndSendReply(AEDesc const*, AEDesc*)
100 aeDispatchAppleEvent(AEDesc const*, AEDesc*,
unsigned long, unsigned char*)
100 _NSAppleEventManagerGenericHandler
100 -[NSAppleEventManager
dispatchRawAppleEvent:withRawReply:handlerRefCon:]
100 -[NSApplication(NSAppleEventHandling)
_handleCoreEvent:withReplyEvent:]
100 -[NSApplication(NSAppleEventHandling)
_handleAEOpen:]
100 -[NSApplication
_sendFinishLaunchingNotification]
100 -[NSApplication
_postDidFinishNotification]
100 -[NSNotificationCenter
postNotificationName:object:]
100 -[NSNotificationCenter
postNotificationName:object:userInfo:]
100
_CFXNotificationPostNotification
100 __CFXNotificationPost
100 _nsnote_callback
100 -[AppDelegate
applicationDidFinishLaunching:]
100
+[OakCreateSymbolicLinkWizard sharedInstance]
100
-[OakCreateSymbolicLinkWizard init]
100
-[OakCreateSymbolicLinkWizard setupDestinationPaths]
100 fgets
100 __srefill
100 read
100 read
100 Thread_1003
100 _pthread_body
100 text::view::tokenize_filter::worker(void*)
100 text::view::tokenize_filter::actual_worker()
100 semaphore_wait_signal_trap
100 semaphore_wait_signal_trap
100 Thread_1103
100 _pthread_body
100 CMMConvTask(void*)
100 pthreadSemaphoreWait(t_pthreadSemaphore*)
100 semaphore_wait_signal_trap
100 semaphore_wait_signal_trap
Total number in stack (recursive counted multiple, when >=5):
Sort by top of stack, same collapsed (when >= 5):
semaphore_wait_signal_trap 200
read 100
Sample analysis of process 1355 written to file /dev/stdout
Sampling process 1355 each 10 msecs 100 times
member57006856(a)nybella.com
--
View this message in context: http://www.nabble.com/TextMate-hangs-when-working-from-home-tp19102829p1910…
Sent from the textmate users mailing list archive at Nabble.com.
Greetings, I recently purchased a new computer and am migrating over
to it. I use latex extensively within textmate, and I have never had a
problem with the latex bundle before. With the new machine, I can type
'pdflatex file.tex' at the command line and it prepares the file in
less than 1 sec. If I run "Typeset & View (PDF)", it takes over 30
seconds before the process begins, then it successfully generates the
pdf.
For completeness:
1) Edit latex file
2) Select "Typeset & View (PDF)"
3) Status window appears with spinning wheel
... 30 seconds pass ...
4) latex console output appears in the window: no errors
5) PDF appears in preview
What I cannot figure out is why this initial delay is occurring. The
same delay occurs with bibtex from textmate as well.
Any suggestions? I confirmed the preferences, etc. and nothing is out
of the ordinary. Again, running the command line has no delay in
starting either pdflatex or bibtex.
Thanks for your help,
Brian
It appears that Ruby 1.9 isn't happy with the "Run Script" (command-R)
in the ShellScript.tmbundle included with TextMate Version 1.5.7
(1436). Or, that if you have the recent Ruby.tmbundle checked out from
SVN, you'll need the ShellScript.tmbundle as well.
I got:
(erb):30:in `concat': character encoding differ (ArgumentError)
from (erb):30:in `html_head'
from /usr/local/lib/ruby/1.9.0/erb.rb:743:in `eval'
from /usr/local/lib/ruby/1.9.0/erb.rb:743:in `result'
from /Library/Application
Support/TextMate/Support/lib/web_preview.rb:117:in `html_head'
When I ran shell scripts from TextMate in Ruby 1.9. This stems from the
left and right single quotation marks used in the Textmate 1.5.7
command to frame the window title: ‘Run <filename.sh>’
The issue is already fixed in the SVN, so simply checking out the
newest version of ShellScript.tmbundle seems to fix the problem.
Best, Charles
Hi all-
I'm monkeying with the Ruby and Support bundles to get them to work
with Ruby 1.9, and have found an issue that would profit from some
advice, aside from my general newness to Ruby and TextMate.
I've got Ruby 1.9 installed in /usr/local, so from the command line,
it's pretty easy to invoke the stock Leopard 1.8.6 with
"/usr/bin/ruby". MacRuby, which interests me greatly, is another issue.
I don't know if it plans to stay as "MacRuby" or not. (I'd guess "yes"
for the foreseeable future.)
For a while, I regarded the static TextMate variable TM_RUBY as an easy
way to specify which Ruby I wanted running under TextMate. However,
I've noticed it will affect the "Run" (^R) command, but has no effect
on "Update Markers" (Shift-command-^E). I assume this is because the
rcodetools xmpfilter.rb file begins with "#!/usr/bin/env ruby", which
has the effect of overriding TM_RUBY.
I grep'ed and found 38 (varied) occurences of "#! ruby" in the Ruby
bundle, and another 10 occurences in the Support bundle. Some of these
are under the direct control of TextMate programmers and contributors,
but others, such as rcodetools, represent a library for a wider
user-base than just TextMate.
So what to do? I imagine the smart folks on this list are aware of the
issue, but it's perhaps not a front-and-center item just yet. I'd
appreciate whatever thoughts exist on the subject, as I'm likely to
make changes, but wish to do so in a generally useful fashion.
Thanks, Charles
El 25/08/2008, a las 8:51, textmate-request(a)lists.macromates.com
escribió:
> Message: 3
> Date: Sun, 24 Aug 2008 18:20:22 +0200
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: Opening Ruby Headers
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <F30AFE9C-7991-42B7-B703-B9955B7335DE(a)textmate.org>
> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
>
> On 24 Aug 2008, at 17:16, Juan Falgueras wrote:
>
>> I have extended my old C/C++ headers opener to Ruby. I have
>> associate it to Shift-Cmd-D as in the classic MPW ;)
>
> There already is a header opener on ??D scoped to Ruby.
I finally have found the place you said, Shift-Cmd-D was (I did
mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles
svn co http://macromates.com/svn/Bundles/trunk/Bundles/Ruby.tmbundle
and reload bundles in Ruby. It has been the first time I have done
this. Ok.
I've found this for "Open Require"
#!/usr/bin/env ruby
file = STDIN.read.sub(/\A(["'])(.*)(\.rb)?\1\z/, '\2.rb')
dir = $:.find { |d| File.exist?(File.join(d, file)) }
if dir && file then
ENV['FILE'] = File.join(dir, file)
%x{ "$TM_SUPPORT_PATH/bin/mate" "$FILE" }
else
puts "Could not find include: ‘#{file}’"
end
The result of exec it on a simple line as:
require 'test/unit'
is
Could not find include: ‘test/unit
’
shown as tool tip.
Clearly bad. Not only it looks for files badly, it also ignores the
places where ruby use to look for its required.
Although the rest of ruby package contains useful things.
(moreover, the scope in the command was bad, it was:
source.ruby meta.require string.quoted
without commas, and it was necessary for me to insert commas to make
it work)
- juan falgueras
In Ruby.tmbundle/Support/RubyMate, when I run the file "test.rb" using
the command-R key combination in TextMate, the HTML window produces:
Library/Application
Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:65:in
`block in ': undefined method `map' for "that\xE2\x80\x99s
nice\n":String (NoMethodError) from /Library/Application
...plus the call chain.
When I rename the file to "bigfoo.rb", command-R functions correctly,
although I get some method errors as part of the HTML display; a
different issue.
Line 65 of run_script.rb, and also line 92 ("out.join"), seem to be
expecting an Array, but my printing out the class of the argument "str"
indicates it's a string.
As I said, I'm a newbie to Ruby, so I'm not really confident of my
analysis here. One could change "str.map" to "str.each_line", but then
I'm not sure what to do with "out.join", unless it's simply to return
"out" at that point.
Or maybe I'm completely off-base.
Best, Charles
Situation:
1. I am running Firefox
2. I edit an html file
3. I press cmd-R
Result:
Firefox comes into focus, a new tab has been opened and nothing shows
there.
If I run Safari, everything works as it should.
Any suggestions?
Thanks,
Christopher
*****************************************************
Department of Computer Science, University of Sheffield
Regent Court, 211 Portobello Street
Sheffield S1 4DP UNITED KINGDOM
Web: http://www.dcs.shef.ac.uk/~kiffer/
Tel: +44(0)114-22.21967 Fax: +44 (0)114-22.21810
Skype: christopherbrewster
SkypeIn (UK): +44 (20) 8144 0088
SkypeIn (US): +1 (617) 381-4281
*****************************************************
Corruptissima re publica plurimae leges. Tacitus. Annals 3.27
Hello everyone,
I find myself reformatting long file of datas using the Find/Replace dialog
box in combination with RegExp (very powerful !).
But… I would love to have an undo button to undo whatever replacement I just
made. Right now, if I make a mistake in a replacement, I have to close my
file without saving and do it again from the beginning…
Hope this would be easy to implement…
Thanks in advance.
--
View this message in context: http://www.nabble.com/-FeatReq--Undo-in-Find-Replace-tp19140123p19140123.ht…
Sent from the textmate users mailing list archive at Nabble.com.
> $math stuff
> that spans two lines$ when I put a $ here it thinks I'm closing the
> math mode from the first dollar sign on this line of code rather than
> thinking I'm starting a new math mode.
This works for me. Don't override the default LaTeX bundle?
Best wishes
David
----
David F. Snyder
Department of Mathematics
Texas State University
dsnyder(a)txstate.edu
Hi all,
I recently joined a small Java development team. Everyone here is
using Eclipse, and I'm the only TextMate user. They're all ganging up
on me, trying to make me switch to Eclipse. And I must say they do
have a point: For Java development, Eclipse is simply a more
productive environment than TextMate. It can do some truly amazing
code completion and refactoring acrobatics, and debugging is simply a
matter of setting a breakpoint and hitting the Go button. The complete
feature list is here:
http://help.eclipse.org/ganymede/topic/org.eclipse.jdt.doc.user/tips/jdt_ti…
Now, I realize that TextMate is an agnostic text editor and not a Java
IDE, so I can forgive the lack of debugger integration. And some of
the simpler code completion stuff might be replicated with the right
snippet or macro. But there is one feature in Eclipse of which I am
green with jealousy: navigation across source code files.
For example, you can put the cursor over a variable, class name, or
whatever, then hit F3 to automatically navigate to wherever it is
declared. You can instantly jump from a method invocation to its
implementation, for example. You can also easily navigate across
complex class hierarchies, jumping from a class definition to its
parent, then its grandparent, and so on.
This is so much quicker and easier than anything TextMate provides for
project navigation. The closest thing I could find was TmCodeBrowser,
but it only works on a single file. It's kind of useless for projects
like mine with several hundred classes.
Have there been any attempts at creating a TextMate bundle or plugin
that would allow the kind of source code navigation I'm looking for?
If not, does anyone have some suggestions on how I would go about
writing my own? (It would be nice to have some kind of generic
framework for this feature, since it would apply to almost any
language in TextMate, not just Java.)
Trevor
Hi, all
I plan to use textmate as my primary editor for my personal use, such
as write some open source code and document. I decide to buy a
textmate license, so is non-commercial license ok for this situation?
I am not a rich man, and I really want this 15% discount. Also I have
the question that, are there any limit features of a non-commercial
license?
Regards,
Steve
Hello All
For my work, I have to regularly delete lines in a range. I can do it in VIM
using:
:2,4d
Is there anything similar to this in TextMate?
--
Ritesh
http://www.riteshn.com
I often have to code / edit files in Linux. So, I'm looking for an editor
with the following TextMate features:
1) The ability to *easily* use a dark background. For a definition of easy,
read: not Jedit (at least, it was hard 2-3 years ago when I last did it . .
I had to change every syntax type), and not emacs (same reason)
2) Has the same keys that TextMate uses -- mostly.
3) Syntax Highlighting
4) Fast
Any takers? Or, am I resolved to be typing <esc>:wq into every document I
ever edit with TextMate :)
-Dave
There is a bug - or at least I think it is a bug - in either Textmate
or Spaces. I'll admit that I am a late convert to Spaces, since I
find for most purposes the more traditional model of hiding
applications suits me better. However:
If I have one Textmate document open on one "Space" and another open
on another, the following happens. If I open a search window (either
apple-F or apple-shift-F) in one space and then close it, when I try
to open it again for the other document, the window appears in the
first space.
I assume this is because spaces is re-opening the "old" search window,
and thinks that I want it back where I last had it, but it is very
annoying indeed.
Is there any way textmate could ensure that dialog boxes open in the
"space" of the current document?
Best,
Nicholas
I have a 300MB file, a text file which is the output of a long SQL run. Years
ago I remembered opening such huge files in Visual Studio or Slickedit without
much trouble so I tried it - no way, it gave up after grabbing about 1.2GB of
RAM and exhausting what was free.
OK, silly thing to do anyway - I got what I needed from the terminal using head
and tail. But is this expected behavior? Can't it partially load files and
load/dump as you scroll? Eating 4x file size in memory and still not having
enough seems a bit excessive.
Not complaining, just curious.
--
Adam
On Thu, Aug 14, 2008 at 11:47 AM, Adam Eberbach <aeberbach(a)mac.com> wrote:
> I have a 300MB file, a text file which is the output of a long SQL run. Years
> ago I remembered opening such huge files in Visual Studio or Slickedit without
> much trouble so I tried it - no way, it gave up after grabbing about 1.2GB of
> RAM and exhausting what was free.
>
> OK, silly thing to do anyway - I got what I needed from the terminal using head
> and tail. But is this expected behavior? Can't it partially load files and
> load/dump as you scroll? Eating 4x file size in memory and still not having
> enough seems a bit excessive.
>
> Not complaining, just curious.
In the meantime I have learnt that I may not open huge files (I do not
complain about that - I still have vim), but there was one bigger
problem. I often purely accidentally clicked on such a file while
editing other files in the folder, and TextMate crashed. Well, maybe
it did not really crash (I don't remember exactly), but it was
definitely staled. So I had to force closing it, and lost all the
other work in other windows. Even if I saved the files, I still lost
the "open windows" and had to open and organize everything from
scratch again. Which was pretty annoying. It would be nice if that
could be fixed somehow, but I don't want to camplain too much as other
features have priority.
One reason why I love Firefox is that despite its frequent crashes, it
reopens all the windows that have been open before the crash when I
start it again. That would be a nice feature in TextMate. Low
priority, but welcome.
Mojca
Hi,
Know this has been up before on the lists but wanna check if there are
any new ways of getting the relative file path displayed in the title
bar.
using the mouse, control-click menu, tooltip or custom cmd is not an
option.
TextMate already tells us the top most folder in a directory
structure / project.
for instance
views.py - projectname
would have been nice with
views.py - projectname/subfolder
or
subfolder/views.py - projectname
another sweet option could be that the front most document is hi-lited
and shown in the project drawer
/d
hi all,
I have command+i set (in sys prefs) to indent/indent selection and that
overrides the textmate file info binding (I can't remember where that's
located though, can someone remind me? all I remember is that this works)
for single files but the project info window pops up when I have a project
open and hit command+i and the indent menu item doesn't get triggered.
I looked in the key bindings.dict and the menus and bundles but failed to
find where that command is, could someone point me in the right direction
please?
Thanks!
Nick
synctex is great! and works perfectly here
(back in 2003 I tried to convince Hagen and
other pdftex guys to write something like that
inside pdftex, to no avail. That's how pdfsync started,
as an awkward workaround... happy to see it gone)
Robin, it should be easy to add support for synctec
in LaTeX Watch, (just add that -syctex=1 option at the
right place in your script).
Would you do that in the next future?
Thanks to Jerome and all who are contributing to this
feature, this is really becoming mature now.
Piero
Hi,
For some reason, the gear menu doesn't come up when I hit ctrl-escape.
I have been away from Textmate releases for a while, so I am wondering
if things changed.
Raheel
There's a bug in the Java bundle (current repository version). The
following comment is not displayed as a comment:
class FooBar {
// class in
}
Trevor
Ahoy.
Seems the default tool_tip with implied :format => :text is using a
font that is way huge and sizes wider than the screen with long
content.
For my needs I'm likely just going to use :format => :html with a
custom style tag. But ideally I could just use the default format.
What rules do normal system tooltips use to decide when to force wrap
to a new line?
hello,
what happened with my command+/ ? i get a system error, a sound and a flash
on the screen.and i also noticed something else, the dropdown from the
bottom right does not show me any function from the current class, it's
blank.
--
Cristi
www.ralcr.com
Ahoy.
I'm building some stuff for the new D2 completions and I was wondering
if someone could change the font to monospaced. Ideally the same font
& size used in the document.
Infininight did a design a while back that we all agreed to. I'm not
sure whose job this stuff is. All I know is, I have no clue how to do
it or else I'd be doing that right now instead of complaining ;)
Thanks.
I've tested the new MacTex beta with TextMate+Skim+synctex (with pdflatex,
xelatex, and latex (with and without the latexmk.pl script)) and it all
works well on my research articles and exam files. Synctex seems to do a
slightly better job than pdfsync, in my setup.
Regards,
David
Hi,
Jacob Lukas pointed out to me that there's a major bug in the Ruby
script for installing bundles with a complex folder structure (e.g.
Objective-C, F-Script). I've already fixed that. Thus please update
the GetBundles bundle if you want to use it.
Many thanks to Jacob Lukas!
Cheers,
--Hans
Hello,
I'm getting my mailing lists all mixed up.
In case this hasn't been announced here, yet:
Begin forwarded message:
> From: "Snyder, David F" <dsnyder(a)txstate.edu>
> To: "mactex(a)tug.org" <mactex(a)tug.org>
>
> The Skim wiki has a recently updated (today) page on how to
> integrate Skim
> with synctex and some popular editors. Begin here:
> http://skim-app.sourceforge.net/wiki/index.php/TeX_and_PDF_Synchronization#T
> eX-PDF_Synchronization
>
> Also: I've tested the new MacTex beta with TextMate+Skim+synctex (with
> pdflatex, xelatex, and latex (with and without the latexmk.pl
> script)) and
> it all works well on my research articles and exam files. Synctex
> seems to
> do a slightly better job than pdfsync, in this setup.
Hope this helps,
Will
Hi,
if I'm using tm_dialog showing a NIB with enabled close button (red
button), how can a script controlling the NIB be notified about that
event?
E.g. the GetBundles script: It makes usages of some threads. If the
user closes that window these threads should be killed safely. I only
can do this by defining a separate button sending this event to the
script and disabling the red close button.
Any suggestions?
I do not know whether this would be a way but maybe one can overwrite
the 'close' method within tm_dialog which sends a message to stdout
before calling super::close.
--Hans
hi
I've got two pretty arcane bundles I work on extending most days and
use at home and work. As they are into useful shape, I 'm beginning to
share with others.
My question: What is the simplest source control system that plays
well with textmate (and preferably with get bundle) and is public but
free (i.e., not setting this running on my own server)?
What public servers do people use/recommend?
What's the story with using the tm bundle repo?
I looked at http://bundleforge.com/ but couldn't see how to use
that to host a bundle...
I like most things google: does google code integrate with
textmate and allow synching of code changes?
Is there a workflow that people have for keeping more than one machine
synced and for sharing the bundle with others? (export a clickable
link so other users can download and stay updated to the newest version)
tim
Hi,
I've been using wikidot (free wiki service with a lovely syntax, lots
of nice auto-generate features, and googles ads etc)
Before I reinvent the wheel, Anyone made up a grammar for their
version of wiki markdown?
Timster
Regarding TM's adherence to unix philosophy, it seems weird to
me one cannot execute a command in background. Setting output to
"Discard" is supposed to do just that, while it actually freezes TM
until command exits. This virtually rules out any long running command
in TM.
I know "Show as html" will behave that way, but it's more a (ugly)
workaround. I'd like to see it fixed or at least a "Discard and close"
option added.
Thank you,
Federico Galassi
I have set up the Blogging Bundle to work with my Movable Type
installation, and it mostly works, but I don't appear to be able to
assign tags to a post (whether the tags already exist or not).
When I fetch a post, it includes the tags. But even if I then edit
this list (add or remove), the changes are ignored.
Is this a known issue? Is there a fix? I would love to be able to
post from TextMate, but it's a pain to then have to log in and edit
the tag information...
Thanks!!
Fletcher Penney
--
Fletcher T. Penney
fletcher(a)fletcherpenney.net
My theory of evolution is that Darwin was adopted.
- Steven Wright
Thanks for your help with my last query Hans.
I am now having problems getting my Flash classes to compile. They are
in the regular directory, when I compile my SWF using Flash everything
compiles fine. However, when I compile using MTASC classes from my
class library don't import (I get unknown variable error messages).
I've set my classpaths in the mtasc.yaml like this:
classpaths:
- /Users/alicolling/Library/Application\ Support/Adobe/Flash\
CS3/en/Configuration/Classes
- $(UserConfig)/Classes
But it still won't work.
If anyone has any suggestions I would be really glad to get on the
road compiling from textmate :)
Thanks,
Alistair
my full mtasc.yaml is:
///////////////////
# Name of your output file:
swf: prelaunch.swf
# Name of your main class:
app: OceanaPreLaunch.as
# Folder/URL/file to open when compilation succeeds. Use 'textmate' to
preview in TextMate:
# preview: textmate
#preview: reference to automator app that clears log file and
launches swf
preview: /Users/alicolling/Library/Scripts/dbgOceana.app
# SWF Header:
player: 8
width: 800
height: 600
fps: 31
bgcolor: FFFFFF
# Optional, use it if you have a custom version of MTASC (i.e: HAMTASC):
# mtasc_path: /Users/your_name/bin/mtasc
# Optional, use it to send additional MTASC parameters (i.e: -strict)
params: -main -mx
# If you want to use XTrace (included with the bundle)
# trace: xtrace
#
# If you want to use Console.app (see <http://bomberstudios.com/2007/03/14/how-to-use-consoleapp-for-flash-debuggi…
>)
trace: console
#
# If you want to use 'tail -f'
# trace: terminal
#
# If you want to use a custom function for tracing:
# trace: com.namespace.to.your.trace.function
# Optional, include as many classpaths as you need:
classpaths:
- /Users/alicolling/Library/Application\ Support/Adobe/Flash\
CS3/en/Configuration/Classes
- $(UserConfig)/Classes
# - /Users/your_name/Documents/mtasc-1.12-osx/std8/
# - /Users/your_name/Documents/mtasc-1.12-osx/std/
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
The new action command is giving me the following error:
deadlock 0x38cde0: sleep:S - /Library/Application
Support/TextMate/Support/lib/ui.rb:84
deadlock 0x346fc: sleep:F(1049) (main) - /Library/Application
Support/TextMate/Support/lib/ui.rb:86
tm_dialog: no property list given
/Library/Application Support/TextMate/Support/lib/ui.rb:86:in `read':
Thread(0x346fc): deadlock (fatal)
from /Library/Application Support/TextMate/Support/lib/ui.rb:86:in
`load'
from /Library/Application Support/TextMate/Support/lib/ui.rb:86:in
`menu'
from /Library/Application Support/TextMate/Support/lib/ui.rb:81:in
`popen'
from /Library/Application Support/TextMate/Support/lib/ui.rb:81:in
`menu'
from /tmp/temp_textmate.lvQNXx:5
Any ideas? TIA, Mark
hi,
just wondering if anyone has written a command to renumber the
${1:var} items in a snippet? I find myself doing this quite often when
developing a new snippet and it is a bit tedious.
Ideally, the command would allow you write a snippet like this
${n:not sure${n:about} the ${n:order) ${n:yet ${n:but that no longer
matters}}
and have the command turn it into
${1:not sure${2:about} the ${3:order) ${4:yet ${5:but that no longer
matters}}
as well as coping with
${1:not sure${2:about} the ${3:order) ${n:oops, added this!} ${4:yet
${5:but that no longer matters}}
-->
${1:not sure${2:about} the ${3:order) ${4:oops, added this!} ${5:yet
${6:but that no longer matters}}
Hey.
Where does the extra information come from for the Macromates bundles?
Also, any chance of adding a link to the GitHub project for all those?
I'd also really like to inclue some really basic html into the
descriptions of my bundles.
I'd especially like to get a few images into my more visual bundles.
So, how hard would it be to convert the more-info thing into a webview?
And where do I actually add those descriptions?
For GitHub bundles you could parse the README files for the bundles
like GitHub does.
— thomas Aylott @ subtleGradient
Hi,
I tried to figure out whether it is possible to create a NIB
containing a NSOutlineView and to feed it using a plist.
But I didn't find a way.
Has anyone an idea?
Or is this impossible with tm_dialog?
Thanks in advance!
--Hans
Hi,
I just fiddling with the GetBundle GUI. While doing this I thought
that it would be nice to have a asynchronous window created via
"$DIALOG" window create ...
which I can modify while runtime.
A simple example:
Supposing you have a NIB which shows names and last names of persons
in a table, and you want to select one person in order to display more
information. But I want to be able to display either all male persons
or all female persons, and if I selected an item the window shouldn't
be closed.
What I did is to set up such a NIB with a pop-down menu 'Choose
Gender'. Fine.
But how can I notify the running script in the background that I
changed that pop-down menu?
I didn't find a way to do this. That's why I introduced a new method
to '"$DIALOG" window' named 'getparams'.
This method is very simple. It write the current NSDictionary
'parameters' of the current nibController to the standard output.
Nothing else.
But then I was able to ask the async window: Are there any changes? If
so, then I changed the content of the parameters accordingly and
updated the window's parameters.
Here is a screencast to illustrate this example:
http://www.bibiko.de/TM_intact_async_window.mov (1.7MB)
By using the new method 'getparams' it opens ways to do more useful
things, I believe.
You can hide/show items easier, change the content of data cells,
change the title of buttons according to the status of radio buttons
or checkboxes, etc.....
Here is the code for "$DIALOG2" > window.mm
...
else if([command isEqualToString:@"getparams"])
{
if([proxy numberOfArguments] < 4)
ErrorAndReturn(@"no window token given");
NSString* token = [proxy argumentAtIndex:3];
TMDNibController* nibController = [TMDNibController
controllerForToken:token];
if(nibController)
{
id params = [[nibController parameters] mutableCopy];
[params removeObjectForKey:@"controller"];
NSString* error = nil;
if(NSData* data = [NSPropertyListSerialization
dataFromPropertyList:params format:NSPropertyListXMLFormat_v1_0
errorDescription:&error])
{
NSString* outpl = [[[NSString alloc] initWithData:data
encoding:NSUTF8StringEncoding] autorelease];
[proxy writeStringToOutput:outpl];
}
else
{
fprintf(stderr, "%s\n", [error UTF8String] ?: "unknown error
serializing returned property list");
fprintf(stderr, "%s\n", [[[nibController parameters] description]
UTF8String]);
}
}
else
{
[proxy writeStringToError:@"There is no window with that token"];
}
}
I guess one could improve and simplify the code.
Is this worth to implement this?
Thanks,
--Hans
Hi,
I played with 'Show Bundles on Repository' a bit.
The only thing is that it is a bit slow.
Is there a reason for using svn list/cat?
My suggestion would it be is to use a direct way by using
Net::HTTP.get(URI.parse(url)).
It is much mor faster. Furthermore I implemented the entire download
stuff in many threads. By using these threads the descriptions are
downloaded in roughly 10sec (depending on the band-width of course).
Then I wrote a routine to install one or more bundles (also while
fetching the descriptions).
To be fast as possible I cache the already downloaded descriptions.
Thus if one invokes that command it looks for a description in the
cache. If something was found one sees it at once, but the
descriptions are still updated in the background.
I also modified the NIB a bit. If the fetching was finished the
progress bar also disappears. Furthermore I include a further
progress bar to indicate the install status.
Of course, there are some tiny unsolved issues, e.g. while fetching I
select one or more bundle; if the a result of a thread is written to
the dialog my selection could disappear.
Anyway, if you want to look at it here is a 10MB movie
http://www.bibiko.de/TM_GetBundle.mov
Is someone interested?
Will the getBundle issue be integrated in TM2?
Cheers,
--Hans
Hiya, does anyone know what this means?
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:
227: warning: Insecure world writable dir /Applications/TextMate.app/
Contents/SharedSupport/Bundles/ActionScript.tmbundle in PATH, mode 04077
My swf will compile and play but I get this error message. Also, the
swf won't trace in console even though this is set in the yaml file
and fp 9,0,124 is my default player.
Any suggestions appreciated,
Thanks,
Alistair
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Hi,
does anybody has a tenjin template bundle?
Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo(a)simplicidade.org
Use XMPP!
> On 8 Aug 2008, at 18:44, Mikael H?ilund wrote:
>
>> Personally, I use the convention of "#" to start a code comment, and
>> "# " to start a text comment. I'm not sure if it's possible to modify
>> the Ruby grammar to allow only spell checking for only lines with "#
>> ", nor how difficult that would be.
>
> It?s fairly simple. There is a rule to match comments, just duplicate
> it to match your commetns+space (place it above, so it gets to match
> first, since it is a subset of the existing).
>
> Give that a special scope, like comment.line.prose and make a spell
> checking preference target that scope.
Sorry to be such a n00b at this, but I am at my wit's end trying to do
this for C++ and I appreciate use any help anyone has to offer.
Say, for example, I want to enable spell-check in comments that start
with "//"
There is a pattern for that style of comment in the Bundle for C->C
{ scopeName = 'source.c';
...
{ name = 'comment.line.double-slash.c++';
...
So I thought perhaps I could add a preference containing
"{ spellChecking = 1; }" with Scope Selector "source.c", and that
would enable spell checking on all C source. Then I was thinking scope
naming might extend into the "name", so that I could set the Scope
Selector to "source.c.comment.line.double-slash.c++".
None of that worked, no matter if I added the preference in the C
section or the Source section or above or below any other preferences.
Basically, the only thing I was successful in doing was setting
"spellChecking = 1;" in Source-> Spell Checking: Disable for Source
bundle, but that enables spell checking for all source, and not just
for the comments (i.e. all code in all languages).
Can someone point me to a relevant example or some resources that
might help? I feel like I am missing some simple, obvious, but clearly
essential step.
Thanks,
Doc
I want one function to specify some amount of white space. Here's
what I've come up with for my .sty file:
\newcommand{\indentLength}{3}
\newcommand{\indentUnit}{em}
\newcommand{\indentFull}{\indentLength\indentUnit}
\newcommand{\indents}[1]{
\ifthenelse{\greaterthan{#1}{0}}{\hspace{\indentFull}\indents{#1-1}}{}
}
Then, I attempt to use \indent{1} on line 77 of my file. I get lots
of repeats of the following output:
Latex Error: ./pks.tex:77 Undefined control sequence.
Latex Error: ./pks.tex:77 Missing number, treated as zero.
Latex Error: ./pks.tex:77 Missing = inserted for \ifnum.
Latex Error: ./pks.tex:77 Missing number, treated as zero.
This repeats over and over again, until I get
Latex Error: ./pks.tex:77 ==> Fatal error occurred, no output PDF
file produced!
Is doing this possible? I really don't feel like typing things out
over and over again...
Thanks a lot for the help.
Evan
--------------------------------------------------
The dinosaurs became extinct because they didn't have a space program.
Larry Niven
Hi all,
There is a recently posted talk from TUG 2008 (at the link below) that
answers a lot of questions about synctex (at that page "find synctex", cuz
it's near the bottom of a long page). Basically, watching this, it is clear
that synctex is superior to pdfsync, but it's still under development.
http://www.river-valley.tv/conferences/tug2008/
Best wishes
----
David F. Snyder, Ph. D.
Associate Professor of Mathematics
Department of Mathematics
Texas State University
601 University Drive
San Marcos, TX 78666
(512)245-3419 My office
(512)245-2551 Department Office
(512)245-3425 fax
³It will be well for us not to assume an attitude of condescension
towards the crowd. Because in the matter of looking without seeing we
are all about equal. We all go to and fro in a state of the observing
faculties which somewhat resembles coma. We are all content to look and
not see.² -- Arnold Bennett in ³The Author¹s Craft² (1914)
dsnyder(a)txstate.edu
Hello,
Can someone please give me hint how to implement the following simple
auto-complete scheme in TextMate:
1. We have three commands: \hi, \hello, \world
2. They can be used as:
a) \hi[mum] or \hi[mum,dad,grandpa] or \hi[mummy,daddy] ...
where we are allowed to put only one of the words mum, mummy, dad,
daddy, grandma, grandpa into brackets (can be a list)
b) \hello[mum,grandpa] ... the same way as \hi is used
c) \world[shape=sphere,color=blue] or \world[color=brown]
where one can use only "shape=sphere/geoid/cube" and
"color=blue/black/gray/brown"
I'm confident with writing ruby code, but I need some basic hints for
the TextMate part of it.
Thanks a lot,
Mojca
Are there any plans to add synctex support to the LaTeX bundle?
Synctex is part of the *tex engine and replaces pdfsync. It will be
part of TeXLive 2008. Skim.app already includes support for synctex.
--
Mark
In looking at how spell checking in comments works, and searching the
archives for alternatives and suggestions, I can see spelling is
disabled in comments because, as Alan points out, "a lot of comments
are actually commented out code." Good point, and I can clearly see
there is no one way that can make everyone happy.
In my case, a tremendous amount of useful documentation is in code
comments, and spelling errors make the code less professional. I am
constantly going to an external editor, or typing the comment into a
blank area of the document inside a quote so that TextMate thinks it
is a string, then removing the quote and hitting command+/. I'm
thinking about crating a shell script or bundle or something to do all
this.
Does anyone have any more "elegant" suggestions?
It would be great if there was a way, for example, to have a menu item
(perhaps even a bundle) that could just spell check the selection
regardless of the context.
Thank you for any suggestions.
Doc
Hi all,
I'm trying to add an invalid scope to a certain group of lines. Basically,
the regex pattern I would like to match is this:
^(\n){2,}
Which works fine in the Find dialog, but when trying to use it as a pattern,
it doesn't work. I am guessing because of the way that the pattern matching
works for grammars, but is there a way to match this?
The logic is, I would like to match every line that has no content on it,
but is part of a group of 2 or more extraneous lines.
One \n is valid, but 2 or more is invalid.
I've tried so many variations of trying to use captures, matching content,
but it seems to be treating each line as it's own match independent of the
previous or next ones.
Anyone know how I might go about applying this?
Any help is greatly appreciated.
Thanks!
--
View this message in context: http://www.nabble.com/Matching-multiple-lines-in-a-grammar-pattern-tp189011…
Sent from the textmate users mailing list archive at Nabble.com.
Hi Textmate and LaTex-Users,
with my current workflow writing a masters thesis I frequently add
books via BibDesk to my bibliography.
Currently I have to run BibTex separatly to propagate changes in my
*.bib file to the latex main document. But I think this could also be
done by the latex_watch.pl script of the latex bundle. Is this possible?
Cheers,
Jan
On Aug 7, 2008, at 2:02 AM, textmate-request(a)lists.macromates.com wrote:
> On Aug 6, 2008, at 11:21 PM, Nick wrote:
>> It's kind of funny to me that my two favorite programs by far
>> (textmate and quicksilver) have a completely unknown development
>> schedule (although quicksilver's is now dead :[ ). oh well! Theyre
>> both kind of like os x - you can't complain very legitimately about
>> their faults because they're just so much better than the
>> alternatives.
>>
>
> Sure you can. Mac OS X users traditionally complain loudly about
> faults and grievances they find with OS X. You'll rarely find a more
> critical bunch than aggrieved Mac users. That a piece of software is
> good does not make it impervious to criticism.
>
> Someone else brought up MacVim, and it's an interesting point. For a
> long time, I used Textmate exclusively. But now, I only use Textmate
> around 50% of the time -- the other half taken up by MacVim, when I
> need split panes, remote editing, or an editor that will not choke on
> large text files.
+1 for MacVim; I use it exclusively now.
I must be one of the few that got TM1 specifically because TM2 was
advertised as a free upgrade. I figured I would learn what the editor
was all about and be familiar with the basics when the new version
came out, I assumed, soon after Leopard.
Well, that time came and went and there are enough niggling things in
TM, particularly with the python bundle (the language I edit the
most), that I went searching elsewhere. For me the single most
frustrating thing with the python bundle is that you need to add blank
lines with spaces to line up the end of a class / def in order for
code folding to work. That is not only annoying for me, but other
team members as well. A close #2 is also with folding, which breaks
if you start function parameters on a new line rather than on the same
line, e.g.
test = some_func(
param1, param2)
Perfectly legal, but you need to do this in order to have any hope
folding code:
test = some_func(\
param1, param2)
Legal, but annoying, especially working with a team where I don't have
control of the entire source's coding style.
-berto.
Hey,
I tried sending this a week ago to the mailing list through that
webinterface, Nabble, but as there was no responses, I recon it didn't come
through, so here I try again:
I just noticed a peculiar bug with the scrollbars when browsing the
database. Apparently, the resizing of the window often causes some of the
scrollbars to be either fully or partially hidden. I've tried searching the
posts through nabble.com and it didn't seem this issue was debated, but as
this is my first time here, I apologize if I was wrong...
I've recorded a little video which demonstrates the bug. Textmate is build
1464.
http://skythost.com/stuff/textmatescrollbarbug.mov
Regards,
Morten Skyt
Hi, I'm new.
I'm working on a custom Textpattern installation and my client has
entered a massive amount of text data in certain fields using
UPPERCASE. He wants the text displayed in Title Case instead, and he
doesn’t want to manually change it. I can easily use the style
declaration "text-transform: capitalize;" for these elements, but my
client would very much prefer formal title case in which words such
as “the,” “of,” “and,” and “for” are not capitalized. (I see that
Textmate’s "Convert to Titlecase" command in the "Text" menu does
this correctly.)
I have made a mysql dump of the database, but I'm not sure how to
isolate the appropriate data for a text transformation. Here is how
each individual record is formatted in the database:
(91,'2008-08-03 05:20:57','author-username','2008-08-03
05:26:33','','UPPERCASE DATA','','','','','','','UPPERCASE-DATA','',
0,'Comment',0,4,1,1,'section-name','','lowercase-data','lowercase-
data','','','','','','','','','','','UPPERCASE DATA','','lowercase-
data','3p344629nn178n874sp2s222s0q3n072','2008-08-03')
The mysql dump also contains uppercase terms such as "DROP TABLE IF
EXISTS" and lowercase terms like "datetime" and "varchar" that I
_don't_ want changed. Is there a simple way to target just the
UPPERCASE DATA fields enclosed in single quotes for a massive "Covert
to Titlecase"?
I welcome advise from regular expression fu-masters and Textmate adepts!
Thanks in advance!
John Stephens
> Please, lets not start this again.
> Be happy with what you have, and dream of TM2 at night,
> but for the love of god, stop complaining in the mean time.
I think it's fair enough to ask. TextMate 2 has been talked about for
what, 1.5 -2 years now? There's rarely an update as to the progress
either, which is what I think is the main reason people ask "so
where's TextMate 2.0 at?" It's a closed-source commercial product
(which, for the record, is okee dokee by me) so, in my opinion, there
is more responsibility in communicating with your customers. Nobody
can just hop in and adopt the open-source "don't like it, then fix it"
approach. Why are people so defensive about talking about it? Perhaps
I missed a TextMate 2.0 mega-flame battle prior to subscribing to this
list.
Clearly TextMate is great. Clearly TextMate is an impressive version
1.x generation product. However, if you really think that TextMate is
so complete then I question if you have used any other text editor or
IDE or if you are just a fanboy. Basic features like split panes
windows and a decent undo system are missing. Because those features
are so basic it means their absence is felt nearly every time I use
TextMate. I won't get into what features from what editors are missing/
would be nice but I list those two only to underscore the point that
TextMate, while great, still has, at the very least, some basic
functionality missing. Basic functionality that will, we assume, be
addressed with TextMate 2.0. There isn't a day the goes by that I
don't lament the lack of a split pane window. Please note that this
does not imply I don't think TextMate doesn't have many great things
about it that other editors are missing. TextMate rocks.
Therefore, after a long, silent wait since its announcement and the
fact that there are still some glaring holes with the current release
I think it's fair to ask, "so where's 2.0 at?" It's not a complaint,
it's just a question and a reasonable one at that.
I was checking on the synctex issue brought up yesterday and while looking at the MacTex wiki (for "TeX on a Mac") there is no mention of TextMate as a TeX editor or "frontend", which is rather surprising since I've used all of the editors and front ends mentioned and found TextMate's approach preferable.
I've not the time right now, but perhaps some enterprising soul from this list might wish to rectify the situation:
http://mactex-wiki.tug.org/wiki/index.php?title=Main_Page
Sincerely
--
David F. Snyder, Ph. D.
Department of Mathematics
Texas State University
601 University Drive
San Marcos, TX 78666
Human history becomes more and more a race between education and catastrophe.
H. G. Wells (1866 - 1946), Outline of History (1920)
Can anyone tell me how to fix this error: /tmp/temp_textmate.KNOfLq: line
6: : command not found
I tried a complete re-install of TextMate with no improvement. This is on a
15" MacBook Pro with current Leopard.
--
Tim
----------------------------------------------------------------------
Hi all,
When entering commit comments using the subversion bundle, you can submit the
dialog box by hitting the Enter key w/o having to grab the mouse and hit the
Commit button with the cursor.
I was wondering if I could change which key invokes the "Commit" command in
the dialog box. Since the Enter key is a multi-step dance on my keyboard, I
was hoping to be able to switch it from Enter to "Shift-Return", or something
similar.
Anyone know if that's possible?
Thanks,
-steve
ps. Sorry for the bad subject line, can't think of any handy one-liner to
summarize my question.
Hi all,
Can someone point me in the right direction? I would like to remove
all login details from the blogging bundle so I can start again. I've
removed the plist file, but when I try and set a blog up to post it
seems to be using an old password from somewhere that is incorrect.
I'll be jiggered if I can work out where the password is being stored
and I can't get either of the blogs I post to to fetch categories or
blog entries with the ones that are being used.
Thanks,
Nigel
Hi,
I don't know if it was discussed already but there's something that
bothers me very much, the way showAsHTML in tmCommand works.
Right now using "Ack in Project" with ⇧⌘A opens empty blank output
window (killing old window if it was there), then Ack displays dialog
asking for the search query, if I press cancel output is left blank. I
was thinking it was fault of Ack scripts themselves, but unfortunately
it is way the commands work in TM.
So my Q is, would it be feasible to:
(1) Show output window only once command writes something into the
output first time -> So in Ack when the window is popped up we don't
see output window yet, and when we Cancel we won't see the output as
well (it will mimic better expected interface)
(2) Ability to create multiple output windows for single tool,
currently Ack has its own single output window so:
* When I search something new, all my previous results are killed,
even when I press by mistake the shortcut, now the output window is
emptied
* I wish to search for few things at once and make all the results
stay
Seting "uid" to nothing (or removing the uid section from tmCommand)
somehow makes many output windows to show up (2), but something wrong
makes sometimes TM crash with such windows.
Regards,
--
Adam Strzelecki
http:wiki.macromates.com/FAQ/TextMate2:
Q: Will TM2 be a free upgrade?
Yes. Except for users who got TM1 as part of the MacHeist package. The
MacHeist TM1 license will require an upgrade fee in order to upgrade
to TM2. (source).
So, there will be no TextMate 2 for a long, long, long time. Not until
there is a serious competitor.
The talk has been on since before Mac OS X 10.5, but...
It's a pity, but it's very understandable. One has got to live of
something.
Regards,
/Peder
>From the comp.lang.ruby list:
On Aug 4, 2008, at 08:28 AM, matt neuburg (that's me) wrote:
> I am really just not having any luck with rdoc / ri these days.
> Because
> the new version of rdoc promised that File#read would finally succeed
> (automatic lookup of methods in the supercclass), I downloaded it. It
> didn't change anything so I rebuilt my documentation from scratch. Now
> fast-ri is broken. Can anyone divine from this error what's gone wrong
> and what I should do? Thx - m.
>
> $ qri String
> /usr/local/lib/ruby/1.8/yaml.rb:133:in `transfer': invalid subclass
> (TypeError)
> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `node_import'
> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
> from /usr/local/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:72:in
> `deserialize'
[Reply from Eric Hodel]
Looks like qri is using RDoc 1.0.1, which is shipped with ruby. RDoc
2's on-disk YAML format is not backwards compatible with RDoc 1. RDoc
2 can read RDoc 1's format due to some use of regular expressions.
fast-ri would need to be updated to read the RDoc 2 classes.
====
So, if Eric is right, then fastri needs to be updated to understand the
current yaml format generated by current versions
of rdoc...
The problem for TextMate / RubyMate is that its Help uses qri, which is
fastri. In fact, that is how I discovered the problem. I installed the new
rdoc, regenerated my help files, and found that Help in RubyMate had stopped
working, with the above error.
Just letting y'all know... m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Hi,
regarding web development with TextMate and its web preview: I found the
http://wiki.macromates.com/GUI/WebPreviewEnhancements page, and wondered
if everything written there still applies, and if any workarounds exist,
especially for the following two issues:
> Don't close it when a different tab is selected in the TextMate main
> window
> Add an option to refresh the Web Preview window if "any" file in the
> project has changed. This would be useful for anyone editing CSS
> files and wishes to see the changes immediately.
The lack of these two features unfortunately makes the preview rather
useless when developing a new site from scratch while using a separate
CSS file.
I'll add to these that AFAICT, when editing a long HTML page, the web
preview goes back to the top each time it's refreshed, making it useless
again if you're working on an area at the bottom of the page.
Am I missing anything?
Thanks :).
--
Ciao,
Marco.
Hey,
I just noticed a peculiar bug with the scrollbars when browsing the
database. Apparently, the resizing of the window often causes some of the
scrollbars to be either fully or partially hidden. I've tried searching the
posts through nabble.com and it didn't seem this issue was debated, but as
this is my first time here, I apologize if I was wrong...
I've recorded a little video which demonstrates the bug. Textmate is build
1464.
http://skythost.com/stuff/textmatescrollbarbug.mov
Regards,
Morten Skyt
--
View this message in context: http://www.nabble.com/Bug%3A-Scrollbars-in-SQL-Database-Browser-tp18828407p…
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
Does anyone know if there is a Hash bundle available?
I'm looking for something that can take the current file and return
an md5/sha1/base64 hash. Thanks.
Armon Dadgar
Can i order the files from drawer alphabeticaly, but fistly the folders,
then the files? It seems i get lost in the current alphabeticaly order.
--
Cristi
www.ralcr.com
Yesterday I installed the os x security update 2008-005.
Now the mate command takes a very long time to run.
For instance if I type "mate ." to open the current folder it can take
up to five minutes to complete the command. The length of time to open
the directory seems to be proportional to the number of files in the
directory.
If I use mate to open a single file it still takes 10-20 seconds.
Also, I don't know if this is related or if it will help diagnose this
problem but after the update I noticed another difference in the
terminal usage.
In my .profile I have
export CLICOLOR=1
export LSCOLORS=DxGxcxdxCxegedabagacad
But after the update "ls -la" won't use color when printing results.
I wish I could give more information but I don't really know where to
begin. Has anyone had any similar experiences.
Hi
I use the iClip multiple clipboard thingmy.
If I copy some text to iClip from outside TextMate then switch to
TextMate the copied text in iClip duplicates.
I've never seen this with any other app.
Could be something odd about iClip of course :)
Patrick
Hello,
I'm using TextMate a lot for Latex - it a great editor and bundle for
that. I have one question:
How can I open a terminal, or go to a pre-existing terminal window,
from TextMate, and then run a given shell script in the terminal, in
particular a shell script that would typeset the master document?
One reason I want to do this is that the latex bundle seems to typeset
in nonstop mode. If there is an error, it highlights it but keeps on
running if possible. This is not always optimal, as one would
sometimes like to be able to press the 'h' key and see what help TeX
can offer in finding the error. One could do this easily from a
terminal, and it would be nice to call this with a keystroke from
TextMate. It is presumably possible to modify the LaTeX bundle to do
this from the console - and perhaps this is already doable but I don't
know? But in any case, I'd still like to be able to open a terminal
window as above.
Thanks
Geoff Vallis
Hi,
I'd like to make my own theme for viewing documentation, since the default
dark themes are too hard for me to read. I can easily make themes for code
coloring, but how do I make themes for doc syntax coloring?
Thanks,
Nick
Hi Textmate-List,
is it possible that the labels which are automatically created on
writing a new chapter, section, subsection and so on also recognize
German Umlauts ä,ö,ü as well as ß? Right now these characters do not
got replaced by ae, oe, ue and ss so that you have to do it yourself
if you want end up in an compile error with latex (pretty annoying
when using the "WatchLatex" script). It would be of much help if the
label creation function could handle this. Can anyone help? As far as
I can see the regexp has to be extended.
Best regards,
Jan
Hello,
Is it possible to arrange tabs with file names into multiple lines? I
often have dozens of files open and it really becomes annoying to
switch between them.
So, instead of (fixed width :)
+-------+-------+-------+-------+----
| file1 | file2 | file3 | file4 | >>>
+-------+-------+-------+-------+----
it would be nice to see:
+-------+-------+-------+-------+
| file1 | file2 | file3 | file4 |
+-------+-------+-------+-------+
| file5 | file6 | file7 |
+-------+-------+-------+
Here's a screenshot of what I have in mind with multiple lines (the
first screenshot that I have found; used in another context, but
nevertheless):
http://www.emeditor.com/images/emeditor7_virtual_space.png
Thanks a lot,
Mojca
I'm trying to open the rcov script file for a ruby code coverage tool.
Instead of opening for edit... Textmate appears to try and run the script.
I've tried removing the #!/usr/bin/ruby
at the beginning of the file to no avail.
has anyone seen behavior like this?
thanks
Jay
http://files.xhtmlthis.com/textmate.mov
I made a little movie to show you everything, obviously my permissions
are fine, because I can create folders!
Thanks,
Garrett
Hello,
I am using a slightly modified php bundle, and have lost the auto
completion on single quoted elements... parens, double quotes, etc still
auto complete, but not single quotes. I'm not very familiar with
working with bundles, or modifying them, but I'm wondering what I might
do to re-enable (or add in) the single quote auto complete feature in
the bundle?
Any advice is appreciated.
thanks,
Eben
Hi all,
Normally, when you execute the Comment Line command, it inserts a
single-line comment (e.g., // in C). That's true for Python, Ruby, C/C+
+, Objective-C, shell scripts, you name it... but not Java. For some
reason the Java bundle inserts multi-line comments (/* ... */). This
leads to problems when trying to uncomment lines. For example:
1. Select N lines
2. Hit Command+/ to comment the lines
3. Cancel the selection
4. Go back and select the same N lines
5. Hit Command+/ to uncomment the lines
This works in all the other modes, but in Java, it's impossible. The
problem is step 4. Instead of selecting just the same N lines, you
have to extend the selection to N+1 lines, but only far enough to
select the first two characters in the N+1 line (to capture the
trailing "*/"). And if you really want some fun, try uncommenting only
some of the lines. Again, works perfectly in every mode but Java.
So, basically, the Comment Line command seems only half-baked for the
Java bundle. I realize I could probably fix this myself by hacking
around in the Bundle Editor, but shouldn't the bundle be using single-
line comments by default? Even if there's some benefit of multi-line
comments that I'm missing, you'd think the Java bundle would still use
single-line comments for the sake of consistency. Why's the Java
bundle such an oddball?
Trevor
I know there are people who (for some reason) prefer mailing lists to actual
forums, but I'd like to cast my vote for a proper forum.
Nabble works surprisingly well, but it's still pretty painful compared to
any forum I've used.
--
View this message in context: http://www.nabble.com/Actual-Forum--tp18700957p18700957.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi there.
Is there a way to make TextMate right-trim lines (e.g., remove tailing
spaces in the end of lines)? I'm getting warnings from pep8.py (which
checks if your code follows the PEP8) and looks like TextMate leaves a
lot of spaces on empty lines inside and indented code.
Ideas?
--
Julio Biason <julio.biason(a)gmail.com>
Twitter: http://twitter.com/juliobiason
Eric Abrahamsen wrote:
>
> I was firmly in favor of mailing lists over forums until I started
> receiving all the messages in this thread.
>
> Now I'm on the fence.
Yes - you can get never-ending flame wars in either medium.
Could someone just accuse someone else of being a Nazi* so we can call
this a day?
Pete
* http://en.wikipedia.org/wiki/Godwin%27s_law
So I just heard about this awesome gitjour based collaborative tool:
Conspire[1],[2]
I was wondering if anyone knew if the plugin-api would allow this kind
of polling and updating of the currently open files.
-Brian
[1] <http://technomancy.us/113>
[2] <http://github.com/technomancy/conspire/tree/master>
I like to build and run my Xcode projects using the "Build & Run"
command from the Xcode bundle, both for convenience and because my
debug output and exceptions are formatted in such a way that it can be
clicked in the output window so TextMate jumps to that section in the
code.
With Xcode 3 that has become a little trying though: Every time the
underlying xcodebuild command is launched, it goes through a rather
lengthy "Checking Dependencies" phase.
Xcode itself seems to cache the results from that phase, it is only
slow the first time a project is built after opening it in Xcode.
Hoping that it might help others, I came up with with the command
attached below. It uses Xcode to build the project, and (upon success)
hides Xcode and launches the freshly built application in such a way
that the output goes to the normal "Build With Xcode" window.
If compilation fails, it leaves Xcode in the front. I set Xcode to use
the "Condensed" layout, positioned the "Build Results" window to be
the same size and location as TextMate's "Build With Xcode" window,
and set TextMate as external editor for all source files. So double-
clicking on an error message will still jump to that location in the
code in TextMate, just like the original Build With Xcode" window
would do with a single click.
Hope that helps someone, feedback welcome.
Gerd
On 2008-07-30, at 08:55 , textmate-request(a)lists.macromates.com wrote:
> Not everyone interested in TextMate wants to hack on it.
True, but all the discussions remind me that I can!
> Mailing list says "pre-web mentality".
One of the unfortunate tendencies amongst some technologists is to
push for the same kind of "next great thing" fashion mindset that we
rail against elsewhere. This comment suggests that those who aren't
interested in a forum are somehow luddites or old-fashioned. Some
technologies work better for some functions for some people better
than others. This particular group has cohered around this mailing
list. It's entirely possible that another group would cohere around a
forum. No one is stopping you from setting one up -- Google, Yahoo,
and scores of others offer such venues for free. Notice that the best
discussions about Apple technology are not in any Apple.com forum but
in places like Ars Technica or OS X Hints, etc.
It's possible that some here would join you in a forum. I certainly
like the fact that a well-designed forum offers me a good archive that
I don't have to maintain.
john
Hi,
please see the stack trace below that I get whenever I try to commit something
with the CVS bundle. I made a fresh install of both TextMate
(Version 1.5.7 (1464)) and the CVS bundle.
Because the error occurs in the builder.rb file is this in any way related
to a provious bug that prevented the Rails plugin to run focussed test?
Thanks,
Jürgen
Stacktrace:
Users/juergen/Library/Application Support/TextMate/Pristine
Copy/Bundles/CVS.tmbundle/Support/cvs_commit.rb:99: undefined method
`keys' for []:Array
(NoMethodError) from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`call' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing'
from /Users/juergen/Library/Application Support/TextMate/Pristine
Copy/Bundles/CVS.tmbundle/Support/cvs_commit.rb:99 from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`call' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing'
from /Users/juergen/Library/Application Support/TextMate/Pristine
Copy/Bundles/CVS.tmbundle/Support/cvs_commit.rb:97 from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`call' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing'
from /Users/juergen/Library/Application Support/TextMate/Pristine
Copy/Bundles/CVS.tmbundle/Support/cvs_commit.rb:25 from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`call' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing'
from /Users/juergen/Library/Application Support/TextMate/Pristine
Copy/Bundles/CVS.tmbundle/Support/cvs_commit.rb:19
I have about 45 files I'd like to combine into one, and short of
opening each one and copy & pasting it into the new one, I don't see a
clear way to do this in Textmate.
I'm certain there *is* a way, I'm just not seeing it. Suggestions?
Thanks!
--
All about me!
http://www.leroux.ca
Hi everybody,
I have very simple question being rather new to textmate:
How do I change the key binding of command-r from "compile xcode
project" to "run the makefile in the parent directory"? Any help would
be appreciated...
Greetings,
Nick
I realize there's some kind of workaround to make autocompletion work in a
vaguely pleasant way:
http://www.nabble.com/Autocompletion-to17643856.html#a17643856
But is there a more user-friendly option. (I happen to have XCode installed
on my machine, but I imagine there are members of the target audience for
TextMate who won't.) Are there plans to make autocompletion part of
TextMate's core functionality?
--
View this message in context: http://www.nabble.com/Autocompletion-tp18700987p18700987.html
Sent from the textmate users mailing list archive at Nabble.com.
Dear all,
I'm just writing a a tiny bundle
'Copy Formatted as'
RTF
(Xe)TeX
wordml
HTML
...
I was inspired by the bundle Copy as RTF by Max Muermann (kindly
hosted at github by Dr Nic Williams) [I found it with GetBundles ;)].
This bundle works fine for RTF but it lacks UTF-8 support. Thus I
went an other way to achieve that and it works perfectly also for TeX ;)
But back to my suggestion.
It often occurs to me that I'm to write a tiny paper, article or
whatever about a piece of source code I wrote. For that purpose I
often need doctohtml.rb with line numbering. Fine. But one thing I
cannot do with it. If I write something about a piece of code between
line 10 to 20 and I want to refer to line number in my text the
default doctohtml.rb produces line numbers between 1 to 10. Due to
that fact I thought it would be nice to have an option to produce
relative line numbers.
I modified doctohtml.rb a bit to achieve that.
Here's the diff (also attached to that mail):
--- untitled
+++ (clipboard)
@@ -189,10 +189,10 @@
return lines.join("\n")
end
-def number(str)
+def number(str, rel_numbering = false)
# number each line of input
lines = str.split(/\n/)
- n = 0
+ n = (rel_numbering) ? ENV['TM_INPUT_START_LINE'].to_i - 1 : 0
lines.each do | line |
n += 1
line.gsub!(/^(<\/span>)?/, "\\1<span class='linenum'>#{ sprintf("%
5d", n) }</span> ")
@@ -255,7 +255,7 @@
end
end
- code_html = number(code_html) if opt[:line_numbers]
+ code_html = number(code_html, rel_numbering = opt
[:relative_numbering]) if opt[:line_numbers]
html << "<pre class=\"textmate-source"
html << " #{theme_class}" unless theme_class.empty?
By doing so one can call document_to_html like that:
document_to_html( STDIN.read, {:relative_numbering =>
true, :line_numbers => true, :include_css => true }
If one leaves the new option out the line numbering starts at 1.
Hopefully this tiny improvement will be accepted soon ;)
Thanks,
--Hans
Hey everybody, don't ask why, but I have to do a small project in
Silverlight :) I have read a couple of comments on blogs from Textmate
users who are doing it, but the closest I've come to any kind of description
on how to do it was from John Lam
http://hex-dump.blogspot.com/2008/03/silverlight-2-sdk-mac-os-x-and-mono.ht…
He's using mono to run chiron.exe in the Silverlight 2 Dynamic Language SDK.
Is anyone doing it any differently?
Thanks
~sean
Hi,
I don't know how to install SVN_MERGE, can you help me ?
When I click on "Show available revisions for merging", I have this message :
"Couldn't find svnmerge
If you have installed svnmerge, then you need to either update your
PATH or set the TM_SVNMERGE shell variable"
I try with Svnmerge.py (http://www.orcaware.com/svn/wiki/Svnmerge.py),
and I added the path in shell variable, but it doesn't work.
Thanks,
Cedric
I'm sure this has been asked a number of times, but I can't seem to
locate any answers after searching extensively through the list
archives and online.
I'm trying to get the web preview window to a) display relatively
linked images and CSS files, and b) process all PHP includes referred
to in the file.
I've got the first one working by using Thomas Aylott's ruby script,
but I can't seem to get the PHP includes working at the same time.
Can anyone put me out of my misery and give me an idea of how to get
this working? I've got TM_PROJECT_SITEROOT and TM_PROJECT_SITEURL set
properly.
Thanks!
Neil
Hi all,
I know the tab overflow thing has been discussed quite a bit before, but I
had a question that I couldn't seem to find the answer for.
Is there any way to move tabs with a keyboard shortcut? I often have over 35
files open at a time as I work in a project on different tasks, but often
I'll have about 15-20 of those spilled over into the overflow.
The problem is, many times I'll have multiple tasks that overlap in file
access, and I would like to move one tab next to another so I don't have to
keep Command+Arrow-ing over multiple files (which often times I don't
remember which ones are hidden behind the overflow, or what order).
The only references I've heard to rearranging tabs is to use the mouse, but
I didn't know if there is some hidden way to do this, or some other type of
work around.
Any help is greatly appreciated.
Thanks!
--
View this message in context: http://www.nabble.com/Moving-tabs-with-the-keyboard-tp18671843p18671843.html
Sent from the textmate users mailing list archive at Nabble.com.
I'd really love to be able to split the working area to allow side by
side viewing of 2 documents. I've looked and looked through the
documentation / posts / tutorials, and it seems like all that's
available is navigating between tabs?
Any ideas?
Thanks!
Michael Larkin | http://pixallent.com | mikelarkin(a)pixallent.com
> The completion command picks the current word (rather, gets the
> current word from textmate), looks that up and completes based on
> that. In this case, since - and/or : are not considered word
> characters, a label such as "here-is-a-label", if we are at "here-
> is", will be completed as if it as only showing the "is" part. So TM
> passes to the completion command the word "is", gets back the label
> "here-is-a-label", and inserts it in place of "is", resulting in
> "here-here-is-a-label". The quick fix from your side is to go to
> Textmate -> Preferences -> Text Editing, and add whatever characters
> you need in "Word Characters" box. You gain proper completion in this
> case, but you lose alt+left/right moving you through each part.
I see.
The whole point of using the colon was, of course, the ability to
navigate quickly via alt+left/right within the label/citation (e. g.
to fix something or so). It's a pity the fix is difficult,
autocompletion really rocks and has improved my workflow a lot. Now I
just stop short of the first colon, but the list is usually not short
(I'm into mathematical physics, so I have to label sections, theorems,
formulas, etc.), so it would be nice to have. But if it's just not
possible with the current methods, I guess we have to wait for the
programmer to add what we want and need ...
But in any case, thanks for the explanation. And I know now that this
is a pet peeve of others as well and not just myself :-)
> However, Ctrl+left/right should still do the right thing.
Huh? Ctrl+left/right switches spaces on my system.
Max
I'm having the same problem, I prefer using colons to logically
separate labels of any kind (including citations) so I can jump back
and forth easier (with alt + left/right), but I'd always get duplicate
parts.
A fix would be much appreciated :-)
Max
I am currently writing a many-file textbook using a master.tex file.
To label figures, tables, sections, etc. without a collision of
labels I have been using the convention:
chapter-name:section-name:my-label
So, for instance, I have a the following in the file which labels an
example which has to do with the tension in the string of a pendulum
in the section "Pick A Nice Point" in the chapter "Answer Strategies"
\label{answer-strategies:pick-a-nice-point:pendulum-tension}
Now, when I try to do completion
\ref{answer-stra[[press Alt-escape, select completion]]}
I wind up with a duplication of anything that comes before the last
typed dash:
\ref{answer-answer-strategies:pick-a-nice-point:pendulum-tension}
instead of the expected:
\ref{answer-strategies:pick-a-nice-point:pendulum-tension}
Another example below.
Does anyone know how to work around this? I've already typed about
one hundred labels and references, and I so far I have put up with
correcting the completion each time. It's getting old, though.
Thanks a lot,
Evan
--------------------------------------------------
Another example would be:
\ref{answer-strategies:pick-a-nic[[Alt-escape]]}
yields
\ref{answer-strategies:pick-a-answer-strategies:pick-a-nice-
point:pendulum-tension}
instead of
\ref{answer-strategies:pick-a-nice-point:pendulum-tension}
Hi,
I just wnated to commit some stuff MAcromates' review trunk by using
the Subversion Bundle, but I got this error message:
svn: Commit failed (details follow):
svn: Can't create directory '/home/duff/svn/Bundles/db/transactions/
10300-1.txn': No space left on device
Is there a solution to that problem?
Many thanks in advance,
--Hans
Hi,
I've searched the help and used Cmd-Ctrl-T with some words but could
not find this.
I want to see in the project drawer the current file being edited. Any
quick shortcut for this?
Thanks,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo(a)simplicidade.org
Use XMPP!
Hi,
I just uploaded the bundle "GetBundles" to the review trunk.
It is the first try to provide an easy and hopefully fast GUI to
install additional bundles hosted on the svn repositories Mactomates
Bundles, Macromates Review, and the git repository at github.com.
There is a tiny screencast:
http://www.bibiko.de/TM_GetBundles.mov (5MB)
It is implemented as an async DIALOG window showing a table of all
found bundles in the three repositories as 'Repository' (B := Bundles,
R := Review, G ;= GitHub), 'name', 'description'.
If one invokes that window firstly it looks for the all bundles at
these repositories. If it finds a bundle description in the cache file
for a given bundle it displays that description; if not it shows "not
yet downloaded". At the bottom you will see how many bundle
descriptions are missing. For the github it always downloads the
descriptions, meaning these descriptions aren't cached. If there are
some missing one can press the "update" button. The table and the
cache will be updated.
The GUI provides a search field. One can search for names and/or
bundle descriptions. The search can be restricted to a given
repository, and in addition there is also the chance to search by
using a regexp à la ".*rtf.*[cd]op.*".
One can select one or more bundles (from different repositories) and
press "Install Bundles" (one also can double-click). Furthermore one
can select the installation target Prinstine Copy, ~ Bundles, App
Bundle, etc. or 'user defined'. If 'user defined' was chosen one can
select a folder.
The script will install a bundle by using svn (bundle intern or
TM_SVN) or 'git clone' (git or TM_GIT). If git is not installed it
will download the bundle as zip file from github and installs that one.
There is the chance to show the installation log file.
Next there is an 'Advanced' button. It opens a drawer with up to now
one button "Update TextMate's Support Lib" which installs the latest
Support/lib items.
If a folder already exists the script will ask you what to do. You can
cancel or replace the old one. If one chooses 'replace' the script
will backup the old folder as OLDFOLDERNAME + a time stamp for safety
reasons.
After installing a Reload Bundles will be done.
The entire script works with DIALOG1 or, if installed, with DIALOG2
If someone wants to test it you can check out it from the review
repository and just download it via
http://email.eva.mpg.de/~bibiko/downloads/textmate/GetBundles.tmbundle.zip
Please, for the first time you should select a 'user defined' folder
as installation target.
Furthermore I would be pleased if a Ruby expert can go through the
code. I'm not the Ruby specialist ;)
I tried to get rid of all circumstances, esp. for errors. All relevant
commands are wrapped into timeout and rescue blocks.
But maybe I forgot something ;)
The only way to close that window is to press the Cancel button or
simply ESC. OPTION+W won't work. The script makes usage of some
threads, thus these threads should be aborted safely.
All errors, installation commands will be written into a log file
located in the bundle's lib path. This log file will be erased each
time if one invokes "GetBundles".
I tested it on Tiger 10.4.11 and Leopard 10.5.4 on a ppc Mac with
DIALOG1 and 2.
I didn't use the command line tool 'textmate' and 'thor'. By my
opinion it is 'only' command line tool.
Any comments?
Does the script run?
What is unclear?
What is ugly?
What was misspelled?
Are there any fatal errors or freezing stuff?
What else can be done?
If a fatal error occurred and the window freezes at the screen, you
can destroy that window by entering:
"$DIALOG" - l TOKEN or "$DIALOG" window close TOKEN for DIALOG2
The token can be found at the beginning of the log file.
Please also check if there are still running a Ruby, git, svn,
tm_dialog(2) process in the Activity Monitor.
Thanks,
--Hans
To reproduce:
- Have some folded blocks
- Tripple-click-drag downwards to extend selection by lines
- Blocks are unfolded, but the scroll bar is not updated
The only way to get to the text that fell through the bottom is to
manually fold/unfold something.
I'd take an alpha of avian over a bugfix though... Soon?
Gerd
Hi,
regarding to the issue tmbundles what's about tmCommands?
I could imagine that there are quite a few very useful tmCommands on
the market.
These tmCommands could be hosted at github like:
sort-table-tmCommand
show-duplicate-lines-tmCommand
Then I could add an additional tag tmCommand to GetBundles.
THese tmCommands will be installed into the user's tmbundle.
Maybe the same for tmSnippet, tmMacros, tmPreferences, tmTheme ?
--Hans
I am a heavy user of the completion key (escape) in LaTeX. At
present, when I press the escape key when I am inside a \ref{}
command, it offers me the first completion that it finds in the list
that it generates when I press the alt+escape key inside a \ref{}
command. That list is alphabetical (so far as I can see). It would be
more useful (for me) if instead it offered as its first choice the
contents of the most recent \label{} command, and then offered them
in reverse order. (That is, if it behaved like it does when it is not
within a \ref{} command.) Indeed, it would be more useful (I think) if
the alt+esc key produced its offerings in reverse chronological order
when pressed within \ref{}.
Is it possible to manipulate the order in which escape offers up its
completions?
Many thanks,
Kyle
I'm embarking on a Firefox extension, which means I'm about to meet XUL.
Is there a XUL bundle for TextMate? It doesn't appear in the Bundles
trunk, and my Google search does not encourage me, but it would be a
help.
— F
Hi Allan and friends,
I have a source tree structure like this:
www/
site/
index.tcl, .adp
one.tcl, .adp
edit.tcl, .adp
item/
index.tcl, .adp
one.tcl, .adp
edit.tcl, .adp
The fact that files are named the same, but in different directories:
- Confuses both the Cmd-Opt-Up "Go to Header/Source" feature, which
will gladly find www/item/one.adp when I'm editing www/site/one.tcl. It
would be good if it would prefer the file in the current directory when
one exists. Otherwise, it's a great feature.
- Similarly, when using Cmd-T "Go to file", which I use almost
exclusively to open up new files now, it would be great if I could
write "itemonetcl" to get item/one.tcl, as opposed to site/one.tcl.
Currently, it doesn't take the path into account at all.
I can see some downsides to changing current behavior, too,
particularly with the Go to file feature.
But let me know what you think.
/Lars
The current Documentation for Word / Selection and Documentation for
Selector in the Objective-C bundle doesn't find a many of the classes
and selectors for lots of things now in Leopard (CAAnimation, for
example) or in the iPhone SDK.
Having looked at the existing implementations of these commands I
decided it would be easier to replace them rather than hack what was
there already. My implementation of these commands uses an Apple
supplied tool (docsetutil) to search for the word, etc. in the docsets
so don't need any private index lists to find words quickly. This has
the big advantage that the index is always up to date and covers every
framework. The code is a lot simpler as well.
The only downside I can see is this may only work with Leopard - I
don't know and don't have any easy way of finding if it works with
Tiger. I didn't work through all the ramifications of the original
selector identification code so it is possible my version has some
holes - I have tried it with lots of examples and it seems to work,
but if any problem cases are discovered I will be pleased to fix them.
To install this version copy the enclosed ruby file to /Applications/
TextMate.app/Contents/SharedSupport/Support/lib/ directory and edit
the two commands (or make two new commands) as follows:
Documentation for Word:
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/docset_query'
documentation_for_word
with input, output and scope selector as per the original. Will show
a list of candidates if more than one and also prefix them with the
language if more than one is present (hint try selecting init outside
of a [ ].
Documentation for Selector:
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/docset_query'
documentation_for_selector
with input set to "Entire Document", output "Show as Tool Tip" and
scope selector as per the original.
If there is interest in absorbing this work into the official
distribution that is fine by me and I hope I haven't committed any
sins in where the helper file is stored.
Dave.
Hello All
Been using TextMate for 2 weeks now and love it.
I am trying to create a macro to search a word under the cursor when I press
Ctrl+. These are the steps I follows: http://pastebin.com/m4418e1bd and this
is what I get in macro editor: http://i36.tinypic.com/344cwm1.png . It seems
to be working but when I press Ctrl+. next, it searches for the word that I
used to record the macro and not the current word under the cursor.
What am I missing or doing wrong?
--
Ritesh
http://www.riteshn.com
I had occasion once to increase the font size of the the text window with
command +. However, after returning the font size to normal with command
-, every time I open a new window it is in the increased font size. I
have tried restarting TM with the fonts at the desired size but the
problem persists. Is there anyway that I can stop this effect? Thanks
very much.
All the best, Mark
Hi everyone (this is a debut),
so far I've been using TeXShop for my LaTeX writing. I've written an
extension to it that allows me type all kinds of Unicode symbols
(such as greek letters, relation symbols and whatnot) in TeXShop which
get converted to LaTeX code (so "≤" becomes "\leq" etc) on saving (or
loading) based on a 1-1 mapping list. Thus, the text is readable on
screen while the code remains portable.
Now, I'd like to switch to Textmate because of its better project
management (and because I've paid for it...). I wonder whether I can
keep this functionality on which I heavily depend. Are there auto
replace on save/load solutions available? Sorry if this has been
discussed before (although I haven't found it) or it's obvious (though
I hae used TextMate for a while, I didn't do much customizing).
Best,
Jonas
New TextMate user coming from BBEdit. How do I enter single or double
curly quotes? In BBEdit it is option-' or shift+option-", but I can't
figure it out in TextMate. I typeset a lot of content while coding,
and knowing how would be a huge timesaver.
Thanks in advance!
d
I just wanted to confirm that the TextMate development team/community
is aware of the following issue with Rails 2+ tests run from within
TextMate. Apparently, the Rails core team believes TextMate should
adjust to accommodate:
http://groups.google.com/group/rubyonrails-textmate/browse_thread/thread/aa…
Michael
Hi,
sorry for this maybe naïve question.
How can I return more than one argument from a async window.
I have a 'OK' button which is bound to target 'selection.controller'
using 'returnArgument:' and then I have two arguments bound to a
popup list item and the selected entries of a table. Fine.
But I can only return either the popup item or the table selection.
But I need both.
If I bind the button to performButtonClick: I get the entire
parameters but the table is very large.
But I don't get the returnCode or returnButton (?)
Is there a way to return more than one argument?
Thanks in advance.
--Hans
I have been trying to improve the syntax highlighting for python but have
hit a road block getting the keyword "self" to highlight in functions
variable declarations. Is there a set of keywords that are always matched I
can put it in since it is a reserved word.
Also, is there a way to search a grammar file in the bundle editor, since
finding the entries I need has slowed down my progress.
- Matt
> Because the labels of listings in LaTeX are given as
>
> \lstset{what=ever, label=Woohoo, something=other}
>
> the label_scan method in LaTeXUtils.rb doesn't pick up the labels at
> all. The attached patch will hopefully fix this issue properly.
>
> --Thomas
i've noticed an interesting phenomena where i run convert tabs to
spaces on an entire buffer,
go to a line that had tabs, hit the delete button and it sometimes
takes me back a full tab stop
seemingly indicating the the conversion of tabs to spaces wasn't done.
would this be the case or is there some trickery involved that just
makes it look that way?
Hi there
I'm using Gentoo Prefix to get all the funky tools and therefore the PATH is
to be overridden with /Gentoo/bin and friends in order to precede the stuff
that comes with Mac OS X.
However, some TM plugins seem to have a problem with that - such as the
RSpec.tmbundle. It's nagging that some gems are missing which means that
it's not using the Ruby installed under /Gentoo but the one bundled with the
OS. I've tried to set PATH in TM's preferences but that doesn't change a
thing.
Anyone a solution for this at hand?
Thx... -sven
--
View this message in context: http://www.nabble.com/PATH%2C-oh-PATH-tp18367221p18367221.html
Sent from the textmate users mailing list archive at Nabble.com.
I don't know what I did, or how I did it, but somehow TextMate places
the cursor, by default, out in the void, where there are no tabs,
spaces, or characters.
For example: I'm on line 1, column 80. Line 2 has 5 characters. I
press down. I'm on line 2, column 80. I type the letter 'a'. 74
spaces are inserted up to column 80, then the character 'a' is inserted.
How do I switch this behavior back, so that pressing down brings me to
the end of the line, but not out in the void?
Thanks!
Tim
Hi,
sorry if this question will be asked again but I didn't find something
relevant in the mailing list.
Supposing I have a NIB with five buttons. One of them is a Cancel
button and all others are named 1 to 4.
I open that NIB asynchronously. Fine.
But now I want to write a script which listens at that NIB window to
get the button code which is pressed.
If the Cancel button is pressed I want to destroy that NIB window. Fine.
If one of the button 1 to 4 is pressed I want to execute a command
depending on what button is pressed but the NIB window should be kept
on the screen and waits for further input from the user.
Is this theoretically possible?
Thanks in advance,
--Hans
I'm new to TextMate, mainly used it for LaTeX editing so far and very
much like it. I know it's not a new issue (http://lists.macromates.com/textmate/2007-October/022871.html
etc), but I am seriously missing any way to wrap my text -- I am
collaborating via svn with coauthors who are working on different
platforms (and some of them with all-too-basic editors) and hence,
having paragraphs in long lines is out of the question. As suggested
before, hard-wrapped paragraphs are certainly not the perfect
solution, but they work reasonably well with line-based diff tools
(and there is no way I can get my coauthors to use others).
It is not necessarily a question of automatic hard-wrapping. I would
be fine to ``manually'' do that only before committing a file. For now
it's opening it in Emacs and hitting C-c C-q C-e. Does it seem
feasible to extend the Control-Shift-H "Tidy" functionality of the
LaTeX bundle to include hard-wrapping at a user-specified point, maybe
along these lines: http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/
? Would also be great if one was able to do that by paragraph (Emacs
Alt-q).
Another thing is that I am using the harvard citation styles and it
feels a bit strange to have \cite{.} highlighted differently than
\citeasnoun{.} etc. Can anybody help me out on whether the list of
citation commands is adjustable and if so, how?
Many thanks and best wishes,
Hans-Martin
On 5 jul 2008, at 23.22, Gaby Vanhegan wrote:
> I know, I know, I should really be using flashlog.txt but I despise
> the Flash Debug Player with a passion.
>
> I've been fighting with a bunch of different flash loggers and so
> far the only one that I've made work is Xtrace; it connects but then
> logs:
>
> <policy-file-request/>
>
> And promptly disconnects. The debug output is printed over the
> flash movie which is better than nothing but hardly usable. I
> simply can't get it to log anything more, nor can I get it to send
> back a lax policy that will permit the logging. Zeroi just plain
> doesn't work with Xtrace, or at least I can't make it work. Xtrace
> was fantastic while it worked (in older versions of TM) but since it
> was upgraded a while back (and I am now running Leopard) it refuses
> to work. Ah, the joy of Flash security issues.
>
> Other than flashlog.txt, what are my other possible options for
> logging trace() calls when building AS2.0 apps in TextMate? What do
> you use? How did you make it work?
>
This isnt excatly what you asked for in regards to trace(), but ive
found http://code.google.com/p/flash-thunderbolt/ to work wonders, it
exists for both as2 and as3 projects. For as2 projects it requires
firebug http://getfirebug.com/ but if youre not using firefox you can
also use http://getfirebug.com/lite.html
Hi,
does anyone know why I'm not able to do this on Mac OS 10.5.4 ppc with
git 1.5.6 in /usr/local/bin
git clone git://gitorious.org/git-tmbundle/mainline.git Git.tmbundle
Yesterday I did the same on my Tiger machine without problems.
But on my Leopard machine I always get:
Initialize Git.tmbundle/.git
Initialized empty Git repository in .../github/Git.tmbundle/.git/
gitorious.org[0: 67.207.146.32]: errno=Operation timed out
fatal: unable to connect a socket (Operation timed out)
My firewall is set to allow all incomings.
Any ideas?
Thanks,
--Hans
Hi,
I am trying to get this basic command to work. Here's my script:
tell application "TextMate"
activate
make new document
end tell
I am getting an error message in German which loosely translates to:
"TextMate" has recieved an error: Error in the AppleEvent routine"
What could I be doing wrong?
Thanks.
André
I am new at TextMate and I program mostly in Fortran. Could anyone
please point me to a Fortran bundle and to instructions on how to
install it.
Thanks
Daniel G. De La Torre Ugarte
> ... my idea was to combine LaTeX and Rdaemon. I wrote a new Language
> for LaTeX called "LaTeX Rdaemon". ...
>
> Are there any comments about my approach? What kind of side-effects
> could be expected?
I'm wondering what the best way would be to deal with tabular output?
Would you want to break out of verbatim and put it in a tabular
environment or just leave it as is?
I suppose you'd also have to break out of verbatim to print the figure.
> Would this be useful at all?
Definitely - I'd be keen to experiment with it when you're ready!
Sean
For a while, there was this great feature in RubyMate. When you select a
term in your script and press control-H, RubyMate would consult ri (or fri
or whatever it is) and, if there were multiple alternatives found, would
list them all in a little tooltip or popup menu beneath the mouse. So if you
said "gsub" you might see Kernel#gsub, String#gsub, and so on. This is a
menu so you could click an alternative and do a lookup of that in the help.
Very nice.
The thing is, though, that this feature has completely vanished as if I'd
only dreamt it. Does anyone know how I can get it back?
RubyMate's ri interface was really pretty good, because so much of it was
clickable links. The Terminal ri interface is very inconvenient because none
of it is clickable links, but that's pretty much what I'm stuck with now.
It's so disappointing that I'm thinking of writing my own ri interface app
for Mac OS X (stop me if there is one already). m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
I was getting errors (Ruby errors, I believe) when trying to use the
TODO List bundle, so, finding the "TODO Bundle Broken" thread in this
list and trying to follow the advice there, I deleted some bundles (and
some unused plugins I discovered in the process) from
"~/Library/Application Support/Textmate" and also updated all the
bundles in my "/Users/mjg/Library/Application Support/TextMate/Bundles/"
directory from subversion.
Now the TODO List bundle is working beautifully (for the first time!),
but when I try to use PyMate "Run Script" command to run a Python file I
get this error: "-e:2:in `require': No such file to load --
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor
(LoadError) from -e:2". It's true that there is no such file--in fact,
the "/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/"
directory does not exist. Why is this error happening and what should I
do about it?
For what it's worth: other PyMate commands (such as "Run Script
(Terminal)" still appear to work correctly.
I'm running the latest "Cutting-Edge" TextMate, Version 1.5.7 (1464).
Thanks,
Mike
Hi,
while developing the Rdaemon I had one single question in my mind. How
can you integrate Rdaemon in documents like LaTeX, HTML, Markdown etc.
Up to now I fiddled around with automatically copy&pasting R stuff,
thought about modifying Sweave etc.
But I believe I found hopefully a very easy solution.
One only has to use TextMate's wondrous facilities. ;P
Everybody knows, e.g. if one writes an HTML doc you have the HTML
scope with all commands behind it. Then one inserts a new CSS
declaration. If you are inside of such a CSS tag you have all CSS
features available. This is done in the Language setting for HTML.
This led me to an idea.
E.g. LaTeX:
If I'm writing an article or paper about my analyses of a topic, and I
did this by using R; then I usually explain how I did this with R.
Or if you give a R course and you want to document it, or if you write
a book about R, ...
One can use Sweave to typeset it. Fine.
BUT, my idea was to combine LaTeX and Rdaemon. I wrote a new Language
for LaTeX called "LaTeX Rdaemon". The only thing I did is to insert an
include statement
include = 'source.rd.console'
within the 'verbatim' environment.
OK. How does this work now?
You can start the Rdaemon and close that window. Then you open a LaTeX
file, set the language to "LaTeX Rdaemon".
Now you can write your LaTeX stuff, but if you declare a
\begin{verbatim} block AND within that block a line begins with "> "
then you are talking with the Rdaemon with all features coming from R
and Rdaemon. Press RETURN and the line will be executed and the result
will be written into the TeX document. (Remember the Rdaemon runs
further in the background)
I recorded a very tiny movie to illustrate that.
http://www.bibiko.de/TM_Rdaemon_Latex.mov
And this is only a test without fine-tuning! One can think about to
write some code to automate some things like:
- if a line starts with "> " within a tex document this line and the
output will wrapped automatically by a verbatim block after pressing
RETURN
- if one plots something and the Rdaemon recognizes that the command
is coming from a tex document which is saved in a certain folder then
the Rdaemon will plot this image using a Quartz device, dev.copy2eps(/
TEX_FOLDER/THE_NAME) [the Quartz is still open for further stuff!],
and return something like:
\begin{figure}
\begin{center}
\includegraphics{THE_NAME}
\end{center}
\caption{Scatter Plot with Regression Line}
\label{fig:FOO}
\end{figure}
[FOO could be calcualted, I guess]
etc...
By using this approach one could do this also with Markdown or HTML
etc. The only thing is to expand the Language syntax, and to fine-tune
the Rdaemon.
Are there any comments about my approach? What kind of side-effects
could be expected?
Would this be useful at all?
Kind regards,
--Hans
Hello all,
I am wondering if there is a way to automatically convert a VIM
colorscheme to a TextMate "Fonts & Colors" file.
The colorscheme in question is the ever-popular Zenburn
(http://slinky.imukuppi.org/zenburn/).
Thank you,
Brian
Hi, I tryied to install textmate on my new computer, but it does not
run, everytime I start it, it says my serial number is invalid,
probably due to credit card issues, but I didn't ever registered in
first place, I tryied to unregister the app thru menu => registration,
but it's not available, is there anyway I can "undo" this
registration? I really hope so, cause I'm looking forward to
registering TM,
thanks in advance
Igor Ranieri
hi, I'm just answering myself.. :P
I really have no ideia of how it happened, but the lock disapeared,
now I can register it with my own key.
Thanks anyway =D
Igor Ranieri
Hi,
I've just purchased a new computer which has
enabled me to switch over to using
Changes.app for my diff uses. Unfortunately,
the TextMate integration assumes Subversion
for version control whereas I use Mercurial.
I've made the suggested additions as mentioned
on the Changes Wiki and everything works great
from the command line, but the TextMate integration
is failing me. I'm not familiar enough with either
the Changes or the Mercurial bundle to make the
changes, so I'm appealing to the TextMate community
for help.
Is there some way I can either switch the Changes
bundle to use Mercurial or alternatively, switch the
Mercurial bundle to use chdiff and my merge script
instead of just diff?
Thanks,
Tim Lahey
Hi,
I cant no longer invoke the project drawer.
I have installed 'missing project drawer plugin' weeks ago, working
under Leopard 1.5.3.
During the last session working with textmate, I have closen the
project drawer and just quit the programm when I was finished.
Now I cant open the drawer again, no matter if I open a recent project
or a new one.
Please can you help?
thanks + cheers!
----------------------------
dennis
Hello,
I've been seeing a weird issue with non-ASCII characters appearing
messed up when QuickLooking a utf-8 file saved from TextMate. Here is
a screenshot:
http://vnoel.files.wordpress.com/2008/06/ql-bug.png
The same problem appears when opening the file with TextEdit --
non-ASCII characters are messed up. Unix tools (file, cat) show the
file correctly. After digging around I found a thread [1] on the vim
mailing list that says it is related to extended attributes that are
set by TextEdit and that need to be present for QL to correctly
recognize the utf8 encoding.
If you set the extended attribute manually on the utf8 file, non-ASCII
characters appear fine in QL. This looks like a bug in QL which, given
its lack of publicity, is rarely triggered and probably due to
something specific to my setup. I'm not sure what to do next, apart
from applying 'xattr' to every text file I save with TextMate :-) Does
anyone has advice ?
I'm sorry if this issue has already been discussed previously on this
list or elsewhere, but I couldn't find any other reference using
Google.
Thanks !
[1] http://www.nabble.com/MacVim-file-encoding-and-Quicklook-td17289501.html
Cheers,
Vincent Noel
in the attachment you will find a quick-and-dirty Relax NG bundle. it
doesn't do much, apart from syntax highlighting for .rnc files (the
cool "compact" version of Relas NG) and a few snippets for attributes,
elements and common datatypes (the ones I was using, actually :).
afaik nobody else worked on this stuff, so it might come in handy if
you end up working on huge rnc files (beats xml schema by a HUGE
margin). the little I've done is in the public domain, so use it as
you see fit.
cheers,
d.
Dear users of the textmate bundle for Latex,
I'm using the "Watch Document" command (is latex_watch.pl in version
2.8) in textmate to have my masters thesis always up-to-date when I
change something in the tex file and hit save.
Since a few days this doesn't work as before, cause I'm running in a
closed loop. When textmate starts watching my main document (the
thesis is splitted in several files) it successfully compiles the
document with pdflatex and displays me the result in my preferred
viewer Skim. But after having done this it recompiles the whole file
again and then reloads the file in Skim.
This is pretty annoying behaviour, cause I haven't changed anything in
the main file, also it takes loads of cpu, speeds the macbooks fans up
and is constantly refreshing Skim.
Wether there is a bug of "latex_watch.pl" or it observes a file which
is updated through the initial and every following compilation and
therefore runs in a closed loop.
I tried two versions of the latex.tmbundle so far. I think one was the
original one which came with textmate and the other one was the one
from the svn repository as of yesterday. Both show the same behaviour.
My question is now. How can I analyze the problem (closed loop). Is
there a way to put the latex.tmbundle in debug mode so I can see some
log messages? I tried this already by specifing the projects variable
"TM_LATEX_WATCH_DEBUH = dialog" but without any success. I didn't
found the debug output on my disk.
What are other ways? Whats are your advice?
Many Thanks,
Jan
Hi, I've been looking for a reponse, searching the net and mailling
list archives, but could't find an answer to this problem, whenever I
try to run tm_dialog, to i.e. open a window just created, i got the
error:
$ tm_dialog -p {} ~/Desktop/Test.nib/
tm_dialog: failed to establish connection with TextMate.
Hope I get a solution now :P
--
Thanks in advance,
Igor Ranieri
In the Help for TextMate, the following are given as examples of legal
selectors (with explanations of what they mean / match):
text.html.ruby, text.html source.ruby
string
string.quoted
source.php string
text.html source.php
source.ruby string
source.ruby string - string source
string, comment
So, operators here are space, comma-space, and space-minus-space. It appears
that space has highest priority, then space-minus-space, then comma. (Or so
I would presume.) So far, then, it all seems quite coherent; I grok
prefix-matching, descendancy, exclusion, and OR (the comma is apparently an
OR operator, even though the help rather confusingly seems to describe it as
an AND).
Then, in a blog entry
(http://blog.macromates.com/2005/introduction-to-scopes/), additional info
is given:
(a | b) & c - d
I find that last one incoherent; I don't get where the pieces are or how the
operators here fit, priority-wise, with the previously given operators. For
example, which of the selectors given in the first list would be a legal
substitute for "b" here? And conversely, for which expressions in the first
list of legal selectors, if any, could this expression be substituted?
So, my question is: Can I somewhere get a formal coherent definition of the
rules of selector syntax?
m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
I've searched everywhere and it looks that it hasn't been raised before (?)
Is there any way to have mark occurrences feature in textmate ? via plugin..
script.. whatever.
It's very useful functionality and coming from eclipse I miss it heavily.
Thanks for any info,
Mariusz Nowak
--
View this message in context: http://www.nabble.com/mark-occurrences-feature-tp18181319p18181319.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello All,
The JavaScript language highlighter doesn't highlight regular
expressions inside of an array. Here is a code sample that shows some
simple test cases and only a few pass:
/test/
[/test/]
[1,2,/test/]
[1,2,/test/,'blah',/test/]
[ /test/, /test/ ,/test/ ]
new Array(1,2,3)
new Array(/test/, /test/, /test/)
"blah".match(/test/);
I haven't worked much with languages before, but I assume all that
would be needed would be including "string.regexp.js" inside of an
array class or maybe modify "punctuation.definition.string.begin.js".
I couldn't find any way to do that. I also tried adding a "," to the
list of characters that could come before the regexp itself but it
didn't seem to work, but I'm still new.
Can anyone recommend a solution?
Also, can anyone point me to where I can find the definition of
"punctuation.definition.*" and the like?
References I have look at:
http://blog.macromates.com/2005/introduction-to-scopes/http://manual.macromates.com/en/language_grammars.html#naming_conventions
Thanks in Advance,
Joseph Pecoraro
Hi,
In Python Bundle for "Debug Script in Terminal":
tell application "Terminal"
activate
do script with command "$TPY -m pdb $TM_FILEPATH"
end tell
doesn't work for TM_FILEPATHs which contain white spaces.
Better:
tell application "Terminal"
activate
do script with command "$TPY -m pdb '$TM_FILEPATH'"
end tell
Cheers,
--Hans
Hey Everyone.
We have superseded ScriptMate with a new API method in the TextMate
ruby module. It is called Executor.run. I've written a little
explanation of what Executor is for, and how to use it:
http://cs.pdx.edu/~ajross/executor.run.html.
Big thanks to Allan and Luke Daley without whom Executor would not
have been possible.
–Alex
Dear textmate users
I apologize if this problem was already described somewhere, but I
could not find a solution.
I'm using Textmate build 1436 and the LaTeX bundle to typeset
some .tex document.
Everything is working, but I always get the message
"There was a problem reading the preferences file, continuing with
defaults"
at the top of the "Typeset & View" window. When I go to the bundle
preferences I also get a floating yellow message saying
<p class="error">There was a problem reading the preferences file,
continuing with defaults </p>
The problem is that I can't change any bundle preferences, so for
example I can't make the log window stay open after typesetting.
I found someone with the same problem, but there it seemed to be
caused by build 1455, and when she reverted to 1436 it was gone.
Any suggestions? Should I install the latest build?
Thanks in advance,
Benjamin
Hello,
I've noticed that when Textmate saves a file it leaves a backup "._"
copy behind. Is there any way to prevent this from happening? There is
nothing in the Preferences that indicate any control over this.
Thanks,
Adam
Hi,
I just checked out the latest DIALOG2 code, compiled it on my good
old Mac OSX 10.4.11 ppc.
If I invoke an HTML tooltip the webview is correct but it will be
placed at position (0,0) bottom left. The frame size fits.
I tried to figure out why, but I didn't see it.
Is this reproducible?
Here a tiny test command:
Type
"$DIALOG" tooltip -f html <<< 'Hello <b>World</b>'
and press CTRL+R
--Hans