I hate feeling like a pest, and was curious if there was a formal
place to post bugs.
What I noticed is that when you use the SVN bundle, if you pop open
the menu on a selected file in the project drawer, you -must- have a
file already open or you get no menu ;)
Sorry to be a pain :p
Eric Coleman
home: 412 399 1024
cell: 412 779 5176
I notice that there are a lot of great snippets in the ruby bundle,
but I'm wondering if there is a way to do the self-modifying versions
of these methods. For example, there is collect, but not collect!
Thanks,
Carl
In other text editors (in my pre-mac days), I very commonly used the
block editing feature to quickly align code. I would use a regular
expression match/replace to insert in a bunch of whitespace where I
need it, then block select where I want the column to start and shift-
tab to squeeze all of the text back into a nice column.
TextMate does most of the above quite nicely, with the exception of
the shift-tab. Shift-tab does not shift everything left, eventually
squeezing out the whitespace and leaving a nicely aligned column. Can
I do this somehow, and if not could it be added? (I really miss this
feature)
Thanks...
Jim Leask
Hey all, sorry for the mass email. If you are not using the LaTeX
bundle, you can safely ignore the rest.
I am currently working on the various completion commands in the
latex bundle, and I am considering dropping bibdesk support in the
completion commands in the following way: Instead of asking bibdesk
for the completion list, I have a command read that does the following:
It collects a list of bib files from the following locations:
1. the files pointed to by the environment (or project specific)
variable TM_LATEX_BIB, space separated (use quotes if the filename
contains spaces).
2. If either the file pointed to by the variable TM_LATEX_MASTER, or
the current document (if saved), or both, contain any text of the
form \bibliography{bibfile}, it adds this bibfile to the list of bib
files to examine.
It scans all these bib files for the cite keys, and uses those for
completion. It will look for titles for the pop-up menu. So there
will be (actually there already are) two commands, one that works
with Esc (normal completion) and one that brings up a pop-up of
possible completions.
The above will be faster than calling Bibdesk through applescript.
And you can of course still create citations by dragging them items
from Bibdesk and dropping them in textmate.
The main question is whether calling Bibdesk has any advantages
compared to the approach I outlined above, and whether the approach
above misses something. Your feedback would be much appreciated.
Haris
Hi everyone,
I'll be getting a Mac in the near future, and am completely convinced
that TextMate will become my text editor from day 1.
Until then however, I would really like to get used to the key commands
that TextMate uses (by default), to make the transition as smooth as
possible. Basically, I want to mimic TextMate's key bindings in my
current Windows editor, Komodo.
I've been using 'Emacs shortcuts' in Komodo for a while now, but I
understand that Textmate's key bindings are not completely similar to
Emacs (and I am sure Komodo's 'Emacs' key bindings are not 100% similar
to the real Emacs either).
Is there a complete list of all default TextMate key bindings somewhere?
Also, I've seen messages come by about 'key bindings for switchers' on
this list, but that seems to be focused on people trying to emulate
Windows key bindings in TextMate... Is there anyone that has tried the
opposite, like I would like to do?
Sincerely,
Yuri van der Meer
I used subversion to retrieve the Source bundle, but it doesn't show
up in the bundle editor. Any suggestions?
Checked out revision 2645.
LewyG4-2:/Library/Application Support/TextMate/Bundles lewy$ ls
Source.tmbundle
I'm trying to write a command that will open the current document in
an external app, here is what I've got:
open -a Final\ Draft\ 7 $TM_FILEPATH
The problem I'm having is that the FilePath (as constructed by
TextMate) does not insert "\" before a space, thus the command in
question is unable to find documents with spaces in the filenames to
pass on to the external app.
Is there another way to do it? What am I missing?
Request:
The Ctrl-T action should see the space as a - directory - separator, and
not bluntly ignore it. (except if some files names contain a space)
Example
/store/index.html
/cart/index.html
/client/index.html
Command 1:
[Ctrl-T] + "in"
=> displays
index.html - store
index.html - cart
index.html - client
Command 2:
[Ctrl-T] + "in cl"
=> SHOULD filter and display
index.html - client
Alain
Hi, I'm a very new user of TextMate and it seems to be just what I have
been looking for.
However, I do have a couple of questions that I haven't managed to
resolve from the documentation, Wiki, mail list, etc.
1. Is there a way to highlight (or move the cursor to) a matching
parenthesis, bracket, quote mark, etc?
2. Also, could some kind person step me through the process of Change
All In selection? I seem to keep ending up with a change all in
document....
many thanks in advance
- Jonathan
Allan,
Any reason there's no "Page Setup" link in the File Menu? I want to
print out this document, but I want it landscape so the code is all
on 1 line instead of wrapper..
Anyone have another solution? I opened the file in bbedit for now to
print it.
Eric Coleman
home: 412 399 1024
cell: 412 779 5176
I tried the toggle between single and multline block with the following block:
domains.each do |d|
f[1].sub!(/^#{d[0]}$/, d[1])
end
It converted it into a single line block just fine, but when I toggled
it back to multiline I got this:
domains.each do |d|
f[1].sub!(/^#{d[0]
end$/, d[1]) }
Haven't yet examined the bundle regex but figured I'd post it in case
someone wanted to know.
Thanks,
Carl
I'm trying to maximize my use of textmate. One of the first things
I'm doing is looking through the ruby bundle to see what snippets I
can use. I first noticed the hash key/val snippet, which starts with
a colon.
The first thing it does is highlight the key so that I can type in a new key.
The next thing it does is highlight the sample string so that I can
type in something different. However, I'm having trouble typing
something in at this point. If I want to edit the string inside, is
there a key I can type that will put the caret inside the quotes? If
want to edit the string contents, I have to move my cursor over then
back. If I start typing, it erases the quotes. If I type quotes, it
surrounds the quotes in another set of quotes. Is this behavior there
because the snippet writer assumed I would not always want to put
strings in the hash buckets? This is understandable, but as a
shortcut for creating symbol/string combinations it is actually quite
tedious.
I figured maybe I was missing some secret keyboard shortcut that would
put me inside a fresh set of empty quotes instead of the sample that
is highlighted.
Thanks,
Carl
I'm using the run script command in the ruby bundle. Is there a way
that I can tell it what to pass as the command line parameters? It
seems to be passing in the filename of the script to itself.
Thanks,
Carl
What's the best way you've found to open some remote folders/files in TextMate?
* the files are kept remotely on a Linux box
* there is SSH (and presumably SFTP) access; I'm not sure if there's
Samba access enabled
* I want to be able to use the built in Subversion tools
* I absolutely want to use the various "project" features of TextMate
that I'd get if I open a folder with TextMate
I briefly tried using Cyberduck, but that would only let me open
individual files (rather than whole folders).
Any suggestions?
-d
Has anyone experienced this. Im running Textmate 1.5 (v906) with rev
2643 checkout of bundles. Tidy used to work fine but I now get:
-e:5: undefined method `match' for #<String:0xc5dd0> (NameError)
when I use it. Anyone got any ideas?
TIA
Stephen
> I put together and polished some commands Allan made in order to get
> the TextMate Documentation under way. As I worked on a documentation
> project at the same time, I used his scripts, bundled them and
> adapted them a little to my needs. If you are curious as to what
> happens behind the scenes… Here it goes.
Great work!! +5 :D
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi all,
Is there a way to select some text in TextMate with the mouse, then
drag it to another application? What I'm trying to do is grab some
text out of TextMate and create a note in Yojimbo by dragging it to a
folder in Yojimbo's Drop Dock. I'm trying not to copy/switch app/
create note/paste.
Is there any way of doing this? I hope I'm not missing something
obvious.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
Good Morning :)
I put together and polished some commands Allan made in order to get
the TextMate Documentation under way. As I worked on a documentation
project at the same time, I used his scripts, bundled them and
adapted them a little to my needs. If you are curious as to what
happens behind the scenes… Here it goes.
This bundle is for compiling a Documentation project made of several
Markdown files to HTML. It generates a TOC, a print version with all
chapters on one page and HTML files for each chapter. You can use
references to easily link between your pages.
I appended the bundle “Markdown2Book” plus, as an example how to use
it, the first three chapters of the TextMate manual.
Have fun,
Soryu.
PS: For quick reference the Help file from the bundle (also available
from the bundle itself via the “Readme” command):
# Setup
You will need a TextMate Project (a Scratch Project will do) to make
this work.
## Structure
The following files & folders are needed:
* `pages`
This is where all your markdown files go. You need to make a new
file for each chapter. It should have one first level heading which
will be used for the name of the chapter (in the Table of Contents,
for the Navigational Links & in the HTML title).
The files in the `pages` directory are converted to HTML (using
Markdown and SmartyPants) with the _Generate_ Command. They have to
be in the right order, so they have to be named beginning with
numbers followed by a space or an underscore (as seen in the included
example). This prefix will be stripped by the Generate Script.
* `html`
The generated files will go here.
* `index.html`: Table of Contents from which you can navigate to
all chapter.
* `all_pages.html`: A single files with all chapters. This is
mainly for printing and it uses the `print.css` Stylesheet.
* `*.html`: Every chapter has it's own file.
Also this folder holds two links to the css and images folder.
When "deploying" your compiled book, just replace these by the actual
folders.
* `templates`
This folder contains three html templates. Adapt them to your
needs.
* `all.rhtml`: template for the `all_pages.html` file which
contains all your chapters.
* `chapter.html`: template for each chapter
* `toc.html`: template for the `index.html` file containing the
Table of Contents
* `css`
This folder contains the stylesheets (`stylesheet.css` and
`print.css`). Adapt those as you like. The default style resembles
the [TextMate Manual](http://macromates.com/textmate/manual/).
* `images`
This folder should hold all your images. When the book is
generated `height` and `width` HTML attributes are added to the
images. The source path could be changed, too, to make it absolute.
## References
You can use reference style links (`[link description][link id]`) in
your text. There is a command _Update References_ that will collect
them from all `.markdown` files in the `pages` folder and write them
to a file `markdown.references` in the project root. It notifies you
of missing or duplicate entries via a Tooltip. You can then edit this
file and insert the link targets within your text. The _Generate_
Script will add `id` attributes to your headings, so you can
reference them directly. Is converts some characters (`- \/_`) to
underscores and strips non-alphanumeric characters afterwards.
I wrote a command _Show References_ that brings up a dialog with all
the references from the `markdown.references` file and inserts a
reference snippet.
## Generation process
The _Generate_ Command is a Ruby Script, which does some
transformation, constructs the Table of Contents and runs all your
Markdown files through [Markdown](http://daringfireball.net/projects/
markdown/), [SmartyPants](http://daringfireball.net/projects/
smartypants/) (for good Typography) and the Image-Script.
<hr />
> Credits to Allan for writing the initial version of all this. I,
Soryu, bundled it up in a TextMate bundle and added/polished some stuff.
Hi guys, i've been a textmate user since i developed a shopping cart
system for a non profit website that bought me a license because i
refused money. I absolutely love textmate.
Just about an hour ago though, i made a little change in a database
class i use on my own website, only edited one file and suddenly
strange things happen on a couple of pages where the class is used
(front page and news page) textmate remembers where i've put the
caret in a file, but now it shows that info on my website (without
being able to find the text in there anywhere)
I work on the site over an AFP connection, i've tried everything i
could think of to get rid of it to no avail. anyone have any idea
what's going on and/or how to get rid of that one line of awkward text?
the site is on http://www.theredhead.nl, the line of text that's
bothering me is:
&7{"com.macromates.caret" = "{column = 0; line = 0; }"; }
hope someone can help me here.
Kind regards,
Kris
Thanks for the tip! Always a pleasure to avoid applescript...
I actually tried that before and couldn't get it to work. The problem seems
to be that saving from the menubar (or from the keyboard shortcut) is not
recorded during the macro. Do macros only record automations (snippets,
commands, etc.) or do I have something setup wrong? I couldn't find this
documented anywhere.
I ended up getting around this by defining ANOTHER command that saves the
current file but then does nothing, then recording a macro where I execute
both actions. Seems to work great, except it doesn't seem to be saving new
files, so I have to just save it twice the first time. Not a problem for
me, personally.
Oh course, it's ugly to have two commands and a macro sitting around in a
bundle, when there really should be only one. Anyone else think it might be
useful to have a ''save after'' check box or something in the command
window?
Thanks again,
Jim
Hello,
I am new to this list, so this question may have been asked before.
Since TextMate 1.5 I keep getting a spinning beach ball for 20+
seconds so often that it makes using TextMate very cumbersome.
Are my documents too long (2000+ lines)? Are there too many files in
my projects? Am I using the wrong color scheme (iPlastic)? Is there a
problem with LaTeX (what I am using TextMate for)?
Any suggestions are appreciated.
Thx,
Wolter
Whenever I try to use the 'Convert Selection to Entities' command it
results in the following error.
env: ruby -KU: No such file or directory
I'm using TextMate 1.5 (v906) on OS 10.3.9. Typing ruby -v in the
Terminal reveals I'm running ruby 1.6.8
Thanks for any help.
Trying to make a set of Emacs-like bindings for TM, I discovered that
setMark: and others are defined at a low level in the operating system,
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSResponder_index.html
Some keys I wanted to use with these, e.g. ^q and ^h, are defined
downstream, for examples in the bundles or in
/Applications/TextMate.app/Contents/Resources/KeyBindings.dict. I
got rid of all those bindings, I think, but I still am unable to use
the Mark commands in TM. I am able to use them in Mail: set a mark,
move, press the key bound to deleteToMark: and the block is cut, Yank
it back, etc. Am I missing some interfering bindings or does TM
somehow not respond to the xxxMark: commands?
Thanks,
Subversion Log
NoMatch
mhh, something with with the regex or svn must be wrong. this should
never happen.
last line: r525 | eric(a)whmautopilot.com |
2006-01-30 04:33:57 -0500 (Mon, 30
Jan 2006) | 1 line
please bug-report.
Assuming this should go here ;)
Eric Coleman
home: 412 399 1024
cell: 412 779 5176
I've managed to hose the binding for my keypad Enter key. It doesn't do
anything now. It could have had something to do with using the
'defaults' command, but I'm not sure. Any suggestions? I would even
consider a return to all default keybindings.
ADVthanksANCE!
Regards,
JJ
---
Help everyone. If you can't do that, then at least be nice.