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