When compiling LaTeX documents, the Typeset and
View pane works properly when invoked from by running
the compile command from the contextual menu, or by
using the hotkey combination. However, when commands
are run by clicking the buttons provided at the bottom
of the T&V panel at the end of a completed command
(e.g. re-run latex, run bibtex), the panel does not
scroll down automagically to follow the most recent
output. This makes it hard to follow.
Hi
I did a quick search of the archives and didn't find anything so if I missed
it, I apologise in advance.
I can't find anything anywhere about being on the Textmate 2 Beta programme
(though I can quite accept that there is currently not such a programme). If
there is such a programme how do I apply to be on it and if there isn't, do
you think you'll create one? (and if so, see previous question :))
Thanks for your time
Teifion Jordan
Hi,
while sitting on the entire R stuff I had an idea concerning Rmate.
If Rmate plots something it will save these images (PDFs) in a
temporary folder, and at the end it will open these files in Preview.
Fine.
My suggestion is, instead of open Preview automatically to display
all images inside of the Rmate output window as pdfs right after the
last output. If one clicks on an image it opens it with the default
application, or one can drag it to a location to save it as pdf.
As demo I did a screencast 9MB
http://www.bibiko.de/TMRmate.mov
Would this be useful?
Best,
--Hans
Hi.
I'm new to Textmate and I love it - but there's one nasty thing I
couldn't get rid of, so I ask you here.
If I copy and paste (CMD-C and CMD-V) inside Textmate, everythings
fine. If I copy (CMD-V) from text from another application, say
Firefox or even Textedit, and I copy (CMD-P) that into Textmate, that
won't work. All I got was something I copied earlier in Textmate. It
doesn't work the other round, copying something from Textmate to, say,
Textedit. Copy/Paste between my other programs works fine, for
instance between Firefox and Textedit.
What have I done wrong? It seems that Textmate uses a different
clipboard than the one from Mac OS (my version is 10.4). How can I
make Textmate use OS's clipboad instead of its own?
Thanks in advance for any help,
Bernd
--
berndschiffer.blogspot.com
Hi,
>> here comes a suggestion for all R users.
>> I wrote a tiny R daemon bundle in order to run R 'inside' of TM.
>> There is no need to start RGUI etc.
>> I found a naive way to do it and it turns out, at least for me,
>> it's quite useful. So my question is whether this approach is also
>> useful for others. If yes, I/we can elaborte this bundle.
This is a fantastically useful prospect for R users: just a vote in
favor of continuing work on this. A functional equivalent within TM to
ESS within Emacs would really break the last strong reason many Latex
+R types have for sticking with Emacs.
Kieran
Hi all,
I'm sure this used to work for me... I used ctrl + shift + ">" as a
shortcut for <% %> or <%= %>
I have been trying this today and it doesn't work. I have recently
upgraded to Leopard. I also use a Matias Tactile Pro 2 keyboard (but I
have tried my Apple BT keyboard and my PowerBook keyboard with the
same effect).
I had a look at the KeyBindings page on the website and also tried Key
Codes. I also checked out the Console log and couldn't see anything
obvious.
Can anyone guide me towards a resolution of this?
Thanks,
Ian.
Hi all. Did you try the new mdfind? it's really fast.
Test it like this: create a command
"Find and Open in Finder"
Input: selected text or line
Output: Discard
Text of the command:
mdfind "kMDItemDisplayName == ${TM_CURRENT_LINE}" | xargs open
If you put the cursor on a line containing
a filename (no path, just the filename complete
of its extension) and issue the command,
spotlight will search for the file and open it.
On my MacBookPro it takes 1/3 sec which
means ten times faster than using the GUI.
Just a test, of course one can do much better
things. For a list of a file metadata
(like kMDItemDisplayName above) use the command
mdls filename
Ciao
(and a happy new year)
Piero
Hi,
I've currently working on a project that targets Rails 1.2, not 2.0.
I've just run 'convert to partial' and got a 2.0 style xxxx.html.erb,
is there an env var or similar I can set to make it use .rhtml instead?
Are there likely to be any other 2.0 only gotchas in the new release?
Thanks
jebw
I am not *writing* XML files, but I often want to understand one --
either just for education or because I need to modify it.
Often the file in question was automatically generated and "ease of
reading by humans" was not part of the process.
Right now, I trying to pull apart a XML file where a single element
contains about 90 attributes. Thankfully, they *do* seem to be
ordered alphabetically, but they are all run together in a single
line. That is, there are no linefeeds between attributes. Which
would be just what I'd like (for readability anyway -- I'm hoping
that "white space is white space and it won't matter whether those
white-spaces are space characters or line feeds).
For this file, using Find and Replace seems to work. (Find
<doublequote><space> replace with <doublequote><newline>). I don't
know enough about XML to know if it always going to be as easy as that.
The XML bundle item "Tidy" actually runs xmllint, but I don't see a
way to make that do what I want.
Searching Google on "XML pretty print" I came up with a number of
hits, but many bits of code were from the year 2000 or so.
Does anyone know of any... contemporary solutions? Or have other
suggestions/ideas?
Thanks!
eo
Hi,
Since I updated to r1455 this morning I have been unable to run tests in my
rails app. RakeMate returns the following error:
Rails requires RubyGems >= 0.9.4. Please install RubyGems and try again:
http://rubygems.rubyforge.org
I have RubyGems 1.0.1 installed and had no problems prior to the update. I
am running on Leopard, upgraded from Tiger, and I am still using my previous
MacPorts Ruby config. The application is Rails 2.0.2. Is anyone else
having this problem?
Peer
On Dec 31, 2007, at 1:04 AM, Hans-Jörg Bibiko wrote:
On 30.12.2007, at 20:13, Sergei Yakovlev wrote:
It would certainly be easier for the average user (and somewhat
more flexible) if TextMate had something like
$TM_SELECTED_TEXT_START_LINE_NUMBER and
$TM_SELECTED_TEXT_START_COLUMN_NUMBER
variables, or, alternatively, slightly changed semantics of
$TM_LINE_NUMBER and $TM_COLUMN_NUMBER variables
so that they always return the starting position of selection
(no matter how the selection was made).
Do you know these variables?
$TM_INPUT_START_LINE
$TM_INPUT_START_LINE_INDEX
Oh, I did not know these existed. Thank you, Hans! These variables
are missing from the official Manual. I decided to check for other
variables, and found that TM_COLUMNS and TM_COLUMN_NUMBER
are missing as well. Should I submit a documentation patch?
Ho-ho-ho,
Sergei Yakovlev
I've created a rather nasty hack to allow one to paste to any online
contact ASWELL as any open chat in adiumx. (current version is only
any open chat). The full source of get_destinations.scpt (found in
TextMate.tmbundle/Support/) is attached along with a screen shot.
Compile it with Script Editor.
On Dec 26, 2007, at 10:28 PM, Allan Odgaard wrote:
On 26 Dec 2007, at 14:28, Сергей Яковлев wrote:
[...]
Suggestion 1. It would be useful if TextMate had
variables like $TM_SELECTION_START and
$TM_SELECTION_END which would return the
corresponding offsets in the file (or the cursor
offset, if nothing is selected).
It does in the form of a line/column position of the start position.
Maybe I am simply misunderstanding you, but are you saying that
TextMate returns line and column position of the start position of
selection?
I'm asking because the $TM_LINE_NUMBER and
$TM_COLUMN_NUMBER variables don't quite work this way.
To illustrate what I mean, let's add a 'Show Position' command
that displays position as a tooltip:
echo "$TM_LINE_NUMBER:$TM_COLUMN_NUMBER"
and type 'TextMate' into an empty document. Now, if we select
'TextMate' with mouse from left to right, the command returns 1:9.
If we select 'TextMate' with mouse from right to left, the command
returns 1:1. Finally, if we select 'TextMate' by double-clicking
between 't' and 'M', the command returns 1:5.
So, these variables actually return the cursor position, not the
starting position of selection and it is impossible to calculate the
starting and ending positions of selection from
$TM_LINE_NUMBER and $TM_COLUMN_NUMBER variables
(without knowing how the selection was made).
The only way to do this (that is known to me) is to write a macro that
first calls a command that replaces selection with itself wrapped in
U+FFFC characters:
echo -n $'\357\277\274'$TM_SELECTED_TEXT$'\357\277\274'
and then calls another command that receives the whole document
as an input and can "find" the selection looking for U+FFFC
characters.
It would certainly be easier for the average user (and somewhat
more flexible) if TextMate had something like
$TM_SELECTED_TEXT_START_LINE_NUMBER and
$TM_SELECTED_TEXT_START_COLUMN_NUMBER
variables, or, alternatively, slightly changed semantics of
$TM_LINE_NUMBER and $TM_COLUMN_NUMBER variables
so that they always return the starting position of selection
(no matter how the selection was made).
The reason it does not use a byte offset is that internally TM would have to
"calculate" this (by adding the length of each line preceding the selection)
and I am generally wary of exporting shell variables that need to be
calculated and have an unknown running time (i.e. in practice the user could
have a million lines and each command execution would then always require a
million numbers to be added together).
I assumed that these calculations were already being performed,
after I had a look at:
$ class-dump -C OakTextView TextMate | grep selectedRange
- (struct _NSRange)selectedRange;
- (void)setMarkedText:(id)fp8 selectedRange:(struct _NSRange)fp12;
and saw 'selectedRange'. But, evidently, something much more
complicated is going on, and I certainly would not ask you questions
about TextMate internal workings :-)
The only remaining question is what symbol to use as a
mark. I decided to use √ (221A, SQUARE ROOT character,
which you can type with Option-V), but I'm not sure
this is the best choice. Maybe it's better to use some
character from Private Use Area (E000--F8FF)?
We generally use U+FFFC, OBJECT REPLACEMENT CHARACTER.
I've attached a new version of macros using U+FFFC to the original ticket.
Happy New Year!
-- Sergei Yakovlev
Hello list,
when running the following simple Ruby-Program:
require 'rubygems'
require 'active_support'
using Command+R, I get the following output:
/Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:84:in
`blank_slate_method_added': stack level too deep (SystemStackError)
from /Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:
84:in `blank_slate_method_added'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
builder.rb:86:in `method_added'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
builder.rb:111
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/
active_support/core_ext/array/conversions.rb:1
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'
... 8 levels...
from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/
active_support.rb:30
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:32:in `require'
from /Users/cypher/Projects/test.rb:2
/Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:84:in
`blank_slate_method_added': stack level too deep (SystemStackError)
from /Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:
84:in `blank_slate_method_added'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
builder.rb:86:in `method_added'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
builder.rb:111
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/
active_support/core_ext/array/conversions.rb:1
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'
... 8 levels...
from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/
active_support.rb:30
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:32:in `require'
from /Users/cypher/Projects/test.rb:2
(OS X.5, default Ruby 1.8.6p111, TextMate Build 1436)
The problem is that both the builder-gem and TextMate's builder.rb try
to alias method_added to blank_slate_method_added. I've patched TM's
builder.rb to alias to tm_blank_slate_method_added instead, which
works. However, this is only a hack to fix this problem, I'm sure
there is a better way to address this (e.g. builder.rb checking wether
a module 'Builder' already exists, and if not, load tm_builder.rb or
something like that).
regards, Markus
When typing the space key in my code in TextMate, how can I let
TextMate use a particular number of spaces instead of that tab character?
I would like to always use 2 spaces instead of the tab character.
Also, how can I auto-format code that already have tabs (or tabs replaced by, say, 4 spaces)
to format it the way I want it (say, tabs replaced by 2 spaces)? Microsoft Visual Studio allowed me to do that. Does TextMate provide such facilities? (Guess I could always turn to regular expressions to fix such stuff.)
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Today i get new revision of TextMate. This is good! and i saw this:
[2007-12-29: REVISION 1455]
[NEW] JavaScript bundle: Add a Javascript beautifier script, with a shortcut
of Ctrl+Q. (Michael Sheets)
Cool! But... sorry pals - I can't find it!
I didnt use svn version of Javascript bundle (but ofcourse i svn up Support
and all *.tmbundles after i receive new TM revision).
I restart TM - and still nothing.
Ctrl+Q works but it do something i would call "minify me code".
Do i miss something?
Hello,
I am new to TM, and I have a couple of questions regarding the Project
Drawer. I did search google and the mailing list archives but I
didn't see an answer to my question.
When I am launching TM I would like it to open up with the Project
Drawer already present.
Also if it could open a directory (like ~/.projects) and all the sub
directories that would be great as well.
I am guessing there is a way to do this with TM since I can issue
`mate ~/.projects`
On the command line and that works. I have Quicksilver installed, so
I bet I could create a trigger that would do what I want, but I would
prefer to just have it work this way by default.
TIA
--
nathan
nathan_at_nathanpowell_dot_org
Ambition is a poor excuse for not having sense enough to be lazy.
~ Edgar Bergen
------------------------------------
Any other GTDAlt users out there?
After doing a clean install of Leopard, I'm having trouble getting the
GTDAlt bundle working again in TextMate.
Am getting Ruby errors when I add dates to actions, and iCal syncing
is using the incorrect date in iCal (one day earlier than set in my
gdt files).
It's a wonderful bundle, and I would love to keep it running smoothly.
Any clues appreciated.
Richard
I just added three bundles to Review.
JavaScript, MooTools & Prototype
The major change is that I moved all the bracketed and whitespace
scopes out of "prototype bracketed" into "javascript base".
There are now two core Javascript languages. "Javascript" and
"Javascript Basic"
When opening a Javascript file, you'll want to use "Javascript".
When you use a language like HTML, it'll automatically include
"javascript basic" as embedded source where necessary.
"Javascript basic" is mostly just a modified version of the current
Javascript language. It should be pared down a bit more still.
The MooTools bundle contains a completely new language syntax.
It also includes the classic mootools language by Joe Maller as
"MooTools 1.1"
It's pretty basic at the moment, but I have plans for upgrading it
and adding context sensitive codecompletion.
The Review Prototype bundle is NOT upgraded for the latest version of
prototype.
All it is is a compatibility upgrade to support the new javascript
core languages.
Those few of you who care, please let me know what I need to do before
I can replace the core bundles with these guys.
—Thomas Aylott – subtleGradient—
Hi,
I saw my NetNewsWire doesn't output from bundle updates RSS feeds.
See the image.
Something needs to be escaped here. Is this a bug in a script to make
feeds?
Or something is wrong in NetNewsWire?
I don't have any plan to make _malicious_file name and commit the file
to the repo :)
Takaaki
--
Takaaki Kato
http://samuraicoder.net
While the File -> Open... dialogue has a button to show hidden files,
the File -> Save seems to have no obvious way to save a file to a
hidden directory.
I was creating an environment.plist file to save in ~/.MacOSX --- my
immediate work around was to save the file to the Desktop and use
Finder to move the file to .MacOSX --- I have set Finder to show all
files using either the defaults command or TinkerTool.
A search of the mailing list indicates that Cmd-Shift-G opens a sub
dialogue box to the File -> Save dialogue that allows you to type the
name of the directory directly but that would seem hard to discover.
Is there a preference in Textmate that modifies the File -> Save
dialogue to show hidden files ?
Phil Molyneux
Dear TextMate gods, dear everybody else :)
I've been notified that my my Taskmate bundle has been added to the
review directory:
http://macromates.com/svn/Bundles/trunk/Review/Bundles/Taskmate.tmbundle
Since the first announcement to this list quite some work has been
done on this bundle. We've been able to track down some bugs, added
some new features and tweaked everything according to the great
feedback of both Michael Sheet and early adopting users.
I've put together a list of the changes in the changelog:
http://macromates.com/svn/Bundles/trunk/Review/Bundles/Taskmate.tmbundle/CH…
Even at this early stage I'd like to say thank you to Michael for
doing an amazing job as a review gatekeeper and Nigel Green, who
attentively tested every single move I made, provided lots of feedback
and additional code as well as even a complete help file.
Now we are eagerly awaiting to get bashed down by you folks for any
glitches and mistakes in order to make this bundle even better :)
Thanks!
PS: For information about what Taskmate does please refer to the
bundled help file or the project page at http://www.artweb-design.de/projects/taskmate
--
sven fuchs svenfuchs(a)artweb-design.de
artweb design http://www.artweb-design.de
grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone)
d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile)
Greetings all. Been using TextMate for quite some time, but never had
a problem before now. Allan Odgaard suggested I post this to the list.
I installed Ruby 1.9 this morning by doing a source install from the
release tarball. I had to manually update the readline library and I
also had to change my path so that /usr/local/lib is read before /usr/
lib because of the libreadline.dylib that is contained there.
I can run Ruby 1.9 programs from the command line just fine, but if I
try to use command-R to run them from inside TextMate, I get:
------------------ BEGIN ERROR MESSAGE -----------------
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
scriptmate.rb:4:in `require': /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/io.rb:40: syntax error, unexpected ':',
expecting keyword_then or ',' or ';' or '\n' (SyntaxError) when 1:
lines.each { |line| block.call(line) } ^ /Applications/TextMate.app/
Contents/SharedSupport/Support/lib/io.rb:41: syntax error, unexpected
keyword_when, expecting keyword_end when 2: lines.each { |line|
block.call(line, name) } ^ /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/io.rb:47: syntax error, unexpected
keyword_elsif, expecting keyword_end elsif sync? ^ /Applications/
TextMate.app/Contents/SharedSupport/Support/lib/io.rb:49: syntax
error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
when 1: block.call(data) ^ /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/io.rb:50: syntax error, unexpected
keyword_when, expecting keyword_end when 2: block.call(data, name) ^ /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/io.rb:
60: syntax error, unexpected ':', expecting keyword_then or ',' or
';' or '\n' when 1: leftovers.each_pair { |name,... ^ /Applications/
TextMate.app/Contents/SharedSupport/Support/lib/io.rb:61: syntax
error, unexpected keyword_when, expecting keyword_end when 2:
leftovers.each_pair { |na... ^ /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/io.rb:67: syntax error, unexpected
keyword_end, expecting $end from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/scriptmate.rb:4:in `' from /Applications/
TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/
RubyMate/run_script.rb:1:in `require' from /Applications/TextMate.app/
Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/
run_script.rb:1:in `'
------------------ END ERROR MESSAGE -----------------
I also get errors running a shell script, but not quite the same, and
it does then proceed to run the script after dumping the error
message, unlike with the Ruby script:
------------------ BEGIN ERROR MESSAGE -----------------
(erb):29:in `concat': character encodings differ (ArgumentError) from
(erb):29: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 /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/
web_preview.rb:116:in `html_head' from -:4:in `'
Hello World
Program exited with status 0.
------------------ END ERROR MESSAGE -----------------
As I said, I'm still able to run Ruby code from the command line, but
it's obviously less convenient, so I was hoping somebody might have
an idea what's going on. I'm still running Tiger and am on the latest
version of TextMate (Version 1.5.7 (1436)). Any thoughts, information
would be greatly appreciated.
Thanks,
Jeff LaMarche
Maybe I'm doing something wrong but I don't seem to be able to fold PHP
docblocks when they are like
/**
*
*/
even though the top fold arrow is shown (but the bottom isn't) only when
they are
/**
*
*/
however the code completion features such as doc<tab> and /**<tab> generate
the first block
Does anyone know how to fix it so that the first type of docblock folds
correctly?
Thanks
--
View this message in context: http://www.nabble.com/PHP-docblock-folding-tp14475232p14475232.html
Sent from the textmate users mailing list archive at Nabble.com.
[REPOSTING BECAUSE OF BAD FORMATTING]
Hi!
A well-known problem with Move Selection Line Up/Down
commands (Control-Command-Up/Down) is that if you use
them without selection (which means "move current
line"), the cursor ends up in the wrong place. This
has been bugging me and my friends for quite some
time, so I wrote a fix. It's two macros overriding
default key equivalents, which you can find attached
to the bug description at
http://macromates.com/ticket/show?ticket_id=58C52785 .
Please tell if this works for you.
Also, is it possible to put this fix into some
standard TextMate bundle like Text.tmbundle, so that
all TextMate users enjoy it? (Until it is fixed in the
new engine of TextMate 2.) What is the best way to do
it?
This is my first experience in TextMate programming,
and several times I've been stuck in various
dead-ends. What follows is a somewhat long description
of how I approached the problem along with some
suggestions on making TextMate easier to program. Most
people would like to skip this.
So, my first (rather silly) attempt was a huge Ruby
program which replicated functionality of Move
Selection Line Up/Down and depended on my assumption
that the cursor is always at the end of selection
(potentially allowing me to calculate all the
necessary offsets in the file). Well, it turned out
that my assumption was simply not true, as the cursor
can be anywhere inside the selection, depending on how
you've selected the text.
Suggestion 1. It would be useful if TextMate had
variables like $TM_SELECTION_START and
$TM_SELECTION_END which would return the
corresponding offsets in the file (or the cursor
offset, if nothing is selected).
On a second attempt, I decided that I should instead
go with the built-in commands, simply correcting the
cursor position for the special case when nothing is
selected. So we remember current cursor position, call
Move Selection Line Up/Down, and move the cursor back
to remembered position if nothing is selected. There
are two problems here. First, you can only call
built-in commands from macros, and it is not possible
to remember values through the steps of a macro.
Second, there is no direct way to reposition the
cursor. One indirect way to achieve this is to insert
a snippet with a $0 variable. However, to move the
cursor to arbitrary position in this fashion, we need
an output option like "Replace Document as Snippet",
which is not available. Because of these two problems,
I decided to use TMTOOLS plugin, which has "call
macro" (for calling arbitrary macros and built-in
commands from commands) and "set caretTo" (for setting
the cursor position). I got a working solution, but it
had a delay of 0.5 to 1 s, which was too slow to be
useful.
Suggestion 2. Add a way to set "global"
environment variables programmatically (from
commands). These "global" variables should be
available to all subsequently called commands (and
other bundle items) until explicitly unset.
Suggestion 3. Replace output options "Insert as
Text" and "Insert as Snippet" with just one
option, "Insert", and add a checkbox "as Snippet"
to the right. This would add such useful options
as "Replace Selected Text as Snippet", "Replace
Document as Snippet" and "Create New Document as
Snippet" without making the list of options too
long.
So, on a third (and final) attempt, I dropped TMTOOLS
and returned to the idea of a macro. Inspired by Duane
Johnson's solution for multiple insertion points, I
decided to use a special symbol (mark) to "remember"
the initial position of the cursor. So we insert the
mark at the cursor (if nothing is selected), call Move
Selection Line Up/Down, and replace the mark with
empty string (if nothing is selected), which moves the
cursor there as a side-effect. The problem here is
that Replace command always replaces current selection
with replace buffer, even if it doesn't match the find
buffer, which ruins the case when something has
already been selected in the beginning. Replace All
also ruins current selection, moving the cursor to the
beginning of the file even if it has not found any
matches. Fortunately, the Find Next/Previous command
will only change current selection if the match has
been found. So that's what we use. If there is a mark
in the text, it will get selected, otherwise, the
selection won't change. Finally, the selection is
replaced with an empty string if what's selected is a
mark. The wrong cursor position after Move Selection
Line Up/Down is always further in text than the right
position (actually, it's on the next line), so we use
Find Previous command to perform the search. Because
of this little detail, the solution is actually pretty
fast.
Suggestion 4. Replace All should not alter current
selection if no matches are found.
The only remaining question is what symbol to use as a
mark. I decided to use √ (221A, SQUARE ROOT character,
which you can type with Option-V), but I'm not sure
this is the best choice. Maybe it's better to use some
character from Private Use Area (E000--F8FF)?
Best regards,
Sergei Yakovlev
Hi all,
I am pretty new to textmate and would like to know if it's possible to
change the color of PHPdoc comments from normal comments. I've noticed
since using a lot of PHPDoc stuff in my code that it looks more confusing
than ever. Being able to change the color would help in making things more
readable.
I noticed there was a thread in 2006 that discussed this but it did not help
me. Also, I tried setting the scope of "comment.documentation" in hopes
that it my be the correct scope with no luck (it doesn't seem to match the
scope or something because nothing changes even after restarting textmate).
Any help would really be appreciated.
Thanks,
Clark Endrizzi
I apologize for being off-topic, but I think there's more expertise on
this list than I'll find elsewhere.
I'm thinking about moving my blog from Movable Type 3.2 to WordPress.
As a test, I've set up a local WP installation and imported my old
posts--all of which are written in Markdown. They look awful,
primarily because the blocks of source code in many of my posts are
not being imported properly. Here is what I've done:
1. Exported the MT 3.2 posts using MT's builtin export command.
2. Installed WP and the PHP-MarkdownExtra plugin. Activated the plugin.
3. Imported into WP the text file that came out of the MT export process.
The biggest problem seems to be that WP isn't recognizing the Markdown
formatting of the exported posts. What should be enclosed by
<pre><code>...</code></pre> are enclosed by simple paragraph tags
instead.
Has anyone here experienced and solved this problem?
--
Dr. Drang
Hi!
In XML bundle, the block doesn't fold properly
if the closing tag is not on a separate line.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<document>
<page>This tag block doesn't fold properly.
It folds as if '/document' tag closes it.
The closing tag is on the same line.</page>
<page>This tag block folds properly.
The closing tag is on a separate line.
</page>
</document>
Cheers,
Sergei Yakovlev
Hi!
A well-known problem with Move Selection Line Up/Down commands
(Control-Command-Up/Down) is
that if you use them without selection (which means "move current
line"), the cursor ends
up in the wrong place. This has been bugging me and my friends for
quite some time, so I
wrote a fix. It's two macros overriding default key equivalents,
which you can find
attached to the bug description at http://macromates.com/ticket/show?
ticket_id=58C52785 .
Please tell if this works for you.
Also, is it possible to put this fix into some standard TextMate
bundle like Text.tmbundle,
so that all TextMate users enjoy it? (Until it is fixed in the new
engine of TextMate 2.)
What is the best way to do it?
This is my first experience in TextMate programming, and several
times I've been stuck in
various dead-ends. What follows is a somewhat long description of how
I approached the
problem along with some suggestions on making TextMate easier to
program. Most people would
like to skip this.
So, my first (rather silly) attempt was a huge Ruby program which
replicated functionality
of Move Selection Line Up/Down and depended on my assumption that the
cursor is always at
the end of selection (potentially allowing me to calculate all the
necessary offsets in the
file). Well, it turned out that my assumption was simply not true, as
the cursor can be
anywhere inside the selection, depending on how you've selected the
text.
Suggestion 1. It would be useful if TextMate had variables like
$TM_SELECTION_START and
$TM_SELECTION_END which would return the corresponding offsets in
the file (or the
cursor offset, if nothing is selected).
On a second attempt, I decided that I should instead go with the
built-in commands, simply
correcting the cursor position for the special case when nothing is
selected. So we
remember current cursor position, call Move Selection Line Up/Down,
and move the cursor
back to remembered position if nothing is selected. There are two
problems here. First, you
can only call built-in commands from macros, and it is not possible
to remember values
through the steps of a macro. Second, there is no direct way to
reposition the cursor. One
indirect way to achieve this is to insert a snippet with a $0
variable. However, to move
the cursor to arbitrary position in this fashion, we need an output
option like "Replace
Document as Snippet", which is not available. Because of these two
problems, I decided to
use TMTOOLS plugin, which has "call macro" (for calling arbitrary
macros and built-in
commands from commands) and "set caretTo" (for setting the cursor
position). I got a
working solution, but it had a delay of 0.5 to 1 s, which was too
slow to be useful.
Suggestion 2. Add a way to set "global" environment variables
programmatically (from
commands). These "global" variables should be available to all
subsequently called
commands (and other bundle items) until explicitly unset.
Suggestion 3. Replace output options "Insert as Text" and
"Insert as Snippet" with just
one option, "Insert", and add a checkbox "as Snippet" to the
right. This would add such
useful options as "Replace Selected Text as Snippet", "Replace
Document as Snippet" and
"Create New Document as Snippet" without making the list of
options too long.
So, on a third (and final) attempt, I dropped TMTOOLS and returned to
the idea of a macro.
Inspired by Duane Johnson's solution for multiple insertion points, I
decided to use a
special symbol (mark) to "remember" the initial position of the
cursor. So we insert the
mark at the cursor (if nothing is selected), call Move Selection Line
Up/Down, and replace
the mark with empty string (if nothing is selected), which moves the
cursor there as a
side-effect. The problem here is that Replace command always replaces
current selection
with replace buffer, even if it doesn't match the find buffer, which
ruins the case when
something has already been selected in the beginning. Replace All
also ruins current
selection, moving the cursor to the beginning of the file even if it
has not found any
matches. Fortunately, the Find Next/Previous command will only change
current selection if
the match has been found. So that's what we use. If there is a mark
in the text, it will
get selected, otherwise, the selection won't change. Finally, the
selection is replaced
with an empty string if what's selected is a mark. The wrong cursor
position after Move
Selection Line Up/Down is always further in text than the right
position (actually, it's on
the next line), so we use Find Previous command to perform the
search. Because of this
little detail, the solution is actually pretty fast.
Suggestion 4. Replace All should not alter current selection if
no matches are found.
The only remaining question is what symbol to use as a mark. I
decided to use √ (221A,
SQUARE ROOT character, which you can type with Option-V), but I'm not
sure this is the best
choice. Maybe it's better to use some character from Private Use Area
(E000--F8FF)?
Best regards,
Sergei Yakovlev
This is a strange one. The other day my Subversion commits have
suddenly stopped working in terms of uploading to the repository.
I ctrl-shift-A, use the commit and get the window for commiting the
files I've highlighted and the -m message window. Enter a message...
All good.
When I hit Commit however, I get the Subversion Commit -
"Transmitting File data" window and the barber pole but the window
never comes back with either a dialogue box for the password for the
user or anything at all. I end up having to quite Textmate in order
to kill it and then doing a command line svn cleanup on the files
that I was trying to upload.
Handling svn through the command line with svn ci file.rhtml -m "blah
de blah" works fine however.
Does anyone have any idea of what may be causing this and how to
correct it ? I've gotten so used to the svn budle it's really
cramping my style now...
thanks !
Daryl.
PS> OSX 10.4.11, Textmate Version 1.5.7 (1436), svn, version 1.4.5
(r25188)
Hi,
I've been trying to make a TM command to convert text encodings (with
a nice little tm_dialog that took a while to figure out but now works
very well).
But for some reason, it won't read the file correctly using stdin.
So that this works:
iconv -f $ENC -t UTF8 "$TM_FILEPATH"
But this does not (nor do other variations on the theme using stdin):
iconv -f $ENC -t UTF8 < /dev/stdin
TM seems to do something to the text to change its encoding, so that
iconv cannot convert properly.
Even stranger than that, some encodings trigger this error:
/usr/bin/iconv: conversion from "SHIFT_JISX0213" unsupported
/usr/bin/iconv: try '/usr/bin/iconv -l' to get the list of supported
encodings
Does anyone have an idea about what's going on here?
Thanks,
Alex
I'm wondering if the contents of my "/Library/Application
Support/Textmate" directory is correct after checkout from svn.
Should it be this:
Bundles/
Support/
or this:
Bundles/
Conventions.txt
Disabled Bundles/
LICENSE
Manual/
PlugIns/
README
Review/
Support/
Themes/
Tools/
Work in Progress/
Perhaps I invoked a checkout on the wrong directory?
Ultimately I am trying to see all the Bundles in the Bundle directory.
I'm unable to find ODCompletion items even though I see them in the
file system.
Thank you!
az
When working with a Latex project, is there a way to specify the
bibliography file that should be used by the relevant commands?
I'm sorry is this question has an obvious answer, but I can't seem to find
it...
Best wishes,
NPC
I updated the MultiMarkdown TextMate bundle today. This update fixes
a problem that Leopard users were having --- or at least I think it
does. It still works for me in Tiger, and I hear reports that this
fixes the problem Leopard users were having. Specifically, they were
getting an error message like:
/bin/bash: line 2: cd: ~/Library/Application\ Support/MultiMarkdown:
No such file or directory
/bin/bash: line 3: cd: bin: No such file or directory
/bin/bash: line 5: ./multimarkdown2XHTML.pl: No such file or directory
This was caused by an apparent change in the way the shell works
under Leopard. Please let me know if you continue to have trouble
with this, and thanks to everyone who helped track down this bug.
Download the new version from:
* <http://files.fletcherpenney.net/MultiMarkdownForTextMate.zip>
--
Fletcher T. Penney
fletcher(a)fletcherpenney.net
If you start out depressed, everything's kind of a pleasant surprise.
- Lloyd (John Cusack) in Say Anything
Hi,
While watching the 2nd obj-C screencast, I noticed Allan was getting a
tab-completion on the word NSArray. Is it possible that particular
tab-completion was removed from Textmate since the screencast was
created? Or might I not have all the obj-C bundles?
FTR... I get a rewrite/insertion of this:
NSMutableArray *array = [NSMutableArray array];
when I do a tab completion on the word:
array
Perhaps creating such a tab-completion is so simple I can create my own?
Do some bundles exist which are not distributed via the textmate svn repository?
Thanks...
az
Allan Odgaard wrote:
> On 20 Dec 2007, at 20:47, Alan Curtis wrote:
>
> > cd "${TM_MULTIMARKDOWN_PATH:-~/Library/Application Support/
> > MultiMarkdown}"
>
> I think this (default path) lack “.tmbundle” and it _really_ should be
> using TM_SUPPORT_PATH instead of a hardcoded (default) path, which
> additionally means it should store multimarkdown2XHTML.pl under
> Support/bin (in the bundle).
No - MultiMarkdown belongs in Application Support - not in the
textmate bundle. If it's in the bundle, then it's not accessible to
other programs that use MultiMarkdown.
The problem here appears to be that Leopard changes the way the shell
and the TextMate variables work. I have not upgraded to Leopard yet,
and welcome suggestions on how to fix the problem that Leopard users
are having.
F-
--
Fletcher T. Penney
fletcher(a)fletcherpenney.net
If you start out depressed, everything's kind of a pleasant surprise.
- Lloyd (John Cusack) in Say Anything
Hello,
I notice the objective-C snippet called "method" (invoked with
control-shift-m) is producing 3 spaces as indent before the "return
nil;" statement. I check the snippet in the bundle editor and see it
is indeed a tab in the code. What might be causing the output of the
snippet to become three spaces in the objective c file? My soft tabs
are set for 4 spaces. Thank you for any advice.
Cheers,
-az
snippet code pasted here for convenience:
- (${1:id})${2:${TM_SELECTED_TEXT:method}}${3::(${4:id})${5:${4/(NS([AEIOQUY])?(\w+).*)|(.)?.*/(?1:a(?2:n$2)$3:(?4:anArgument))/}}}
{$0${1/^(void|IBAction)$|(.*)/(?2:
return nil;)/}
}
Hi,
"Tail Access Log" and "Tail Error Log" in Apache Bundle currently try
to check
* /var/log/httpd/access_log
* /var/log/httpd/error_log
This worked on Tiger, I think.
In Leopard, the files are by default located at
* /var/log/apache2/access_log
* /var/log/apache2/error_log
Is there any plan to add a setting/preferences GUI for this bundle?
Different people have different log locations.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi,
after fixing to run R inside of TM as interactive shell I tried to
run irb and it also works. But one 'only' has to change the
communication between irb and TM slightly. Is someone interested to
do that? ;)
--Hans
Hi,
> Sorry my bad, I've been a bit rusty. TM_LATEX_BIB is supposed to
> point to an actual bib file, not the directory. What you want is to
> set the BIBINPUTS variable in TM to the directory path as well, like
> you set it in bash_profile. (hopefully ;) ). I'm kind of surprised
> this wasn't a problem earlier, if you had set TM_LATEX_BIB to that
> directory. Let's hope this would fix it,
I didn't have TM_LATEX_BIB set originally --- I put that in during my
efforts to solve the problem. Now I've removed it again. BIBINPUTS was
not set in TextMate. I set it and it returns '/Users/kjhealy/Library/
texmf/bibtex/bib:' from within TM. (This is the correct path.) But my
problem persists. On the MacBook Pro, when I use the keyboard shortcut
the menu pops up asking to create a label or a citation, and when I
then select citation, nothing happens except the pointer changes to a
cross. Same goes for the option when selected through the bundle menu.
On the G5 desktop (which I currently don't have access to) the same
thing was happening except I was getting the "Can't find any files
named 'bibname'" tooltip.
Kieran
In the MacBreak video podcast (#96) for 12/12/2007, Leo features his
fav text editors & overwhelming votes for textmate while giving an
idea of its capabilities as well as history.........
As someone that did his entire PhD (writing - in latex, running R,
Sweave, stata etc..) all within textmate I would be remiss not to
thank all those that are continuously developing textmate & the
supporting bundles - Alan, Charilaos, Hadley, Brett, Kevin, Allan
Schussman, just to mention but a few of many people whose bundles
have been helpful....
I am now getting into experimenting with new experimental bundles
- eg Hans R daemon which seem as if they will be making me even more
productive during 2008..
Thanks to y'all that are behind textmate & all its associated
bundles.... & best during 2008!
danstan
Are there any bundles available to ease writing JSDoc comments for javascript?
Aptana has a really nice feature that looks for /** and completes the
rest of the comment for you, leaving you to just fill in the
descriptions of the function and it's parameters.
> From: Alex Ross <alex.j.ross(a)gmail.com>
> Date: December 19, 2007 8:08:51 PM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Python Import
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
> Tony,
>
> Have you made any modifications to your PYTHONPATH?
Hey Alex,
Thanks for your quick reply. I have added a couple of folders to the
PYTHONPATH in my `.profile` configuration file in my home directory.
PYTHONPATH=/Users/Tony/python:/Users/Tony/python/nodebox/src
It turns out that if I comment out the nodebox source path from the
above statement, `import objc` works fine. Unfortunately, the reason I
wanted to import the objc module was because nodebox requires it (and
requires the source tree be on the PYTHONPATH). Does any one know why
things would work fine from a Terminal, but not Textmate.
BTW, sys.path gives the same output in Textmate and the Terminal
window, except that Textmate appends the Textmate path and the
Desktop, while Terminal appends the present working directory.
Thanks,
-Tony
I learned a few days ago (see http://xrl.us/bcuzs) that a drag
command with a file type of "vcf" will work on cards dragged out of
the Address Book as well as vcf files dragged from the Finder. (A
temporary vcf file is made as you drag the card.) I thought it would
be nice to have a formatted name and address appear in the TM window
instead of the default vCard-formatted info. I had an AppleScript I'd
written a while ago that I adapted for this purpose and called it
from the drag command using 'osascript'.
The drag command works, but it takes 20-30 seconds to run when
operating on a card dragged from the Address Book. This isn't because
the AppleScript itself is slow--it runs almost instantly when
operating on a vCard file dragged from the Finder.
In the interests of space, here's a simpler AppleScript that exhibits
the same difference in runtime:
on run argv
tell application "Address Book"
set theCard to (person id (item 1 of argv))
set out to name of theCard
end tell
return out
end run
I've called it "abname.scpt" and saved it in my ~/bin directory.
(I've also saved it as an application and as text. The results are
the same.)
Here's the drag command:
if [[ $TM_MODIFIER_FLAGS = "OPTION" ]]; then
uid=`cat "$TM_DROPPED_FILE" |\
awk -F: '/^X\-ABUID/\
{printf "%s:ABPerson", substr($2,1,length($2)-1)}'`
osascript $HOME/bin/abname.scpt "$uid"
else
cat "$TM_DROPPED_FILE"
fi
This is set up so that when I hold the Option key down as I drag, the
name of the card is inserted in the TM window. If I *don't* hold the
Option key down, the usual vCard data is inserted. The behavior on my
main computer--an Intel iMac running OS X 10.4.11 with TM 1.5.7
(1436)--is like this:
Dragging from Option key Time to run
----------------------------------------------------
file in Finder not pressed instant
file in Finder pressed instant
card from AB not pressed instant
card from AB pressed 20+ seconds
I'd like to know why there's such a difference and what I can do, if
anything, to speed things up.
--
Dr. Drang
Hi Haris,
thanks for the quick reply.
> > Doing kpsewhich -show-path=bib returns
> >
> >> /Users/kjhealy/Documents/bibs:.:/Users/kjhealy/Library/texmf/
> >> [etc]
> >
>
> Is this what is also returned if your type in TM: kpsewhich -show-
> path=bib
> followed by pressing ctrl-R?
Yes.
> So what you would want to do is set TM_LATEX_BIB in TextMate's
> preferences as well (TextMate -> Preferences -> Advanced -> Shell
> Variables.
Yes, this is set too, as the full path, /Users/kjhealy/Documents/bibs.
The problem is now a little weirder. I have this issue on two Leopard
machines. One is a G5 desktop and one is a recent Macbook Pro.
I thought the problem might have to do with the symlinks I was using
to point to ~/Documents/bibs. So I deleted the symlinks and moved all
the bib files to ~/Library/texmf/bibtex/bib. So there's no ~/Documents/
bibs anymore, and no symlinks to it. I changed TM_LATEX_BIB in
TextMate to reflect this (and changed BIBINPUTS in bash_profile, too).
Now kpsewhich -show-path=bib inside TM gives
kpsewhich -show-path=bib/Users/kjhealy/Library/texmf/bibtex/bib:.:/
Users/kjhealy/Library/texmf/bibtex/bib//:!!/usr/local/gwTeX/
texmf.local/bibtex/bib//:!!/usr/local/gwTeX/texmf.pkgs/bibtex/bib//:!!/
usr/local/gwTeX/texmf.gwtex/bibtex/bib//:!!/usr/local/gwTeX/
texmf.texlive/bibtex/bib//:!!/usr/local/gwTeX/texmf/bibtex/bib//:/
Users/kjhealy/Library/texmf/bibtex///:!!/usr/local/gwTeX/texmf.local/
bibtex///:!!/usr/local/gwTeX/texmf.pkgs/bibtex///:!!/usr/local/gwTeX/
texmf.gwtex/bibtex///:!!/usr/local/gwTeX/texmf.texlive/bibtex///:!!/
usr/local/gwTeX/texmf/bibtex///
Again, latex/bibtex compile fine. via latexmk. Now when I try to
complete a citation from a word, I get the following error:
/Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:114:in `read': Is a directory
- /Users/kjhealy/Library/texmf/bibtex/bib (Errno::EISDIR)
from /Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:114:in `parse_bibfile'
from /Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:252:in `cite_scan'
from /Users/kjhealy/Library/Application Support/TextMate/ Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:248:in `each'
from /Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:248:in `cite_scan'
from /Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:216:in `call'
from /Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:216:in `recursive_scan'
from /Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:215:in `each'
from /Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:215:in `recursive_scan'
... 7 levels...
from /Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:204:in `recursive_scan'
from /Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:255:in `cite_scan'
from /Users/kjhealy/Library/Application Support/TextMate/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:63:in `get_citations'
from /tmp/temp_textmate.fLdPNM:8
I get this error with different documents and different bibfiles. If I
uncheck the TM_LATEX_BIB variable in TM preferences and try to cite
something, the cursor changes to a cross and nothing else happens.
Kieran
I'm not going to call this solved, but I at least have a working
solution -- and analysis (follows). Here's my weak (very weak) unix-fu
understanding of the problem. The Preview function of the MMD bundle
has three simple lines:
> cd "${TM_MULTIMARKDOWN_PATH:-~/Library/Application Support/
MultiMarkdown}"
> cd bin
> ./multimarkdown2XHTML.pl
After upgrading to Leopard, I was getting the following error report:
> /bin/bash: line 2: cd: ~/Library/Application Support/MultiMarkdown:
No such file or directory
> /bin/bash: line 3: cd: bin: No such file or directory
> /bin/bash: line 4: ./multimarkdown2XHTML.pl: No such file or
directory
Because my unix-fu is so very, very (very) weak, it took me the
longest time to realize that the Bash shell wasn't seeing the
directory. I tested it by running
> cd "~/Library/Application Support/MultiMarkdown"
No such file or directory
I tried changing it to the more usual:
cd ~/Library/Application\ Support/MultiMarkdown
Presto! It worked. I changed the first line in the MMD Preview to the
above and Preview now works like it used to.
Now you can all stop chuckling at how slow I am, but my question is:
has anyone else encountered this problem? Surely I'm not the only MMD
adherent who has upgraded to Leopard? (I'm hoping the problem wasn't
me being goofy, but it could be.)
Any corrections to my analysis are welcome and will be regarded as
contributing to my education.
Please, no rulers on the knuckles. It's the holidays and all.
john
Greetings tm users...
In the 2nd obj-c screencast:
<http://macromates.com/screencast/objective_c_part_2.mov>
Shortly into this demo (in the first 20%) ... just after the insertion
of the delegate method "outlineView", Allan begins to introduce a
reformatting command (a bundle command?). After he shows what the
command is based on -- a command in the menu "Text->Reformat
Paragraph" used to reformat comments -- he moves the cursor to the
bottom of the window and presses on a UI element that looks like a
gear. This brings up a long list of bundle commands with their
associated icons (C, S, M, etc). When I press this UI element, I get a
popup menu of only a few items:
Help
Documentation for Selection
---
Language Boiler Plate ->
Accessor Methods For ->
Common Object Calls ->
Object Instantiations ->
Idioms ->
---
and about 6 more items.
Perhaps there was a change in Textmate or I am missing something in the GUI?
How do I see the pop up menu as shown in the screencast?
Thank you!
AZ
On Dec 20, 2007, at 06:00 , textmate-request(a)lists.macromates.com wrote:
>>
>> So I finally upgraded to Leopard, but somehow my Multimarkdown
>> bundle got borked? I went to preview a document in XHTML and got
>> this:
>>
>> /bin/bash: line 2: cd: ~/Library/Application Support/MultiMarkdown: =
>
>> No such file or directory
>> /bin/bash: line 3: cd: bin: No such file or directory
>> /bin/bash: line 4: ./multimarkdown2XHTML.pl: No such file or
>> directory
>>
>> I remembered having some difficulties with this a while ago, but I
>> couldn't remember what I had done to straighten it out. I went to
>> the bundle's help file, thinking it might jog my memory, but it too =
>
>> is coming up with a similar error report. Is this a problem a re-
>> install will solve?
>
> I assume this is Fletcher=92s own MultiMarkdown bundle and not our
> default MultiMarkdown support.
>
> It sounds a little bit like an unquoted shell variable. It might be
> good to fetch his latest bundle and see if that still has the
> problem, =
>
> if it does, paste the source of the command in question.
Hmm. I downloaded the current versions of the TM bundle AND the
separate Multimarkdown folder that gets placed in the Application
Support folder AND I went ahead and created a TM_MULTIMARKDOWN_PATH
shell variable in my preferences that points to
~/Library/Application Support/MultiMarkdown (Can I leave the space in
like that?)
And I'm still seeing the same three lines of reported errors when I do
a Preview and use the Multimarkdown option of export to XHTML.
The preview from within the Markdown bundle works fine, but, of
course, it doesn't support things like external style sheets like
Fletcher's MMD bundle does.
I cannot run Preview using MultiMarkdown under Leopard
I get the following error.
/bin/bash: line 2: cd: ~/Library/Application\ Support/MultiMarkdown:
No such file or directory
/bin/bash: line 3: cd: bin: No such file or directory
/bin/bash: line 5: ./multimarkdown2XHTML.pl: No such file or directory
The command is
# Process the MultiMarkdowndocument and display as a web page
cd "${TM_MULTIMARKDOWN_PATH:-~/Library/Application Support/
MultiMarkdown}"
cd bin
./multimarkdown2XHTML.pl
Alan
Hi,
TextMate's LaTeX bundle can't find my bib files when using the
citation completion commands. It returns the error, "Can't find any
files named 'bibname'", where bibname is the name of my bib file. The
bib files are in a local directory, ~/Documents/bibs. There is a
symbolic link to this directory in ~/Library/texmf/bibtex/bib. Doing
kpsewhich -show-path=bib returns
> /Users/kjhealy/Documents/bibs:.:/Users/kjhealy/Library/texmf/bibtex/
> bib//:!!/usr/local/gwTeX/texmf.local/bibtex/bib//:!!/usr/local/gwTeX/
> texmf.pkgs/bibtex/bib//:!!/usr/local/gwTeX/texmf.gwtex/bibtex/
> bib//:!!/usr/local/gwTeX/texmf.texlive/bibtex/bib//:!!/usr/local/
> gwTeX/texmf/bibtex/bib//:/Users/kjhealy/Library/texmf/bibtex///:!!/
> usr/local/gwTeX/texmf.local/bibtex///:!!/usr/local/gwTeX/texmf.pkgs/
> bibtex///:!!/usr/local/gwTeX/texmf.gwtex/bibtex///:!!/usr/local/
> gwTeX/texmf.texlive/bibtex///:!!/usr/local/gwTeX/texmf/bibtex///
TM_LATEX_BIB is set to /Users/kjhealy/Documents/bibs. Latex documents
will compile happily (using latexmk.pl) within TextMate, including
their bibliographies. It's just the citation completion within
documents that isn't working. My Latex bundle and Support folder are
at revision 8696. I'm running Leopard (10.5.1) and TextMate 1.5.7
(1436).
Any hints on why this isn't working as it should?
Kieran
Hi there :)
I seem to remember that this bug has already
been reported and if it's the case, it is still around
for me…
Quite ramdomly, TM simply crash when bringing
up the Find/Replace dialog window and tabbing
between the “Find:” field and the “Replace:” field.
Let me know if you need the Crash Report :)
TIA
So I finally upgraded to Leopard, but somehow my Multimarkdown bundle
got borked? I went to preview a document in XHTML and got this:
/bin/bash: line 2: cd: ~/Library/Application Support/MultiMarkdown: No
such file or directory
/bin/bash: line 3: cd: bin: No such file or directory
/bin/bash: line 4: ./multimarkdown2XHTML.pl: No such file or directory
I remembered having some difficulties with this a while ago, but I
couldn't remember what I had done to straighten it out. I went to the
bundle's help file, thinking it might jog my memory, but it too is
coming up with a similar error report. Is this a problem a re-install
will solve? It's late and I don't think I'm seeing the obvious.
john
Hi,
This is probably some stupid mistake on my part, but I'm having
problems with importing the objc package in Python. When I try to
import it, I get the following error:
ImportError: No module named objc
What's strange, is I can import objc from a terminal window, without
any problems. I made sure that Textmate is running the same install of
python, so that's not the problem. All other packages I've tried
import without problems.
In case you're interested, I'm running Python 2.5.1 (default Leopard
install) with Textmate build 1436.
Any help would be appreciated. Thanks,
-Tony
Hi Everyone,
What I want to do, is extend the css & js definitions to have
alternate start / end tags...
For javascript, I want to match the normal <script></script> tags, but
I also want to have it use
<?php $this->js()->start() ?> / <?php $this->js()->end() ?>
(Same for css, except using "css()")
How can I go about doing this?
Regards,
Eric
Hello all,
after searching the list archive for a while, I have hacked together a
short command to run Matlab straight from within textmate. The current
problem is (as has been discussed on the list previously) that Matlab
has to be launched from scratch every time (takes about 5s for simple
hello-world scripts to execute).
Is there a maintainer for the Matlab bundle? Is there anyone around
who knows how to access the current Matlab session?
Best,
Jonas
I just committed a new bundle for review, SecondLife LSL
http://macromates.com/svn/Bundles/trunk/Review/Bundles/SecondLife%20LSL.tmb…
I forget why I never shared it before. Seems pretty done. There's code
completion and everything.
There's even contextual help set to ⌃h (ctrl-h) which searches the
lsl wiki.
I think I used someone else's language bundle to start out with and
then modified it,
but I can't remember at this point, so I'll take all the credit ;)
It's been a long while since I've played with LSL. But I don't think
the language has changed much in the meantime.
Let me know if you have any issues.
—Thomas Aylott – subtleGradient—
Hi, my apologizes for asking probably the same question again.
I have loosed the Control-Escape (pop-up menu of bundles) shortcut
since Leopard and I can't even bind it again since it isn't in any
bundle nor menu, AFAIK
- Juan F.
El 18/12/2007, a las 13:00, textmate-request(a)lists.macromates.com
escribió:
> De: "Niels Kobschaetzki" <n.kobschaetzki(a)googlemail.com>
> Fecha: 18 de diciembre de 2007 12:00:28 GMT+01:00
> Para: "TextMate users" <textmate(a)lists.macromates.com>
> Asunto: Re: [TxMt] Control-Escape
> Responder a: TextMate users <textmate(a)lists.macromates.com>
>
>
> On Dec 18, 2007 10:02 AM, Juan Falgueras <jfalgueras(a)uma.es> wrote:
>>
>> Hi, my apologizes for asking probably the same question again.
>>
>> I have loosed the Control-Escape (pop-up menu of bundles) shortcut
>> since Leopard and I can't even bind it again since it isn't in any
>> bundle nor menu, AFAIK
>
> Did you switch off screen-sharing?
>
> Niels
Oooooooh!!!!! Then, must I have Screen Sharing Off all the time to
have my Bundles Pop Up menu accesible? :((
(Thanks Niels)
El 18/12/2007, a las 13:00, textmate-request(a)lists.macromates.com
escribió:
> De: Takaaki Kato <devlist(a)samuraicoder.net>
>
>
> On Dec 18, 2007, at 6:02 PM, Juan Falgueras wrote:
>
>> I have loosed the Control-Escape (pop-up menu of bundles) shortcut
>> since Leopard and I can't even bind it again since it isn't in any
>> bundle nor menu, AFAIK
>
> Did you check System Preferences > Keyboard and Mouse > Keyboard
> Shotcuts, and Control-Escape is not used?
yes, of course. Control-Escape is not used.
Hey,
I just got this message when compiling something that I used to compile
without any problem before. This causes me lots of trouble since it now
compiles with pdftex instead of latex... so my eps images don't work.
I searched on Google and I found something about the plist read and to
install Leopard... THIS IS NOT AN OPTION! I don't plan on installing
Leopard now and not before a few months.
Please tell me the fix for it. Is it possible to correct the plist file
so that it works ? I don't care if it's a temporary fix, I need my
compiler NOW.
Maxime Boissonneault
Étudiant chercheur à la maîtrise en physique
Président de l'AGLEBUS
--------------------------------------------
maxime.boissonneault(a)usherbrooke.ca
president.aglebus(a)usherbrooke.ca
(819) 821-8000 #63072 (jour)
(819) 823-1913 (soirs et fins de semaine)
It is really helpful. Thank you very much.
Wish Brad and all other guys merry christmas!
Frank
----- Original Message ----
From: Brad Miller <bonelake(a)gmail.com>
To: TextMate users <textmate(a)lists.macromates.com>
Sent: Tuesday, December 18, 2007 12:55:06 AM
Subject: Re: [TxMt] help pls! how to make comments for the current line?
Type command - /
This will comment the current or selected lines. Another command you
should learn is control-command-t This allows you to quickly and
easily search for commands that are releveant in the current textmate
scope. For example if you type control-command-t and type comment you
will see several commands related to comments including the one above.
Brad
On Dec 17, 2007, at 7:40 AM, Frank_f wrote:
>
> hi all,
>
> I am a new user and have the latest version of TextMate, using it to
> do some
> Python programming.
> I am wondering what hot-keys I can use to make and eliminate
> comments for
> the current line or for the selected lines?
> I am using TextMate with default setting. So, should I add some
> snippets or
> something else?
>
> I really appreciate if I can get any help from your guys.
>
> regards,
>
> Frank
> --
> View this message in context: http://www.nabble.com/help-pls%21-how-to-make-comments-for-the-current-line…
> Sent from the textmate users mailing list archive at Nabble.com.
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
hi all,
I am a new user and have the latest version of TextMate, using it to do some
Python programming.
I am wondering what hot-keys I can use to make and eliminate comments for
the current line or for the selected lines?
I am using TextMate with default setting. So, should I add some snippets or
something else?
I really appreciate if I can get any help from your guys.
regards,
Frank
--
View this message in context: http://www.nabble.com/help-pls%21-how-to-make-comments-for-the-current-line…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I understand that "<% -%>" doesn't make a new line in output.
But what's "<%- -%>"?
According to http://wiki.rubyonrails.org/rails/pages/FAQ#other ,
> How is <%- different from <% ?
> Apparently nobody knows.
>
Would it better to use <%- ? What's the best practice?
Does anybody avoid the start tag and tweak "Toggle ERb Tags" command?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
I now use Textmate for all my drafting, and when I need to share a
draft with someone I simply e-mail as plain text or export an RTF for
better printing. I'm using Multimarkdown so that I can link to
established style sheets hosted on my personal website.
I've tweaked the "Convert to RTF" command in the MMD bundle to export
to Nisus Writer Express -- I'm hoping to develop a script or command
which will automatically create an appropriate header (based on some
variable, I'm not sure yet) -- but I was having the same problem in
TextEdit.
What's that problem? Even though I've got "font-size: 12pt;"
literally littered everywhere in the CSS file (see below), I'm seeing
16pt type either on direct export or if I preview in Textmate's built-
in browser and then copy and paste out to an RTF editor.
The CSS involved is like this:
@page
{
size: auto;
margin: 1in 1.5in 1in 1.5in;
orphans: 2;
widows: 2;
}
body
{
font-family: "Gentium Basic";
orphans: 2;
widows: 2;
font-size: 12pt;
}
h1
{
letter-spacing: 2pt;
font-weight: bold;
font-variant: uppercase;
margin-top: 4em;
page-break-after: avoid;
font-size: 12pt;
}
etc.
What am I doing wrong?
Hi,
maybe this is a very old hut, but still...
I really would like to be able to open an HTML page/code as TM HTML
output window from inside of an already opened HTML output window
because I need the TextMate.system() command.
There're several ways in my mind:
1) Javascript [don't work]
window.open('adress')
2) HTML [don't work]
<a href='adress' target='_new'></a>
3) shell [don't work]
mate -html 'adress' or cat 'adress' | mate -html
4) shell + Dialog 1/2 [don't know whether this would be possible, how
can I set the URL, and does TextMate.system() work?]
Write a nib containing a single WebView object
Any advices, hints? Or is this a feature request? I only need this
simple HTML output window without any buttons etc. I believe -
technically seen - it shouldn't be a problem ( Or? )
Thanks,
--Hans
Hi,
I've happily used textmate for about 2 years now and I love it --
thank you macromates for a great tool.
Last night in the middle of a work session the font rendering of
textmate suddenly degraded. It now looks like this:
(I use QuickType mono)
http://img2.freeimagehosting.net/image.php?7d959429cb.gif
This is what it looked like before, more or less, and still looks like
in textedit (but without syntax coloring of course:
http://img2.freeimagehosting.net/image.php?42baf8bee8.gif
Has anyone encountered this issue before? What things can I try to get
back to normal?
All fonts are affected, not just QuickType mono
1. Running 10.5 on a macbook pro
2. Happened during a time machine backup. I mention this because I had
problems with ATS server and the font caches while getting Time
machine backups working, where ats would start consuming a whole core
for hours and have to be killed. This was a week ago, and that problem
seemed to go away after deleting all Cache folders, turning off
spotlight indexing & backing up of Cache folders etc.
3. I've already deleted the ATS caches & rebooted as per the wiki page
I'm in a bit of a panic -- have a lot of work to do in two projects
and doing it with my most important productivity tool crippled is a
terrifying prospect :/
(I'm sure there are going to be people who don't think the first text
is much harder to read than the second, but it is for me and the font
rendering is one of the top 5 reasons I use a mac, so this is not
intended to open that whole discussion. I just want to know how to get
back what I'm used to looking at 8 hours a day :))
Cheers,
Michael Johnston
lastobelus(a)mac.com
Hi!
I like a code folding but simce i write Python in TM - code folding doesn't
work right... Sometimes its ok but some - weird.
So just stop fold code. Its fine but... Some time ago i read one article
about Django and find some interesting idea in that article - code folding
markers for vim.
Here is a short description:
we need to add new folding rule to fold code based on that pair of markers
#{{{
def test
...
#}}}
add regexp for folding and some macros/snippets doesn't hard (i hope ;) and
we will have working solution for Python (or any other lang) right now. I
mean in 1.5+ version ;-)
Link to full story about folding in vim:
http://www.amitu.com/blog/2007/july/vim-python-code-folding-and-my-vimrc/
Any ideas? I can't do it myself yet but i hope someone will...
Alexey
I'm running Textmate build 1436. I realised earlier today that
something weird was going on - Textmate seemed to think I'd lost a $
somewhere, but no errors were coming up when I ran Typeset & View. I
tried an experiment and added in some more errors, none of which were
showing up. I then tried processing the same file in Texshop, which
found all the errors.
I wondered if this might be due to me not having the latest Latex
bundle installed. I searched for a while to find out how to update
the bundle, couldn't find anything (perhaps it updates
automatically?!) and then installed GetBundle and opted to update all
bundles. I then tried again, and found that on top of failing to show
any errors, whenever I try to pdflatex a file an error message pops
up from Skim saying "the document *.pdf could not be opened" (where
*=document name). I then tried opening the pdf file in Preview, which
said "File error. Could not open the file."
At the bottom of the typeset and view window I see the following:
Document 'prescribedlifts7.pdf' not open in application 133:228:
execution error: Skim got an error: NSReceiverEvaluationScriptError:
4 (-1728)
Any help would be appreciated!
Toby Gee
Hi all,
I've enjoyed using TextMate a great deal and don't want to use the other
Latex editors on my computer, but:
- after updating to Leopard all was okay
- I installed the latex Leopard fix and...
- TextMate doesn't find pdflatex and suggests that the path is not there or
Latex isn't installed
- I know that Latex is installed because Texshop continues to find it and
run it happily
- I've updated (via a complete re-install of Mactex) Latex, but it still
isn't found by Textmate and is by Texshop
- I've looked at the manual and see that I should update/modify the path,
but I'm not sure where to and how to update it.
Any help or suggestions greatly appreciated,
Thanks
Ben
--
Dr Ben Wooliscroft
Senior Lecturer, University of Otago
Marketing Department
Currently on sabbatical at the Wirtschaft Universität, Vienna
Postal address:
Dr Ben Wooliscroft
Marketing Scheuch 3.OG [C]
WU-Wien,
Augasse 2-6,
A-1090
Wien
Austria
I have a bunch of log files, some of which have been zipped with gzip. Is
there a way to search across these files with TextMate without unzipping all
of them first?
Thanks
Darryl
--
View this message in context: http://www.nabble.com/Gzip%27ped-text-files-in-%22Find-in-Project%22--tp142…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
sorry, I read something in the Change logs, but I didn't understand
this.
[TM 1.5.7 (1436) osx 10.4.11 ppc]
Is it true that TextMate.system(task) (in the HTML output window)
don't retrieve the entire data coming from the task?
Or in other words; is there a limit of 8kB?
If yes, is there a way to get the entire amount of data?
Many thanks in advance
--Hans
Hi,
I started using wxPython lately and am a little surprised by PyMate's
reaction to exceptions. Try this:
> #!/usr/bin/env python
> import wx
>
> def OnRaiseException(e):
> raise "See?"
>
> app = wx.PySimpleApp()
> frame = wx.Frame(None, wx.ID_ANY, "Hello World")
>
> button = wx.Button(frame, 100, "Raise Exception")
> wx.EVT_BUTTON(button, 100, OnRaiseException)
>
> frame.Show(True)
> app.MainLoop()
Only on the second button click the traceback reaches PyMate:
> Error in sys.excepthook:
> Traceback (most recent call last):
> method tm_excepthook in sitecustomize.py at line 66
> io = fdopen(error_fd, 'w')
> OSError: [Errno 9] Bad file descriptor
>
> Original exception was:
> Traceback (most recent call last):
> method OnRaiseException in test.py at line 5
> raise "See?"
> See?
Perhaps someone can tell me whether this is a bug or a feature.
Regards,
Daniel
I updated the Find Email Address in Address Book command from last year[1] to use RubyCocoa and the AddressBook framework. It seems a lot faster than using contacts or lbdb, and unlike AppleScript it works when the Address Book is closed.
I tried changing the menu to use TextMate::UI.menu, but tm_dialog just hangs... I guess there's some sort of OSX namespace conflict going on?
Haris, thanks for the offer to look at my .bib file. Through
elimination I have now established that the problem is caused by the
entry below. I don't normally add lots of custom fields, these were
automatically created when I imported the entry from a database. I
don't need any of the custom fields and deleting them solves my problem.
A question of general interest remains however.
Which of the following two holds:
- the exporting database and/or Bibdesk on import create non-standard/
invalid bibtex code,
or
- the TM latex bundle has a bug in that it hangs on valid custom
fields it should simply ignore?
In other words, who should I file a bug with?
Bilal.
@book{dfee:1998,
Author = {for Education, Department and Service, Employment;
Government Statistical},
Booktitle = {Teacher Supply and Demand Modelling : A Technical
Description},
Date-Added = {2007-12-03 20:32:33 +0000},
Date-Modified = {2007-12-03 20:33:32 +0000},
Dc.Creator = {BOPCAS team},
Dc.Creator.Address = {virginia.knight(a)bristol.ac.uk},
Dc.Date = {2007-06-02},
Dc.Date.Created = {2006-11-17},
Dc.Description = {BOPCAS record: Teacher Supply and Demand
Modelling : A Technical Description: 1998},
Dc.Format = {text/html},
Dc.Identifier = {http://www.bopcris.ac.uk/bopcas/bop1998/
ref10076.html},
Dc.Language = {en},
Dc.Publisher = {ILRT, University of Bristol},
Dc.Source = {ISBN: 0-11-271032-8},
Dc.Subject = {EDUCATION;},
Dc.Title = {Teacher Supply and Demand Modelling : A Technical
Description},
Dc.Type = {Data.Structured-Text},
Isbn = {0-11-271032-8},
Publisher = {The Stationery Office},
Series = {Departmental Publication},
Title = {Teacher Supply and Demand Modelling : A Technical
Description},
Year = {1998}}
> Can you send me your bibliography file? It seems that's were the
> function chokes.
> How large is your bibliography file?
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
Hi there,
I've just downloaded Ciaran's tmplugin+QLGenerator, and I'm very happy
with it.
If I got it right, the plugin generates a screenshot and then displays
it within QL. There's just a little downside to it:
The dimension and readability of the generated screenshots are implied
by the number of columns and rows of the documents, which sometimes
produce weird results.
I posted 2 screenshots to make it clearer. The first one is the most
significant, and the second one is to povide an example of acceptably-
readable scrrenshot.
Suggestion: Couldn't the screenshot be generated in a panel with a
fixed number of columns, and be of fixed width?
Thanks and congrats anyway, I was bored of black and white QLing my
source files!
Xavier Cambar
EDIT: And now with the files! ;-)
Hi there,
I've just downloaded Ciaran's tmplugin+QLGenerator, and I'm very happy
with it.
If I got it right, the plugin generates a screenshot and then displays
it within QL. There's just a little downside to it:
The dimension and readability of the generated screenshots are implied
by the number of columns and rows of the documents, which sometimes
produce weird results.
I posted 2 screenshots to make it clearer. The first one is the most
significant, and the second one is to povide an example of acceptably-
readable scrrenshot.
Suggestion: Couldn't the screenshot be generated in a panel with a
fixed number of columns, and be of fixed width?
Thanks and congrats anyway, I was bored of black and white QLing my
source files!
Xavier Cambar
Hi,
when I select 'Citation Based on Current Selection' I get a spinning
beach-ball. Activity Monitor shows a ruby process eating 99% CPU.
When I quit it, the following is inserted in my TM document:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:134:in `parse_bibfile':
Interrupt
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:115:in `map'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:115:in `parse_bibfile'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:250:in `cite_scan'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:247:in `each'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:247:in `cite_scan'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:246:in `call'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:215:in `recursive_scan'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:214:in `each'
... 8 levels...
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:203:in `recursive_scan'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:254:in `cite_scan'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/LaTeXUtils.rb:63:in `get_citations'
from /tmp/temp_textmate.MQuf7X:8
I think it worked correctly at some point in the past.
Any ideas on what's going wrong here? Any help would be much
appreciated.
Bilal.
Hi all,
Apologies if this is an old query, but I've tried finding the answer in the archives and nothing seems to fit with what I need.
I have set up my blog and can post entries and edit entries just fine, but if I try and add a category (using the "tab-cat" snippet) then I get an error message:
"Received exception:Wrong type NilClass. Not allowed!
No categories are available!"
Does anyone know why this might happen with categories when I can access posts remotely?
Many thanks,
Nigel
Hi all,
I have recently been set up with Textmate at work and I want to export
all the settings I have created over time on my own version. IE, the
bundle and the themes.
I would like to know, do the "bundles" and "themes" folders in
/library contain all my customizations? I have installed a HTML bundle
a while back, but I have also added my own snippets and key commands
to this. Will this all be saved in the single bundle?
Thanks for any help.
Hi Textmate fellows,
I've always been slightly jealous of emacs' auctex
mode with previewing of images and equations in a TeX
document. I understand the issue of dealing with fancy
fonts in a source editor, but would it be possible to
create a preview of parts of the code in the form of
tooltips?
I've been thinking of that for a while, considering
the use of latex2html to generate images, or the sleek
LaTeXit freeware. These two would really slow down the
process, as they call latex and generate images.
Now I think I've just found the ultimate tool:
http://www.math.union.edu/~dpvc/jsMath/welcome.html
This is by far the best math publishing solution I've
seen on the web when it comes to including math on
html pages (MathML, although promising, is really
lacking support).
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
I searched the list and found a error with BlogMate, but I don't have it
installed. I do know that this error is local in nature. I can login
under admin and use mate from the command line. Under my account I get
this message:
2007-11-26 15:03:11.446 mate[2591:10b] Exception raised during posting
of notification. Ignored. exception: '[NOTE: this exception originated
in the server.]
*** Object does not implement or has different method signature'
invoked observer method: '*** -[OakLaunchHelper didLaunchTextMate:]'
observer: 0x121090 notification name:
'NSWorkspaceDidLaunchApplicationNotification'
I've removed the preferences.plist and removed bundles and other
possible solutions from the list but nothing.
Thanks for any help.
J
Hello,
I am relatively new to TextMate.
I am trying to figure out where the date format is defined in blogging
bundle. What I would like to do is have fetch command render the date in the
U.S. format (day/month/year).
Could someone point me in the direction of where to look.
Thanks,
Scott
Has anyone come up with a command or whatnot so that by holding down
a modifier key we can drag files from the Finder to an open document,
and have it insert the absolute path (instead of the file contents)?
Is this doable right now?
Thanks,
Eric
Hi everone.
I recently tried to make ruby folding work all through our rails
project and almost succeeded. Typical offenders are p.e. do... end
statements in one line (we just use {} now). But I have problems
with do... end blocks which directly get a method sent to:
blabla.collect do |whatever|
format(whatever)
end.join(',')
Here the folding stop working for everything that follows in the
document and in this case it's difficult to rewrite the code to make
folding work (suggestions highly appreciated). I tried to modify the
Ruby language grammar to no avail and it seems that folding should
work here:
| (^|;) \s*+ end \. .* $
Shouldn't this line within the foldingStopMarkers match? I'm
confused and would be grateful for any help.
Regards, Niko.
>From a quick look at the archives, it looks like at least a few people on
this list have been using Textmate on Leopard... has anyone had trouble with
spaces? I've noticed that sometimes when I have textmate windows on spaces
other than space 1, all the windows will become inaccessible. The only way I
can make them work again is to disable spaces. This is especially pronounced
if I launch textmate from another space. Has anyone noticed this or found a
work-around?
Thanks
Geoff
Hi,
here comes a suggestion for all R users.
I wrote a tiny R daemon bundle in order to run R 'inside' of TM.
There is no need to start RGUI etc.
I found a naive way to do it and it turns out, at least for me, it's
quite useful. So my question is whether this approach is also useful
for others. If yes, I/we can elaborte this bundle.
Demo Movie (4.3MB) http://www.bibiko.de/Rsession.mov
Up to now you can do the following:
-install this bundle R daemon
-open new document, set the language to R or R console, type 'start'
and press TAB
-R daemon will be installed into $HOME/Rdaemon (please check the
directory if you don't use it!)
-after some seconds you can type any command into that window and
press 'NUMPAD-ENTER'
-the result will be inserted into the current document
-if you want to execute a selection the output will be written into
the file r_res (useful if you write a script)
-errors/warnings will be output as tooltip (but not every error, then
you have to check 'geterrmessage()'!)
-there is a progress bar showing the progress of R's calculation
-the entire session you can find in r_out (the nice side-effect is
that even if the R daemon, or TM, or the Mac crashes you have at
least r_out to reconstruct the last session)
-the R daemon listens at the named pipe r_in
-errors/warnings are written to r_err
-if you know that the command will take some minutes you can execute
this command in the background (SHIFT+NUMPAD-ENTER); the result will
be written into r_res; by doing so you can send a task to R while
writing further stuff in TM (I used sink() for that)
-R daemon comes with its own persistant history list (i.e. if you
quit the R daemon and you start it again you also have all commands
from the last session (OPT+ARROWUP/DOWN CTRL+OPT+ARROWUP for a list
[last command comes first]))
-I rewrote the help for the current word as an HTML page using frames
-Autocomplete and command template now works case-sensitive meaning
if you look for 'mat' you won't get 'Math.'. Furthermore it also
works for functions defined in the current session!
-I included an example TM project Rsession ($HOME/Rdaemon).
-note 1: plot
R runs as normal session in a hidden Terminal. Thus one has to use
X11 for plotting into the null device.
If such a device is open and you quit X11 the R daemon will quit
immediately!! I cannot catch this yet.
CTRL+NUMPAD-ENTER can show the current plot as PDF. I set the the pdf
file to ~/Rdaemon/plots/Rplot.pdf
-note 2: quit
You can type 'q()', delete the prompt and answer the question, or
type kill TAB to kill it.
-known pitfall 1: readline
In principal readline("prompt") works, but if 'prompt' is prompted,
you have to delete it or press ENTER to insert a value. Otherwise R
will get the entire line a input (I work on it)
-known pitfall 2: synchronisation
One tricky point is the synchronisation of the output. I went the way
to look for R's CPU coverage. If this is zero I assume that R's
ready. One can test this if you execute 'c(1:200000)'. If you see the
last line mentioning you reached the max line etc. everything is OK,
if not one has to fine-tune it. It's done via a tiny sleep command.
As I already mentioned this is written very fast!! Esp. the daemon
which is written in Ruby needs some help from Ruby experts ;)
With R daemon one has the full control meaning you can do thousand of
nifty things ;)
Any comments?
Cheers,
--Hans
Hi,
There is now a FishEye <http://www.atlassian.com/software/fisheye/>
instance for the bundles repository <http://fisheye2.cenqua.com/
browse/textmate-bundles/>.
FishEye is a tool to give insight into a code repository. It allows
for complex searches of the code base and notifications of changes.
LD.
Hi,
When I have a project checked out of Subversion (svn) and want to change
a file's name, the TextMate rename appears to do a file system rename.
Doing that confuses svn and would require an svn add to the repository,
which throws away the history of the file under its old name.
Is there a way to have Rename do an svn mv instead of file system mv?
Thanks,
Oliver
--
Oliver Meyn
Senior Developer
TSOT, Inc.
151 Bloor Street West, Suite 601
Toronto, ON
M5S 1S4
(416) 524-2240
http://www.tsotinc.com
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please notify us at
info(a)tsotinc.com <mailto:info@tsotinc.com> and permanently delete the
entire communication from any computer, disk drive, or other storage
medium. Please note that any views or opinions presented in this email
are solely those of the author and do not necessarily represent those of
the company. The recipient should check this email and any attachments
for the presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email.
TSOT Legal
> On Dec 8, 2007, at 11:20 PM, Constantinos Kouloumbris wrote:
>
> >> Under review. http://macromates.com/svn/Bundles/trunk/Review/Bundles/
> >
> > Is there any specific reason...
>
> There are some pretty major issues with the bundle so it was moved to
> denote that in the hopes that someone would do some work on it. Most
> of the issues have been detailed in a comments file:
>
> http://macromates.com/svn/Bundles/trunk/Review/Bundles/PHP%20Cake.tmbundle/…
>
>
I've been hoping to work on it to get the cake bundle caught up to
cake 1.2 and get the issues that Michael has pointed out, but I've
been jammed with work recently.
Sam D
--
(the old fart) the advice is free, the lack of crankiness will cost you
- its a fine line between a real question and an idiot
http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
Hi people,
I am new to this list, and I apologize before hand if this topic has
been discussed before. I recently updated my system and I was looking
for the cake bundle that I use so much, but it wasn't in the svn repo.
Can anyone tell me what happened to it?
--
Regards,
CK (Constantinos Kouloumbris)
GPG: 0x2502604D
http://kouloumbris.com
"A bus station is where a bus stops. A train station is where a train
stops. On my desk, I have a workstation…go figure."
~ Steven Wright ~
Very recently, yank (C-y) as stopped working for me. Instead of
inserting text from the kill ring, it switches focus to the gear button
on the project drawer. I don't know what I've done to cause this
change. I thought it might have been TextExpander, but the problem
persists after uninstalling it. There is no mapping set for C-y in the
keyboard pref pane. C-y works in other Cocoa apps.
I would much appreciate any troubleshooting suggestions.
Mac OS X 10.5.1 Intel
TextMate 1.5.7 (1436)
Thanks.
After a reboot due to an update in Logitech's software mate has
stopped working, see trace below (I don't know whether the software
update is relevant). Any ideas?
-- fxn
2007-12-08 02:07:47.209 mate[470:10b] An uncaught exception was raised
2007-12-08 02:07:47.211 mate[470:10b] [NOTE: this exception originated
in the server.]
*** Object does not implement or has different method signature
2007-12-08 02:07:47.212 mate[470:10b] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '[NOTE: this
exception originated in the server.]
*** Object does not implement or has different method signature'
2007-12-08 02:07:47.212 mate[470:10b] Stack: (
2481635947,
2426728603,
2481634705,
2455251046,
2455248905,
2481658570,
2481658674,
10507,
14446,
9754,
9525
)
/Users/fxn/bin/update_reading.sh: line 4: 470 Trace/BPT
trap mate -w db/reading.yml
Hi,
I've just started using TM, previously I used emacs. When I typed a perl
line like:
my $p = Base::Sub->new
(id => 1234,
name => "test");
I would only have to hit tab on each new line to move the cursor to below
the appropriate place on the above line i.e. it auto formatted the code for
me. TM doesn't seem to do this, which is annoying the hell out of me. Can
someone help please?
--
View this message in context: http://www.nabble.com/Lining-up-code-automatically---perl-mainly-tf4958584.…
Sent from the textmate users mailing list archive at Nabble.com.
Hey guys.
got some questions:
I cant get std8 classes to work with mtasc. I thought that it should work
right out of the box?!?
I´m using actionscript bundle.
And to my other question is there anyone that can give med a dummy project
of actionscript/mtasc?
(i.e a as project thats uses main class och a coupul of other classes) Just
so that I can get a running start att this. I´ve been developing flash sens
flash 2. But never open scorce.
Thank you for your help and sorry for my spelling.
Martin
--
View this message in context: http://www.nabble.com/actionscript-mtasc-tf4949238.html#a14170392
Sent from the textmate users mailing list archive at Nabble.com.
dear all,
all of a sudden the typeset & view window displays the message
"There was a problem reading the preferences file, continuing with
defaults"
have been working on a big projekt for hours, just editing tex files
and command-R all the time.
restart of textmate doesn't change anything. restart of the machine
is of no help either.
any ideas? or any ideas what might have caused this behavior?
christoph
Although I have used svn exclusively via the command line in the
past, I'm really enjoying the convenience of the svn bundle --
especially when working within a project. I did, however, notice one
minor problem which might be a bug. Say I have the following
(invisible) directory named .foo:
vampire-squid:~/Desktop/.foo pschumm$ svn status
? my-new-file
M foobar.tex
(note the period in the directory name, and the new file still
unknown to svn). If I open the file foobar.tex in TextMate and use
the status command from the svn bundle, the resulting output shows
only the modified file (i.e., the new file does not appear in the
output). However, if I remove the . from the directory name (i.e.,
change it from .foo to foo), then the output of the status command
shows both files (i.e., it is consistent with the output of "svn
status"). Thus, it would appear that when a period appears in the
path, new files are not shown in the status output.
This situation can arise if, say, you keep personal settings folders
(which often start with a period) under version control.
-- Phil
Hi,
I've got a question about the comments.
The normal comment cmd-/ comment's the current line / selection nice.
However when i comment a line with cmd-alt-/ (insert comment block)
while i'm standing in front of the line the output becomes
/*
*/My comments
Is it possible that the current line / (selected) lines are inside the
tag ?
Regards J.
Using the date picker results in the following error:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/date/format.rb:230:in /bin/bash: -c: line 0: unexpected EOF while
looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filestrftime'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/date/format.rb:201:in /bin/bash: -c: line 0: unexpected
EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filestrftime'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/date.rb:1343:in
I'm using TM Version 1.5.7 (1436) with the latest checkout from the
subversion repository on 10.5.1.
All the best, Mark