Is there an "Go to last edit" keyboard shortcut, or a way to create one in
TextMate?
Essentially, the idea is that when editing a file, I often move around in
the file to check other things and then want to come back to the place I was
editing to continue what I was doing. Now I have to remember to add a
bookmark, before navigating around, then find that bookmark, and remove it,
which is a bit cumbersome.
Alex
-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context: http://www.nabble.com/%22Go-to-last-edit%22-keyboard-shortcut-tp25930612p25…
Sent from the textmate users mailing list archive at Nabble.com.
I'd like to assess the state of the Scala bundles and assemble the
state-of-the-art one, since currently folks keep several versions of
their (ond even others') bundles on github or web at large.
Here's what I found so far:
Paul Phillips -- http://github.com/paulp/scala-textmate,
The Scala bundle seems the most evolved one. There're two others there.
A couple others which seem not integrated:
Niko Matsakis --
http://smallcultfollowing.com/nikolog/2009/06/06/new-scala-textmate-bundle/
Michael Nischt --
http://gestalt.monoid.net/blog/2008/02/new-scala-bundle-for-textmate.html
A previous attempt at coming up with a single official Scala bundle is
documented here:
http://www.scala-lang.org/node/592
I've started a private effort to integrate, but so far only Dean
Wampler contributed his bundle:
http://github.com/deanwampler/Scala.tmbundle
My specific point which I'd like to add to the official bundle is
symbols. Scala allows for the 'symbols, interned strings a lá Lisp
'symbols or Ruby :ones. Scala also uses 'apostrophizedSymbols, which
screws up highlighting, making TextMate think it's a string. The
issue was discussed on the scala-user list in the following thread:
http://old.nabble.com/%27symbols-break-most-editors-td25553152.html
Paul resolved it in his setup, and produced a tmDelta file:
http://www.improving.org/scala/Scala.tmDelta
-- noting that's all which is needed to amend the official bundle;
Paul's setup links that to the pristine bundles, of which origin I'm
not sure as there seems not to be a pristine/official TextMate Scala
bundle in the SVN at http://svn.textmate.org/trunk/Bundles/?
Given the prelims, a flurry of questions: Am I missing any other Scala
bundles, are there any other ongoing integration attempts, what could
be in the pristine bundles for Scala (why do we have things linking to
the pristine bundles, and why), how do I integrate a tmDelta into the
official bundle (replacing tmLanguage?), and where should the final
one be submitted so I can maintain it?
Cheers,
Alexy
Hi,
I have precisely the problem described here:
http://forums.macosxhints.com/showthread.php?t=105312
That is, if I choose "save as..." from any textmate document, the
appearing window does not remember the folder where I've been. It
always wants to save into "Macintosh HD", which is annoying.
I work with textmate (version 1.5.8 (1505)) on Mac OS X (10.6.1).
Any help is appreciated.
Marius
Hi list,
I've recently been working on a Relax NG to TM Language Grammar XSLT
stylesheet. I did it mainly to exercise, so I didn’t look far for
anything similar. Because Relax NG is XML and can be easily
generated from DTD or XML Schema using trang, it seemed like a good
choice.
I’d like to read your comments, especially about the generated
grammars style which need much improvement.
How does it work:
1) put a file.rng (in XML syntax) in the Schema directory
2) from the root directory, execute the shell script ./rng2txmt.sh
Schema/file.rng
3) the grammar is generated as "Generated Language Grammars/
file.plist" (along with file.plist.xml)
If this doesn’t work, please read the known issues, it might be a
namespace problem.
What does it try and do:
* look for and mark invalid tags or attributes under or in a given tag
* avoid to create empty repository entries
* give a tag-aware scope for attributes (aim is to generate auto-
completion lists aside)
What I would like it to do:
* have basic namespace support
* have current-tag-aware (not any-ancestor-aware) scope for auto-
completion of tags
e.g, a scope which only match the dots in <a>....<b> <c/>
<b>....<c/>....</a>
Not so long ago, I would have say it's impossible, but now that I’ve
slightly improved my TM grammar-fu,
I’m pretty sure it is achievable and may even be not that hard.
Matching > and /> to open, looking-ahead for <b and <c to close,
perhaps.
* actually generate completion list. This shouldn’t be too hard.
Known issues:
* If I’m right, TM grammars works in a « first matching rule is
chosen » which is incompatible with Relax NG main advantage : non-
determinism. Thus I think some Relax NG schema may never be parsed
correctly. DTD and XML Schema need to be deterministic, however, so
the issue is not that important. I think this is the problem with
the generated relaxng grammar.
* / ! \ Because XML namespace is a mess and I didn’t bother dealing
with it in my stylesheet, one need to remove any mention of the
default namespace in the rng file. Otherwise the stylesheet won’t
generate anything
* It currently doesn’t deal with anyName, exceptions, exclusive
choice or any other RNG construction.
* No auto-indentation of the generated plist. Who cares, anyway, TM
cleans it up for you.
* A whole lot of useless scopes, mainly there for debugging.
* Whitespace in tag management in inconsistent.
* The code is ugly.
By the way, I’ve used some excerpts from default XML grammar. I hope
it does not bother its author. Is he Brian Lalor or Allan Odgaard?
Thanks,
Édouard
hello
i am going to erase and re install the OS on the machine.
with in context of TM ...
I do have the original e-mails from TM with keys and download link for the
TM application.
Question: does the code at TM permit a re load of the application from the
e-mail link that was sent last February. Or do i need to re request a new
link for a re install.
Thank you
Hi,
I've just uploaded an enhanced version of the new “Go to Last Edit”
TextMate plug-in:
The TMGoToLastEdit plug-in installs a new menu item “Go to Last Edit
⌥⌘J” at the bottom of TextMate's Navigation sub-menu. By using a
Undo/Redo or Redo/Undo approach (which will be detected automatically)
on the current document this command will place the caret to the last
edit position.
• Download [12kb]:
http://email.eva.mpg.de/~bibiko/downloads/textmate/TMGoToLastEdit.tmplugin.…
To install this plug-in simply download it, decompress it, and double-
click at it.
This command is available if at least one Undo or Redo step can be
executed. It works in TextMate's documents, in the Bundle Editor, and
in all text input fields.
If an Undo operation ends up in displaying a selection the caret will
be located at the beginning of the selection if the command was
performed in a TextMate document otherwise at the end of a selection
due to internal technical factors.
The command listens to the default key-binding ⌥⌘J. If you want to
change that key-binding and/or the menu item title you can open the
NIB file “GoToLastEditMenuItem.nib” with the “Interface
Builder” (part of the Developer Kit). This NIB file is located inside
of the plug-in (Show Package Contents in Finder):
→ Resources → English.lproj → GoToLastEditMenuItem.nib.
If any issues arise please let them me know.
Cheers,
--Hans
Hi
I'm using the current release of TextMate and have tried the blogging
bundle, without success.
I get the following returned following an attempted login to the
Wordpress blog (which is version 2.8.4)
(just trying to list posts as a test [ per the TextMate instructions].
XML-RPC is enabled on the blog.
I have no issue gaining access via WP edit client running on an iPhone.
Any help or suggestions would be appreciated.
Miles Pearson
pearson(a)latent-synergy.com
Hi,
I need sometimes to create multiple folders from a
list of names in a file
for example in a file : list_names.txt
January
February
...
December
I would like from textmate use a command like : select the names
and get the folders.
With bash and without spaces in the names, it's possible to get a result
with the file list_names.txt (I'm a newbie with bash ! )
#! /bin/bash
for item in `cat list_names.txt`
do
mkdir $item
done
But this is not very fine because I can't give the path for output
folders
1) Is it possible with textmate to create a command and to give the
path
with an interactive action
2) Do you know a Ruby script to make this ? (it's to learn about Ruby)
3) Perhaps "Interactive Input" is an answer to give the path for the
ouput place
but I run textmate with Snow Leopard and tm_interactive_input.dylib
gives me some problem with laTeX.
4) Perhaps with regex, it is possible to determine names with spaces
inside
if RC is the separator ?
Then, in these folders,I need to create a lot of files like
In tkz_graph folder
tkz_graph_example_1.tex
tkz_graph_example_2.tex
...
tkz_graph_example_20.tex
idem with tkz_2d etc ...
To create these files, I use the same LaTeX template and the question
is the
like the first one.
How to create a command with the number of files and
and the possibility to choice a directory?
An idea was to select "20" and "/Users/ego/work" and to launch the
command but
I'm not an expert with bash or Ruby to make this ...
Best regards
Alain Matthes
Hi - I remember there was an enhanced version of Command-T
, which is a bundle if I remember correctly. But I forgot
the name of the bundle.
Can anybody point me to the bundle?
Takaaki
This has been covered before ( http://lists.macromates.com/textmate-dev/2009-May/013933.html ), so I'm not hopfeul, but I thought it was worth asking again, in case anything has changed. Probably not.
The responders to the thread linked above recommend writing Ruby modules and stuff, which I do when I'm working on a bundle, but what if I have a bundle and I want to call another bundle's commands?
Fortunately, I'm in control of both bundles, but for organizational and responsibility reasons, I don't want to combine them. One is very utilitarian (basic FTP) and the other is extremely specific (stuff related to a single project I work on, has absolutely no relevance to anything outside of the project). The good news is that I already have my bundles set up to be somewhat modular/class-driven.
I realize that doing this creates dependencies between bundles, but I'm OK with this, and feel it's better than recreating my FTP commands in another bundle.
One thought I had would be to get the TM_BUNDLE_SUPPORT value, pop off the bundle name and replace it with the bundle name of the target, and get to the Ruby file I need. But then...wouldn't any TM_BUNDLE_SUPPORT values used in the other bundle's scripts evalulate to the wrong place?
Would it be better to find a place for such universally appealing ruby files outside of TextMate? Should I learn how to write plugins, and/or deposit code into the SUPPORT_PATH?
The original poster's idea seems close to my idea. But it would be sweet to be able to do something like:
require ENV['TM_SUPPORT_PATH'] + '/lib/bundle_access'
BundleAccess.executeCommand("Some Bundle", "Some Command", argin)
Or something that could safely instantiate Ruby objects from other bundles to allow them to be used in your bundle without mucking with the BUNDLE_SUPPORT value.
I don't know...just spitballing.
Thanks,
Dru