hello list,
i was searching this list and also the web for an easy way to use the
diff bundle or how to apply a diff to a whole directory. strangely
this does not work as expected.
i am having a quite large diff file that should patch various files in
a directory in several sub directories. if i am trying
Bundles->Diff->Apply Patch to Files...
and selecting the base directory from where it should patch, strange
things happen.
The Output for all files is the following:
File to Patch
Skip this patch? [y]
Skipping patch.
is there anything wrong with the current diff bundle? or is it maybe
not working with more than one file to patch?
thanks for the help,
mz
Hello,
I have problems with tm_dialog. I get this message, when I start TextMate:
--snip--
2007-02-06 23:19:17.132 TextMate[6159] *** -[NSBundle load]: Error
loading code /Users/thomas/Library/Application
Support/TextMate/PlugIns/Dialog.tmplugin/Contents/MacOS/Dialog for
bundle /Users/thomas/Library/Application
Support/TextMate/PlugIns/Dialog.tmplugin, error code 2 (link edit
error code 0, error number 0 ())
--snap--
And it doesn't work with the bundles like Blogging (Fetch Post) or
TextMate (Paste online).
Thomas
Hello all,
If you have a chance, it's a fun read and great responses from Allan.
http://nslog.com/2006/11/08/textmates_undo/
In my opinion, Erik is just upset that he did not get a free license
from Allan. :)
When working on a LaTeX document, folding is
a superior way of focusing on a part of the document,
much better than splitting the document into
pieces and \include'ing them. So I use it a lot.
But when I unfold a section of my paper to
edit it, only the first level is unfolded; inside it.
the nested levels remain folded. I understand this
is exactly how it is supposed to work, but I feel
for LaTeX it would be much better to have the
possibility to unfold a section completely, down
to the deepest level, with only one keypress.
I have a much better view of the section I'm
working on if nothing is hidden (it's different
from coding I guess).
Is there a way to achieve this with the present
folding system?
Thanks,
Piero
Hi guys,
I'm trying to build a template which will consist of an HTML file and
a CSS file (eventually a number of CSS files in a separate directory)
but I'm having a few problems. I tried duplicating the Objective-C
singleton template and essentially copied and pasted the code with a
few changes. This is what my template code looks like now:
export TM_YEAR=`date +%Y`
export TM_DATE=`date +%Y-%m-%d`
export TM_USERNAME=`niutil -readprop / /users/\$USER realname`
TM_HEADER="$TM_NEW_FILE_BASENAME.css"
if [[ ! (-f $TM_NEW_FILE || -f $TM_HEADER) ]]; then
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <html_in.html >"$TM_NEW_FILE"
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <css_in.css >"$TM_HEADER"
fi
This creates the HTML file but not the CSS file. Or at least it
didn't until I reloaded the bundles and discovered "untitled.css" had
appeared in the template file list alongside html_in.html and
css_in.css. Very odd! I did some more reading and found a post in the
mailing list archives (http://article.gmane.org/
gmane.editors.textmate.general/8424/match=templates+multiple+files)
which Allan mentioned I need to edit an info.plist file.
Unfortunately I've not been able to find this file anywhere. Could
anyone suggest where it might be and what I need to edit?
Eventually I want to build a template which looks like
index.html
\stylesheets
master.css
standard.css
Would this be possible and if so, any pointers on how I might go
about it?
Cheers!
Alastair
I'm trying to fetch a post from a blog and receiving the message that
my dialog tool is at v8 while my plug in is at v5 - anyway to remedy
this problem without having to use svn?
Jose
This morning I posted a message using the Blogging bundle to a Typo
blog hosted on my desktop machine. The headers in the initial post
were pretty minimal: Title, Blog, and Format. As usual, when the
posting completed, the document was updated with several new header
fields. The Date field came back as
-4713-12-31 18:00:00 -0600
which is, pretty clearly, not today's date. At first, I didn't notice
this, and when I edited the message and tried to repost it I got an
error message:
Error: Internal server error (exception raised)(2)
Fixing the date to a valid value solved the problem, but I'm
surprised that an invalid date was produced in the first place. I've
posted only a few messages to this blog with the Blogging bundle, but
have never had this problem before. Any ideas on where it comes from?
My version of TM is 1.5.4 (1349); Typo is version 4.0.3. I can't find
a version number for the Blogging bundle, but Blogging.tmbundle has a
modified date of November 21, 2006.
--
Dr. Drang
When you edit bundle Commands/Macros/etc you have a final
trigger. Why not to add:
??
Close File should always Discard the Output and
Open File should always have None Input
but I find no other problems.
Sorry if I am posting an out of topic, but this problems raised to
me when hooking the save process to hold a saved file history stack:
------------- Command, Cmd-S (pre: SaveFile)
#!/usr/bin/env ruby
H = "/Users/me/.TM_LastFiles"
files = []
last = ENV["TM_FILEPATH"]
files << last
if FileTest.exist?(H)
IO.readlines(H).each {|l|
if l != last
files << l
end
}
end
f = File.new(H, "w")
files.each {|l|
f.puts l
}
f.close
puts files
--------------------
Why it always ignores the "if" and adds always the current file to
the files array??
????
Sorry for the text dump but I received this error after trying to run
a few lines of ruby. I'm fairly new to *nix which I think might be
related. Anywho, this is what I got:
RubyMate r6189 running Ruby r1.8.2 (/usr/bin/ruby)
>>> ruby.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in
`filter_stdout': undefined method `test_script?' for nil:NilClass
(NoMethodError) from /Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:70:in `emit_html' from
/Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:64:in `each' from
/Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:64:in `emit_html' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:73
I tried running a simple puts, too and got this.
Jose