I'm interested how it would be possible to create an autocompletion
plugin/bundle for Textmate and ruby. I realize there is ESC, but I
would like to open a menu with say CTRL-SPACE and then see all the
possible completions based on the entered characters. Then when I
continue typing in the editor, the menu adjusts it's contents to show
only the matching entries. The user can navigate the menu and choose
an entry to be inserted in the editor. Like auto completion in
eclipse, Visual Studio or XCode.
I found this article:
http://macromates.com/blog/archives/2005/06/09/code-sense/ and wonder
what the actual state of code sense is in Textmate. Is it possible to
create a Plugin/Bundle that controls an auto completion menu?
Ruben
I am new to TextMate. I have a bunch of lines and I am trying to sort
them. I select them and use the Actions popup and choose Sort from
the menu choices under Text, the text to be sorted disappears.
I tried to run the Sort command through the Filter through command
and got the same result. Empty document.
I am sure that my newbieness is showing through but can somebody
please figure out what exactly is wrong?
Indro
I take class notes on my laptop in Markdown and organize them in a
locally-hosted blog. Last week was the first week I used TextMate
instead of BBEdit for this, and I was occassionaly getting an extra
level of indentation while typing in code blocks. For example, in one
section of my notes I typed this:
| #include<vector>
|
| vector<int> v; // vector of zero elements
| vector<int> v(250); // vector of 250 elements, initialized to zero
| vector<time24> t(10); // 10 elements, all set to 00:00
Each line is indented by four spaces (the pipe characters are meant to
represent the left margin), which Markdown will wrap in <pre> and
<code> tags. I have TM (version 1.5 [906]) set to use soft tabs of 2
characters each.
I found that hitting the Return key after each of these lines (other
than the blank one) would put the cursor on the next line with an
indentation of 6 spaces instead of 4. This may be a red herring, but
the extra indentation seemed to occur only after lines that had an
angle-bracked pair, like <xxx>, in them. So in this excerpt
| #include<iostream>
| #include<vector>
| #include "d_random.h"
| using namespace std;
the extra indentation occurred after the first two lines, but not
after the second two.
Can anyone tell me why this is happening and what I can do to fix it?
--
Dr. Drang
Hi all,
I have come across an interesting conundrum that I wonder if anyone
else has dealt with.
(it goes without saying that I am now a tm fanatic and don't know how
I lived without it).
I am starting to work with Symforny -- a php5 framework. I have a tm
project for my sf project, but have discovered that the existence of
the ._files is interfering with the execution of the symfony command
(ie it sees ._schema..xml as "empty" and does not use the correct
schema.xml file).
I found 19.4 in the manual, and I want to know if that is my only
option -- I would rather not sacrifice metadata.
Thanks,
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
Hi -
Using TM v.1.5 (906), I selected Terminal Usage... from the Help menu. I
got a message window titled "Enhanced Terminal Usage" which explained
about the shell command "mate" and asked where to create a symlink. I
left the default location as /usr/bin and clicked then "Create Link"
button. The standard admin user authentication box pops up, I enter the
secret password. Then I get a error message box that says:
Couldn't Create Link
Creating the link "/usr/bin/mate" failed with the following reason:
Operation not permitted
Hmmm. I check to see if mate is in /bin. Nope. Okay let's check /usr/
bin. Ahh a symlink but not a valid one. The link is /Users/aurora/
Desktop/TextMate.app/Contents/Resources/mate. The correct link should
be /Users/aurora/Desktop/TextMate/TextMate.app/Contents/Resources/mate.
Which in turn is a symlink to ../SharedSupport/Support/bin/mate where it
truly is. So, I deleted the bad symlink at /usr/bin and recreated it
properly. After a rehash, where mate shows it at /usr/bin/mate. And mate
-h returns help as it should.
Conclusion: whatever process or command within Textmate that created the
original (bad) symlink in /usr/bin needs to get tweaked to add the
TextMate bundle (Textmate) into the source file name. The Textmate app
name (TextMate.app) is fine, but both are needed.
Hope this helps,
Brian Caldwell
A very minor issue, but if I use the symbol transform to place a \n
in the output for the symbol, TextMate insta-quits when I load up a
file using that language.
The specific example that crashes for me:
{ showInSymbolList = 1;
symbolTransformation = '
s/([a-zA-Z_.:]+)[.:]([a-zA-Z_]\w*)/$1\n $2/g
';
}
Like I say, very, very minor - I would have been surprised if the
symbol had actually displayed on multiple lines.
Hello,
I've committed a working version of my Mercurial bundle to the Svn
repository. There may be some rough edges (like troubles if hg is not in
your PATH) but I'll fix these soon.
Thanks to the Darcs/SVN bundles authors for inspiration. :)
Enjoy!
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005
Hi,
I frequently need to do a complete compilation, i.e. latex, bibtex,
latex, latex to update the references in the document - Using
existing bundles, latex+view, bibdesk, latex+view, latex+view I need
to click away upcoming error messages and Texniscope several times
throughout such a procedure. Has anyone a more elegant solution ? I
have to admit that my scripting abilities are not sufficient to make
my own bundle that could do that.
Christof
Hello,
I just have one suggestion for your otherwise beautiful text editing. Can
you please make code folding to display also an end tag of the block. Now
when the code is folded I can see "if {..." but the end tag is not visible.
I think it should display even the terminating "}", like "if {...}" or
"<hr>...</hr>".
Not seeing the terminating tag makes the document with folded code simply
unreadable, especially if the document is big and there is lots of code
folded. I am always searching for where the end of my block was gone.
Maybe it is only me, but I found it very confusing. Can you please fix/adapt
it? And if it's only me, it would be nice to have preferences for it, only
for me :)
Thanks,
Daniel
I really like the TODO bundle... however, something I think might be
useful.
I want to export the todo list to a file called "TODO" in the root
directory of the project. How can I accomplish this?
Eric Coleman