Politics, Programming and Possibilities
2 May
I just uploaded my latest Textmate bundle changes. Included in this release is a new feature I’ve dubbed “Intelligent Jump” (I suppose I may be over using the “intelligent” monicker, but it seems to fit once again).
This feature lets you move around your Ruby, HTML and XML code with ease. Check out the 1.5 MB screencast.
See my Textmate Bundle page for a full run-down of the bundle. (2 features now, woohoo!)
12 Responses for "New Feature: Intelligent Jump"
Yay! I’m famous
That’s really handy.
If you don’t mind, i have a modified version of your bundle on my SVN repo. I changed some keystrokes and minor stuff to make it play well with the rest of my stuff.
http://textmate.svn.subtlegradient.com/Bundles/Duane%20Johnson.tmbundle/
this is great, thank you.
Thomas: I don’t mind at all. I appreciate how open you are with your work, and as you can see, I’ve stolen several ideas from you for embellishment already–I can only return the favor.
I love the bundle, it’s good stuff.
But this new feature seems to be “modifying” the file when you use it. For example, if I open a new file and hit end to make a selction, the file shows as being modified. Also, using undo will travel backwards through the selections. Not sure if this is a bug, just found it odd.
If you don’t mind my asking, what are the screen cap settings you use for the movie (compression, format)?
Justin: Yes, I’m aware of the “modification” to the file while traveling forward and backwards. I’d like it to not do that, but I’m currently unaware of a way to work around it. The problem is that Textmate sees the “insert-as-snippet” replacement as a modification when there’s no visual change. Let me know if you think of anything.
Christian: I’m not actually sure. I use ScreenRecord and choose “export”, then “Movie to Quicktime Movie” and “Broadband - High” as the settings. It seems to hide the details from me.
Hello, Duane.
Except from the Home/End setting modified flag as previously mentioned, I’ve also seen a more abnormal behaviour: When using with .rhtml file, sometimes when moving within the tags, the code itself would change, mostly being reindented. This is most annoying, since the file changes visually in an unexpected way.
Jacob: You need the “cutting edge” version (985) of Textmate to get rid of the re-indentation problem. Also make sure you have my latest bundle, as my first or second release didn’t take care of that properly.
You should add a note about the cutting edge requirement to the download page, at least until it doesn’t require cutting edge anymore. That one threw me for a loop and I almost dropped the bundle (not a threat, I really wanted to use it) because of it.
Found a case where the plugin is actually modifying code in a way to break it:
Before the “jump”:
puts “Categories: #{categories}”
lnks = @nav_frame.links.collect
puts “#{lnks.length} links found”
Now I hit “End” with the cursor in the word Categories, and get this
puts “Categories: #{categories}”
lnks = @nav_frame.links.collect
puts “#{lnks.length links found}”
Note that the braces around “lnks…” have moved, making the code invalid. Any ideas?