A recent problem cropped up in my use of the LaTeX bundle recently. Since r9295, I get the message I paste below when I try to insert a Ref-TeX Style citation in my document. This is on a mid-2007 macmini with OS 10.7.4. On my other machine, a recent macbook with OS 10.8.1, I've been updating TextMate regularly, right to r9300, and don't have any problem. My TextMate setup is the same on both machines (or so I think). How can I fix this? Any pointer appreciated,
--Gildas
Message:
Failure running “Citation (Ref-TeX Style)”.
sh: : command not found
/Users/gweltaz/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:182:in `load': Cannot parse a NULL or zero-length data (OSX::PropertyListError)
from /Users/gweltaz/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:182:in `menu'
from /Users/gweltaz/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:177:in `popen'
from /Users/gweltaz/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:177:in `menu'
from Citation (Ref-TeX Style):18
From the TM2 release notes:
2012-08-31
- Improved alignment of the gutter images and made them adjust to font size. Dennis Vennink
While I appreciate the new customization options here (have already added the gutter styling options to my own, personal theme), the new sizing results in tiny icons for me (using 12pt Inconsolata font). Does anyone else see this too, or is this just me? And, if so, is there any possibility of adding an icon size factor to the cornucopia of gutter styling options?
Thanks,
-- Phil
Hey guys, I'm trying to write a grammar file for a MATLAB-like language,
and I'm having trouble with the transpose operator. The transpose operator,
represented by the single quote, can be used in a variety of different
situations:
# Transposing a variable:
myMatrix'
# Transposing the result of a function:
myFunc( myMatrix )'
# Transposing the result of a parenthetical:
(myMatrix - 1)'
# Transposing a matrix literal:
[1,2,3]'
The first two forms are not difficult, they can be matched with simple
"match" forms. However, the parenthetical and matrix literal forms are
more difficult; using begin/end blocks in the pattern matching causes *every
*open parentheses or open square bracket to match, regardless of whether or
not there is a transpose operator matched with the closing parentheses or
square bracket. Not only does this cause performance issues, this causes
issues with nested operators such as:
([1,2,3]' - [4,5,6]')
Any ideas on how to do this the proper way? I don't really care about
matching the parentheses or the square brackets; I just care that they are
present. Positive look-behind assertions would work fabulously here, but
they can't be variable-length, so that's a no-go here.
Thanks!
-E
Hi,
I am trying to run python (the enthought python distribution version) via cmd-R in TM2.
I set under Preferences - Variables "TM_PYTHON" to /Library/Frameworks/EPD64.framework/Versions/7.3/bin
I have no shebang line at the beginning of the script.
When I hit cmd-R, it results in
Program exited with code #1 after 0.00 seconds.
What is wrong with this approach?
Additionally, also under Preferences - Variables "PYTHONPATH" to point into the paths where I want it to be - is this the right way?
Thanks for your help,
Cheers,
Claus
Any users of CTags might find this useful. It uses the history file as a stack of places to return to. Create a new command in the CTags bundle.
Name Go Back
Scope Selector source
Key equivalent ^[
Save nothing
Input nothing
Output discard
#!/usr/bin/env ruby -wKU
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate.rb'
history = ENV['TmCtagsHistoryFileName'] || 'tmtagsHistory'
lines = IO.readlines(history)
if lines.shift =~/=file:(.*?)&line=(\d+)/
File.open(history, 'w') {|f| f.puts lines}
TextMate.go_to :file => $1, :line => $2.to_i
end
Dave.
I have done this loads of times in TM1, but I am failing to change the invocation key for looking up a word in ctags. The default is cmd click but I wan to set ctrl ] so I don't have to use the mouse. Should be simple - just edit the key equivalent in the bundle editor and the job is done. Unfortunately when I do this it makes no difference.
Dave.
I don't know whether it's intended behaviour, but I find it counter-intuitive:
When the file browser has the focus, starting a Find (Cmd-F) with search scope 'Document' or 'Selection' does not initiate a search (or give a warning).
The expected behaviour is to search in the currently open file (or, if one wants to be fancy, search in the files selected in file browser).
And another anomaly I have just spotted testing this:
Having one file open and some text selected and the focus on the editor, opening the Find window with Cmd-F , the Find window opens as expected with 'Selection' as scope. However, actually performing the search finds the needle in a different file within the same project; it'll even open it if it's closed.
Strange.
Jonas
Hi Allan & everyone,
I just made an effort to work with TM2 over the past few days, and love many aspects of TM2, but I am just not happy with the design and functionality of the File Browser in TM2.
So could someone please clue me (us) in about the plans for the TM2 file browser.
1) Is it / Will it be possible for users to change the background colour of the file browser?
I'm using "Pastels on Dark" theme, and the file browser pane is a bright distraction for the eyes.
2) Why have some of the core functionality of the file browser (project drawer) changed so much between TM1.5 and TM2?
a) Why do we need to double-click on the file name to open the file, but can single-click on the tiny icon?
b) Is this by design or a temporary bug that will be fixed some day?
c) Why have the "Create New File" functionality been removed from TM2?
d) Is this by design or another temporary issue that will be fixed some day?
e) Also, why does TM2 not remember the previously saved file name and format like TM1.5 does?
I love the SCM integration in the file browser, but other than that the TM1.5 file browser was much better!
By the way, I really like the newly designed "update window change log" I just saw after updating TM2 this morning.
Kind regards,
Matz
Dear all,
Another question regarding the subversion bundle:
I understand the scope of the operation is selected by marking the file or folder in the file browser pane. In TM1 the parent folder had its own item at the very top, so it could be selected instead of a subfolder or file. Now, if my list of files is shorter than the space in the file browser pane, I can click in the empty space to get the parent folder as scope. However, I haven't found how to do this if my list of files/subfolders fills the entire pane.
And here are some other things; sorry if they've been covered before, but I didn't see them mentioned:
Is it possible to detach the results view from the window? For both tasks I use (LaTeX type setting and SVN) having this view attached to the main project window wastes a lot of space, as the information is concentrated in the left third or so of the window. Vertical extent of that window is more important.
So can I get the old detached windows back?
Can bundles in file browser get a triangle so they can be unfolded? Having to do the right-click, 'show package content' thing is a bit cumbersome (especially since you then dive into the hierarchy).
Find window: can the result view for 'find all' get horizontal scrolling and and option for line wraps? Right now I cannot see the results of my search for long lines.
Thanks,
Jonas
PS: I'm very, very happy to see the frequent updates. I'm prepared to pay (again) for TM2 once it becomes stable.