Attempting to use the latest CVS bundle (checked out via git), I'm
finding that most of the CVS commands are not working in TextMate
v1.5.8 (1498). The History -> Log
and Revert commands worked, but others fail with errors like this
(from a diff attempt):
/Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:310:in
`to_plist': An object in the argument tree could not be converted
(ArgumentError)
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:310:in`block
in initialize'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:309:in`popen'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:309:in`initialize'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:20:in`new'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:20:in`dialog'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/progress.rb:42:in`call_with_progress'
from /Users/steve/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_diff.rb:13:in`diff_active_file'
from -:6:in `<main>'
or this (from a commit attempt):
/Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:212:in`eval':
wrong argument type Proc (expected Binding) (TypeError)
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:212:in`_capture_outer_self'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:145:in`method_missing'
from /Users/steve/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:19:in `'
Each failed command leaves an untitled, unclosable window in its wake.
Anyone else see this? Is there a place to submit bug reports for
bundles?
Thanks,
Steve
When I want to use the Markdown --> Headings --> Level 1 [setext] /
Level 2 [setext] commands, I get the error message
"/tmp/temp_textmate.qXjdGq:11: undefined method `rstrip' for
nil:NilClass (NoMethodError)".
Textmate is Version 1.5.8 (1505) on Leopard 10.5.7 with the stock ruby
1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0].
I updated Markdown.tmbundle to r11632 and Support to r11693 but it didn't help.
Any idea what is going wrong here?
The Code of the Headings Command is:
#!/usr/bin/env ruby -wKU
require 'jcode'
# Split document into lines. Get current line number minus one for
# previous, minus another for ruby being 0 based.
lines = STDIN.readlines
line = ENV['TM_LINE_NUMBER'].to_i - 2
# Get length of previous line, using jlength for unicode
length = lines[line].rstrip.jlength
# Print same number of =
length.times { print "=" }
Regards, Sebastian R.
I'm confused about how to record a macro using a pre-defined text
string *without* defaulting to whatever was last in my Find dialogue.
For example, for use after invoking Edit-in-TextMate for an email
reply, I recorded a trivial macro that searches for
"On dateblah Jane Rodriguez wrote:"
then captures the first name using something like this
^.+? (\w+) \w+ wrote:$
and finally plops this at the top of my reply:
"Hi Jane,"
(What can I say, I'm a lazy correspondent.)
I've tried setting the macro both to local and global clipboards, and
also editing the macro syntax (with which I'm not terribly familiar)
to something like this:
<plist version="1.0">
<dict>
<key>commands</key>
<array>
<dict>
<key>argument</key>
<string>wrote:</string>
<key>command</key>
<string>findNext:</string>
</dict>
...
Seems like this should be easy, but I'm stuck--any help appreciated.
jon
PS: thanks to Jay Soffian for solving my JavaScript-as-TextMate script
question!
The Ruby on Rails bundle has the Control-Pipe keyboard shortcut for the "Call
Generate Scripts" function.
How do I enter the shortcut on an Apple Wirelss Keyboard? The pipe symbol is
on Option-7 there but Control-Option-7 does not work.
Your help is greatly appreciated.
-Ralf
--
View this message in context: http://www.nabble.com/How-to-enter-Control-Pipe-with-Apple-Wireless-Keyboar…
Sent from the textmate users mailing list archive at Nabble.com.
I've update my Ant bundle to include macros in the symbol list, as we
use a few in our build process. If anybody is interested, a patch is
attached.
Adam
Has anyone tried the bundle repository recently? It seems to be down,
ping also times out. Not sure if this is specific to my network
environment.. Is there anyone who is seeing the same symptoms?
--
Sangwhan Moon
Hi,
The 'Cleanup Whitespace' command in the Python bundle is very useful but is
cleaning up some whitespace that causes errors when I check for compliance
with PEP8. In the following code:
class test(object):
pass
PEP requires that the second line has no spaces, whereas 'Cleanup
Whitespace' adds 4. Would it be easy to fix this to be compliant with PEP?
Thanks,
Tom
--
View this message in context: http://www.nabble.com/Python-bundle-and-%27Cleanup-Whitespace%27-tp24558866…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
I was wondering if there's a neat shortcut in Textmate to jump to capital
letters in word directly. Say I wanted my caret to jump to "That" in
"VeryLongWordThatIWantToEdit" using something akin to Option+right arrow
Thanks,
Stephane
Makes perfect sense. Thanks you for the through explanation... "_if_
there is a bundle in the Pristine Copy folder" was the part of the
puzzle I was missing... Thanks again!
>>>> How do you guys do it?
>>>
>>> I keep the bundles I hack on completely in ~/.../TextMate/Bundles,
>>> and
>>> those I mainly just _use_ in ~/.../Pristine Copy/Bundles. That way,
>>> editing my own bundles in TextMate changes exactly the files I want
>>> to
>>> push out, while my changes to other bundles is kept outside of their
>>> source tree and won?t lead to merge conflicts.
>>>
>>> Going back to git, when you create a repository on GitHub it gets
>>> you
>>> to a page containing step by step instructions for getting your
>>> source
>>> tree or local repository into the new remote repository.
>>
>> I'm not asking help on how to create a git repo or using github etc.
>> That's fine... What I'm not clear about is how you manage the
>> workflow
>> so that you don't have to copy the bundles to a different place and
>> just make the bundles you're using within TextMate repos themselves.
>> Or if you shouldn't do that at all? How do you "keep the bundles I
>> hack on completely in ~/.../TextMate/Bundles"? Do you manually copy
>> from the pristin/ folder first? Because the ~/.../TextMate/Bundles
>> only contains the changes you've made to~/.../Pristine Copy/Bundles
>> right? So you can't just push that without including what in Pristine
>> too. Or am I over thinking this somehow?
>
> Ah, I see. Sorry I misunderstood you before :-)
>
> ~/.../TextMate/Bundles only contains the changes from ~/.../Pristine
> Copy/Bundles _if_ there is a bundle in the Pristine Copy folder.
> That?s the destination TextMate installs to when you double-click
> bundles in the Finder, but you can just as well place bundles directly
> in ~/.../TextMate/Bundles.
>
> To summarize:
> - Assuming you start with a ?clean slate?, i.e. there is no version of
> your bundle in either ?/Bundles or ?/Pristine Copy, and
> - assuming you have a complete current version of your bundle around
> somewhere _else_, you would
> - copy (recursively) the bundle into your ?/TextMate/Bundles folder,
> then
> - do any git/generic-scm/other setup hubbub you want.
> After making changes in the Bundle Editor, your bundle contents will
> be changed _in place_, and you can perform your favourite version of
> the commit/push dance.
>
> As for combining a bundle?s Pristine Copy and tmDeltas, I find the
> easiest way for that to be:
> Just drag the bundle out of the Bundle Editor and drop it onto your
> desktop; the dropped bundle will include all of the deltas you want.
>
> Hope that?s more helpful?
> Martin