Hi guys and gals,
I was wondering if anyone has a recommendation for a good command line
ftp client - ideally I want something that I can use much like rsync
but that works over ftp. ie. I want to upload entire directory
trees. (and I don't think I can do this with the default ftp client,
but I'd love to be shown wrong)
Thanks.,
Hadley
Hi all,
I'm attempting to write a command which uses the scope for input as in the
"Scope based customization" screencast, but I'm running into a strange
issue. Even though the scope does appear to be correctly managing when my
command is allowed to run the input to my command is always the whole
document (unless I have a selection in the correct scope, in which case I
get the correct selection).
I'm running the 30 day trial of Textmate: Version 1.5.5 (1368)
Any advice about what I'm doing wrong would be greatly appreciated!
Thanks!
:habib
Hello,
I am writing a bundle for Spice-like circuit simulator input files.
For these text files, one of the rules is to have the first line as a
comment, no matter what is on the line. I was wondering how this
could be incorporated into the language grammar to set the
appropriate scope for the first line.
Pavan
Hi everyone,
<not very interesting context>
I'm currently working with a software called OpenMusic. It's based on
an extension of Lisp and make massive use of CLOS.
I thus often have to define new classes. I don't know if it's CLOS or
OpenMusic related, but class slots definition are quite ineffective.
Typically, defining a class in OM would look like
(defclass* name (superclasses)
((<slot name> :accessor <slot name> :initarg :<slot name> :initform
<default value> :type <type of the slot>
:documentation "<obscure string>"))
)
The boring part, that is slot definition, could of course benefit a
lot of snippets. Typically, a <enter> short cut (or is it <return> ?
Well, the keypad one.), as in LaTeX itemize environment, would be
perfect.
So I'd like to define and extension of the Lisp language to match my
need. I already had a slight problem and expect more to come (like
when I started to write one for the GP language).
So here is the first one that I met. As you can see above, class are
usually defined by defclass* instead of defclass.
I didn't find in the documentation how to match the * character.
Escaping the * with \, as in
{ name = 'meta.class.lisp.openmusic';
match = '(\b(defclass|defclass\*)\b)(\s+)((\w|\-|\!|\?)*)';
captures = {
2 = { name = 'storage.type.class.lisp.openmusic'; };
4 = { name = 'entity.name.class.lisp.openmusic'; };
# Of course, there are still plenty of things missing.
};
apparently won't work. What did I wrote wrong in that part ? It's
just the meta.function.lisp rewritten and it does what expected when
used with "defclass".
Thanks for your help,
Édouard
PS : I know I could perfectly avoid such troubles by creating a tab
triggered snippet, but that's just a nice occasion to get in TM
languages definition a bit further.
I've mapped my Caps Lock key to act as the Ctrl key (in Keyboard &
Mouse preferences > Modifier Keys...). Problem is, not all TextMate
combos work with this.
[Hear me now, believe me later. I had an old Sun keyboard that was
laid out this way, and it's the only way to fly. Especially on the
MacBook Pro where the normal Ctrl key is quite inconvenient to hit.]
For example: Paste From History Ctrl-Option-Command-V. Works fine
with normal Ctrl key, but does not work with Caps Lock used as Ctrl.
Another example: Select Bundle Item... Ctrl-Command-T works fine
both ways, however.
Perhaps there's something deep in TextMate's key processing code
that's only looking directly at the Ctrl key, and not seeing the
system-remapped Caps Lock key?
Thanks for your attention!
Jon
I find my self wrapping html code very frequently.
It is a pain but I do not know how to work with regex,
Basically I need to use echo "" to wrap the html code and escape all of the
other " in it.
can someone help me?
Please.
-Thansk
-L
--
View this message in context: http://www.nabble.com/PHP-echo-wrap-tf3847294.html#a10896573
Sent from the textmate users mailing list archive at Nabble.com.
Hello!
I have a got a small problem: I want Textmate to compile my LaTeX
document via dvi - ps - pdf and _not_ with pdflatex. I can't find any
easy way to configure it like that I don't want to use the terminal
every time.
Do you know any way to configure this?
Yours,
Mark
One of the options when creating a command is to use a tab trigger but what
is the logic behind when selecting text and then allowing a tab trigger to
be fired?
Does anyone else have (a fix to) the following problem with the Haskell
bundle:
When making do statements, unless I do the brackets+semicolons thing to tell
ghc to ignore formatting, I get a
"The last statement in a 'do' construct must be an expression"
even though I have everything lined up correctly.
Thanks
I meant to mention this a while back. I stuck a utility in the
MoinMoin bundle for grabbing a browser cookie. The usage is simple:
cookie <url> <cookie_name>
It tries to find the named cookie which is the best match for the
url. It first tries to grab the cookie from the WebKit cookie file,
then Camino's, then Mozilla's. The cookie is emitted to stdout.
Might this be useful in the Support folder for other bundles to make
use of? (I was actually surprised to not find something similar
already there.)
j.
Hi all!
I have a problem with invisible characters here. E.g. writing perl
code, I use || quite often. I produce this character on my Swiss
German keyboard using Option-7. Normally, I put a space after || to
increase readability. There it happens that I keep the option key
pressed while pressing the space key - and this apparently produces
some invisible character. In any case, perl complains:
Unrecognized character \xC2 at /Users/abonhote/test2.pl line 5.
I have turned on "show invisibles", but the extra character doesn't
show up. How can I avoid typing these characters?
Thanks in advance!
André
helo i would like to use
----------
PHP Project Functions - "Dion Almaer"
Goes through the project directory and groks out all functions. If you
select some text it will narrow it to that.
Before running command: Nothing
Command(s): grep -E -n -r --include=\*.php --exclude=.svn "function
${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}\w+\s*\("
${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}
Standard input: None
Standard output: Show in separate window
Pattern: ^(.+):(\d+):(.*)$
Format String: $1, line $2: $3
File Register: 1
Line: 2
------------
finded there :
<http://macromates.com/wiki/Main/SearchWiki?pagename=Main%2FSearchWiki&q=php…>
but it didn't work
can you help me ?
> I too am a huge (unfortunate) fan of working on remote files...
> This topic has been discussed at great length. Since it is
> apparent none
> of the existing solutions work nicely and as elegantly as working
> on local
> code we all have come up with less than ideal solutions for solving
> this
> problem. I for example use RBrowser because I like that - but
> again it is
> less than perfect. So.. We need a better solution. Writing down the
> short list of requirements
> - Tie to Textmate - very closely
> - Allow me to easily create a project out of remote files
> - Allow me to add remote files
> - Allow me to search those remote files
> - Save the file back
> - Connect via ssh
> - Should be able to routinely (background) poll the remote
> system
> and determine the status of the file. This should be able to be
> turned
> off or time adjusted based on user needs. I wouldn't need this per
> se.
> - Should have an integrated browser mechanism which 1) gets
> on a
> remote system (ssh) 2) allows you to traverse a remote file system
> - Might want to be able to bind a command to a save ( svn
> commit )
> feature
> - Might want to be able to bind a command to the file
> status ( p4
> fstat ) feature
>
> OK what do we need to add shorten or comment on?? Perhaps the
> cyberduck /
> rbrowser / macfuse / Olrik folks are listening. I think David
> Olrik's
> solution is a decent start but needs a bit more polishing. A better
> solution can't be far off..
>
>
> Thoughts??
At this point (unless TextMate 2.0 addresses the issue ;) I think
MacFuse pretty much solves everything, so the single one change that
I would like to see in textmate is a mechanism to stop and/or set
intervals on the project directory scanning routine. I have no idea
what that would entail or if it's even feasible, so forgive me Allan
if what I'm saying is ludicrous... ;) That single change would make
MacFuse usable on projects that have more than 5 files... and solve
everything... no?
Me, again.
OK, so the GHCi fix was due to Alan's patch of the haskell bundle, not to my
trashing my local bundle repository.
I've been playing with the 3rd party bundle Plain Text Wiki, but it doesn't
seem to play nice with the fact that I modify some of the standard bundles
(LaTeX templates and commands primarily). I've installed it in the standard
place now, but then it will get wiped out upon update, right?
So, I tried the Experimental Wiki bundle: easy to do, perform the one
command available. Apparently it should open a wiki based in a subdirectory
of the bundle. I get the following error message, looks like a typo in the
file linkify.rb
(Errno::EPIPE)
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Experimental
Wiki.tmbundle/Support/bin/linkify.rb:39:in `<<'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Experimental
Wiki.tmbundle/Support/bin/linkify.rb:39
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Experimental
Wiki.tmbundle/Support/bin/linkify.rb:38:in `open'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Experimental
Wiki.tmbundle/Support/bin/linkify.rb:38
sh: line 1: /Users/ds08/Library/Application
Support/TextMate/Support/bin/Markdown.pl: No such file or directory
/tmp/tm_wiki/intro.html
I went into linkify.rb and noticed that the path is based on a HOME
directory, so I altered that path name to be based on TM_SUPPORT_PATH. Now
it works. And its cool (a bit clunky but useful).
It would be good to have the patch committed to the repository.
Best wishes
David
OK I know this is a lame feature that probably only I would use, but
here are my thoughts & maybe someone has a suggestion or maybe it
could make its way into TextMate 9.1 or something...
I know there are keyboard shortcuts to focus on the drawer and to
show the drawer, but I'd love a shortcut to toggle the size of the
drawer. By that I mean:
Initial State: Project window with drawer of n px width. (TM
"remembers" and saves this value)
Closed State: Drawer is hidden, but project window resizes its width
to fill the space that was once occupied by the drawer.
Expanded state: project drawer increases its width until all items in
the drawer are displayed without any ellipsis (...) characters. The
window resizes (reduces) its width to make room for the drawer.
In all of the modes the sum of window width + drawer width would
remain equal. The reason I bring it up is that I almost always work
with TM zoomed to fill the screen. Toggling the drawer on/off does
not resize the window so it doesn't improve the size of the project
window. Also, if I have several nested folders, it becomes difficult
to read file names when the drawer is kept narrow. I'm constantly
dragging folders from the drawer to the dock icon to open temporary
sub-projects or revealing files in the finder just to view the files
full names.
I don't expect that this is something that enough people need to
warrant major development time, but I thought I'd just voice my
opinion. Maybe TM 2.0 will open up something that a plugin can use
to handle this functionality?
If anyone sees some obvious currently available solution I'm
overlooking please let me know.
- Cliff
Hey all,
I'm currently working on the beginnings of of RubyCocoa Bundle, and
trying to do something similar to the "Build and Run" script from the
XCode Bundle:
#!/bin/sh
echo "<html><body>"
cd $TM_PROJECT_DIRECTORY && rake
MyApp.app/Contents/MacOS/MyApp
echo "</body></html>"
I've gotten to the point where I can run MyApp.app/Contents/MacOS/
MyApp and get the output, but only after the program has terminated.
I know there's some way to get my traces to output while I'm running
the program, but not sure how. Any pointers? Thanks,
Ben
I'd like to do a series of things automatically
each time I save a modified file. E.g. change
the name of the file adding a timestamp to it,
etc. What is the simplest way? Probably to
create a command which does all the stuff, and
assign the shortcut CMD-S to it. I do not
like this idea, emacs' hook mechanism sounds
the right way to achieve this, but I could live with it.
Anyway: how can I say TextMate to save the
open (modified) file? I mean, from inside my
command?
Thanks,
Piero
Hi,
When writing an article, it happens that some symbols appear very
very often, so instead of type-writing them all every time, I'm used
to create snippets or commands o make things faster and easier.
But such snippets are not to be kept in a safe place for a later
usage. So I was wondering if there wasn't a way to create project
snippets, not stored in a particular bundle, but (e.g.) in the
project file, so every time a projec is open, the custom commands are
available.
It would be like the Scope Selector, but concerning projects, sort of.
Xavier Cambar
PS: On the T-shirts debate, what about "Happy Mating"?
Is there a way to make it so that the sidebar for a project stays the
same size between invocations of TM?
Daniel Morrigan
"He who says it cannot be done is usually interrupting the one doing
it." - Chinese Proverb
Hi,
I'm using TextMate for Ruby and Rails development. There is a feature/
behaviour that worked correctly, back in early days, but it doesn't
work now, since long. Here it goes:
I have a changelog.txt file in my Rails project, that describes
changes made in svn-commits. This file should be viewed as "Release
Notes" file-type (then it's properly colored etc.). But it is in
conflict with the Subversion-bundle (or Diff-bundle?), because
temporaty diff-files generated by TextMate (when using Subversion-
bundle) have now a .txt extension too, not .diff, as it used to have.
Now, when I'm manually switching the language from the popup-menu
(the one located at the bottom of the diff window) then next time I'm
viewing a changelog.txt, it's treated as "Plain Text", not as
"Release Notes" type of document. When I'm manually switching it to
the "Release Notes" then next time a diff is generated, it's
displayed as "Plain Text", not as "Diff".
I tried to look into the bundles, but I cannot find anything helpful.
Maybe the diffs should have a .diff file--extension? Maybe I have
something messed-up in my bundle-config?
Described behaviour is consistent on 2 machines (both PowerPC and
Intel).
Any ideas? TIA.
--
Rafał Komorowski
komor(a)mac.com
GG: 4083718
<http://homepage.mac.com/komor/iblog/>
Hi there,
I was just wondering if there was a way to know if a key combination
was assigned to a particular action.
Why: I would like to avoid as much as possible the use of the pop-up
showing the corresponding actions, and so, assign a unique action per
shortcut per scope.
Even if there is the "Show Keyboard Shortcuts" command, it could be
more useful to type in the shortcut you want to test, and you get as
the result a list of actions assigned to that shortcut.
Thanks in advance,
Xavier Cambar
I'm getting crazy,
have a command with a simple "cat file"
when output set to "Replace Document"
I get nothing but an empty file,
works fine when output set to "Show as HTML"
Thank you!
-will
"Find in Project" is useful, but can be slow. I guess I've gotten
spoiled by Spotlight, Google Desktop, etc.
My request is that TextMate keep the contents of the project indexed
for speed. Also, results should come up as a I type. See, for example,
WingIDE which manages to do this.
-Chuck
I (and many others) use Mate with just typing
[term] mate /Dev/projectname
That gives you a TM window with the "project drawer".
But this isn't really a project since we have no .tmproj file.
Anyway, two questions
#1
Is there a $TM_... path that can tell me the top-level directory for
the open window?
Reason I'm asking is that some bundles, (just tried the AS3 one)
depends on knowing the "root folder". They should just assume that we
wanna use the currently opened dir (if one).
#2
Any alternative way of adding "tm shell variables" to a directory.
Like the ones in project.tmproj -> shellVariables -> ..
best
/david
Hi, t-shirt lovers:
I love Monokai theme personally, but the theme has fewer elements
resulting in fewer colors. I know I can add and customize it easily,
but I'm not talented with picking colors and designing.
Can anybody have her or his own customized themes? Can we share yours?
Regards.
Takaaki
--
Takaaki Kato
http://samuraicoder.net