Hi everyone,
I hope I won't trigger any flame war here but I would like very to have a
scratchpad as has appeared in BBedit 9.0.
I find myself using TextMate to reformat "raw data files" and I often have a
blank file open somewhere where I paste bunch of texts, do something with it
and paste it back in the original file.
For me at least, it would be very useful.
Thanks in advance.
--
View this message in context: http://www.nabble.com/-FeatReq--Scratchpad-tp19272741p19272741.html
Sent from the textmate users mailing list archive at Nabble.com.
I'm new to TextMate. I have some questions I was hoping you guys could help me with.
1. Let's say I wanted to create a Language Grammar (.bah) that inserts 'bah' when I type b + tab. However, this snippet should only work in .bah files.
So my new language looks like this:
{ scopeName = 'text.bah';
fileTypes = ( bah );
...
When I create a new snippet, and give it a scope of 'text', it works in .bah files; however, when I give it a scope of text.bah, it doesn't.
2. When I go to Bundles -> RoR -> Install Plugin I get this error:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby on Rails.tmbundle/Support/bin/list_plugins.rb:27:in `join': can't convert nil into String (TypeError) from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby on Rails.tmbundle/Support/bin/list_plugins.rb:27
3. I supposedly installed 'Edit in TextMate' successfully, it gives me this: Success! /Applications/TextMate.app/Contents/Resources/Edit in TextMate copied to /Library/InputManagers
But, whenever I go to Safari or TextMate 'Edit in TextMate' isn't under the edit menu. I've tried restarting and everything. Still nothing.
4. Okay, last one. I downloaded Peepcode's screencast on TM, and when I tried to emulate the part where he created a scaffold-like create method using 'defcreate + tab', it didn't work. I put the caret in a Controller, and changed the language to Ruby on Rails.
The question is the same for all: how do I make it work?
Thank you!
_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
Hi,
I've read 3 times the PHP Bundle doc but I can't use completion from
files.
For instance, if I type "include" + ALT + ESC, I've a "No matches
found". However, I've a lot of *.php, *.class.php in my project.
I've tried to define the PHP_INCLUDE_PATH var at project level with :
".:/usr/local/myphplib/" in order to use completion from myphplib...
It doesn't work.
I'm using OSX 10.5.4. It's a known issue or it's an error?
--
Nicolas CHARLOT
Hans, et al
I'm one of the core Objective-J / Cappuccino developers. I'm glad you
like it, and thanks for helping out.
We actually use $OBJJ_HOME in the Objective-J tools already. If you
install the Tools package it currently puts all the tools and
libraries in /usr/local/share/objj. This is the default used in case
$OBJJ_HOME isn't set. If you install the tools elsewhere, you can set
your $OBJJ_HOME to that location. We just didn't want to have to set
too many environment variables ($STEAM_BUILD is already required, it's
where frameworks, etc are built)
Anyway, I like the idea. We probably will be putting a copy of
Frameworks at $OBJJ_HOME/Frameworks and the template applications
somewhere in $OBJJ_HOME.
We're actually planning on adding some commands for generating
standard projects to the "steam" tool (an Objective-J specific build
tool, similar to xcodebuild). This would be similar to the "rails"
command with Ruby on Rails. Then the TM commands you're talking about
would simply call steam with whatever the syntax for a new app is.
Any thoughts?
Also, feel free to join us in #cappuccino on irc.freenode.net
-Tom
Hi,
I've just discovered Objective-J as a very very nice and powerful
programming environment.
Obj-J runs perfectly in TM's HTMLOutput (Tiger and Leopard) thus I
try to solve some issues with it.
Then I downloaded the "JavaScript Objective-J" bundle. I added a
first naïve "Run" command and a first help system for it.
But I want to discuss some details in beforehand.
I could imagine that Obj-J will be used by TM coders more and more in
the near future. A 'normal' Obj-J application always ships with 2MB
of Frameworks code. To prevent this I think it would be nice to do
the following.
If someone wants to use Obj-J apps inside of TM s/he should download
the starter kit or tools from
http://cappuccino.org/download/
and copy this folder to a proper destination (maybe also rename it).
Then s/he only have to set a shell variable OBJJ_HOME in '~/.profile'
like e.g.
export OBJJ_HOME="$HOME/Library/Objective-J"
Then my help system would work and a new app could have instead the
entire subfolder 'Frameworks' only a symbolic link like:
ln -s "$OBJJ_HOME/Frameworks" Frameworks
Then one could write commands:
New Obj-J Application
New Obj-J Application (embedded Frameworks)
to generate an app template with index.html, main.j, Frameworks
folder etc. with or without embedded Frameworks.
Are there any comments?
Should I upload my stuff I have to the Review trunk as "JavaScript
Objective-J"?
Is there someone who is using it yet?
Regards,
--Hans
Hans,
Downloaded the scratchpad bundle as your movie is very intriguing. I
get the following error on both my desktop and laptop:
/tmp/temp_textmate.OerJwl:5:in `require': no such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
htmloutput (LoadError) from /tmp/temp_textmate.OerJwl:5
Neither installation has a tm directory (let alone htmloutput file) in
the application (nor the user Library/Application Support/TextMate)
path.
I have not set my TM_SUPPORT_PATH environment. Is there something I am
missing to configure? I've never come across this issue.
Cheers,
Brian
I am subscribed to the digest, so I didn't see the thread about this
issue until after my posting. Sorry for the waste of bandwidth.
> Hans,
>
> Downloaded the scratchpad bundle as your movie is very intriguing. I
> get the following error on both my desktop and laptop:
> [snip]
>
Hi,
Does TextMate have a keyboard shortcut that acts_as Vim's "^" key?
i.e: it puts the cursor in front of the first character of a line that
is not a space or a tab.
Hi,
I have another problem with snippets.
I have defined the snippet
^{$1}$0
for inserting LaTeX superscripts. The snippet is bounded to the ^ key.
However, with some keyboard (French and Italian and possibly more), ^
is an active key to insert accented letter. When the snippet is used
with such keyboards after typing ^ one correctly have ^{} with the
caret inside the curly brackets, but when one types, for example 2,
the result is ^{^{}}.
Any way to prevent this (beside changing the trigger for the snippet)/
All the best
Guido
--
Dr Guido Governatori
http://www.governatori.nethttp://www.governatori.net/TextMatehttp://www.defeasible.org
Hi,
I wonder how you guys keep your TextMate synced with among multiple
Macs.
I noticed that BBEdit 9 added mobileme support.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi i just updated the Support folder and the Python and Perl bundle.
Now every time I do "run script" the following error is displayed with
the expected output:
"/Library/Application Support/TextMate/Support/lib/tm/process.rb:123:
warning: Insecure world writable dir /Library in PATH, mode 040777"
Hi,
1) I would like to create a snippet like (actually a part of a snippet)
${1:[${2:text}]}
So when I insert it on the first tab I have
[text]
with the option of deleting it typing <delete> and then on the second
tab to modify the actual placeholder. The problem is when I replace
the square brackets [] with curly brackets {}. I have tried a few
options with mirror and conditional insertions but to no avail. Any
suggestions?
2) I would like to have a snippet for LaTeX superscript (and
subscript) such that curly brackets are included when the content is
at least two characters and no brackets when I have only one
character, that is "^{abc}" and "^a".
So far I have the following solution
^${1/(.{2,})|./(?1:{)/}$1${1/(.{2,})|./(?1:})/}$0
but there is a few problems. When I have nested superscript (or
subscripts) if the nested supscript is inserted as second character,
then the caret is not at the right place. So if I type
^a^
I get
^{a|^}
where | indicates the position of the caret. The second problem is
that if the first command triggers a snippet of a command, the snippet
no longer work.
Any suggestions?
Regards,
Guido
--
Dr Guido Governatori
http://www.governatori.nethttp://www.governatori.net/TextMate
Hi,
While I am developping a Rails app, I would like to be able to hit the
ctrl+shift+M key to open the Mercurial menu, but instead, it creates a
Rails migration file. How can I change the keyboard shortcut so that
it becomes ctrl+shift+A which is the one dedicated for subversion that
I don't use?
I just installed Ruby 1.9 but every time I try to run a script in Textmate I
get the following:
Users/ron/Library/Application Support/TextMate/Support/lib/scriptmate.rb:10:
warning: variable $KCODE is no longer effective; ignored
/Users/ron/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:11:in `require': no such file to
load -- jcode (LoadError) from /Users/ron/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:11:in `' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:1:in
`require' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:1:in
`'
HELP!!!!
--
ron.green(a)gmail.com
Hi
I have been messing around with the trial version of textMate as I
finally got the time
to do so. It is of course awesome!
I have now broken every single path, snippet, template, bundle.. you
name it.
This is OK and totally expected in a test drive for a piece of
software that gives one this much
power.
How can I completely re-install textMate so that it looks
precisely as when I started it up this morning?
Im on 10.5.4 OS X leopard, running/breaking textMate 1.5.7(1436)
I tried removing the files in user/library/preferences and deleting
what ever I could find on
my system named textMate and emptied out my trash.
Still when installing from the image I get my "broken" version back.
Regards Ricki
Hello,
I've been using TM for the last couple of years but, as you all know,
a new major release is quite far into the future, and since those
issues that I have with TM won't go addressed for the coming few
years, I've decided to move back to Emacs. I had a list of things I
liked in TM, which Emacs was lacking, but I have found solutions for
each one of them, apart from one, last item. I know that this is not
an Emacs forum, but I expect quite a few here has moved from Emacs to
TM, as I did myself a few years ago, and thought it could be
interesting to hear your opinion on the issue (esp. since you will
have experience with both editors and would be able to understand the
issue better then the pure Emacs folk over at the Emacs forums).
My last remaining item is the project drawer; I do not use it much as
my projects usually are single file projects, but I think it is very
nice to have and I esp. like the concept that I can have files from
different directory trees in one project. I could not find a similar
concept in Emacs; neither Speedbar nor ECB since to be able to solve
my "problem", as they try to solve other, unrelated, problems. I
could use a directory structure but then I have to move some files
from other location into my main directory, I would like to avoid that.
The project I think of is my website to be specific, I have all files
in a directory structure under ~/Documents, but I have a number of
Perl scripts for maintenance located in ~/Applications, and some
additional support files located elsewhere, and I don't quite like
the concept of moving all those files (about 10 all in all I think)
to ~/Documents, even as symlinks.
Any nice, preferable light-weight, solution to this?
TIA.
/Jonas
Hi there,
I have the following problem. When I try to give the Scope as input to a command, Textmate not only passes the present scope, but the whole document to the script (for any document type that I tried, e.g. Latex, Perl and C). According to the documentation, only the present scope should be passed to the script, delimited by the first and next position of the curser, where the present scope would change.
Perhaps I am getting something completely wrong, I would appreciate any help.
Best, Chrisotph
--
They said Windows95 or better, so I took Linux...
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
Hi
Using the svn-bundle I would like to filter the files presented for
committing. I do not want files with extension pyc to be shown.
How can I do that?
Regards, Katja
I do a lot of text manipulation with Textmate and find the command
"Filter Through Command..." amazingly useful. I love all of the
output possibilities, but I wanted to put in my vote to add one more
output option: "Copy to clipboard".
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
Hi all there (3)
> I am suffering an uncomfortable problem with TM scripts that depend
> on Ruby and makes them unusable. Using for example Cmd-B in LaTeX
> (toggle_style.rb -style=textbf), TM inserts instead:
>
>
> no such file to load -- ubygems (LoadError)
>
> Sometimes I fixed the problem renaming ~/Library/Application\
> Support/TextMate. Sometimes not.
>
> I use an env
>
> RUBYOPT=rubygems
>
my apologizes for the reps.
I have found a solution to the annoying ubygems LoadError:
To install gems both in the
/usr/bin/ruby
and
/opt/local/bin/ruby
making both
~/Downloads/rubygems-1.2.0 % sudo ruby setup.rb
and
~/Downloads/rubygems-1.2.0 % sudo /opt/local/bin/ruby setup.rb
Then I can keep the
export RUBYOPT="rubygems"
in the ~/.profile and let terminal ruby use this option.
- Juan F.