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