lo there all,
i am brand new to textmate. I love it !
My only issue is that when i am editing a project on a remote
computer, i get a lot of spinning beach ball action while something is
going on. From what i have found on google, it is checking to see if
any files have changed.
Now, i saw mention of a remote project plugin, but i could not find a
way to download it.
Has someone found a good solution for this ? I am working on a ruby on
rails project on a remote server.
thanks all, and great editor / IDE you have here..
shawn
Hi,
Heureka!
I found a way to select something - calculated on run-time - by using
a normal macro (plus command) without TMTOOLS!!
The problem was if I have a script which outputs a text chunk or a
regexp how can we select that text/regexp in a TM window?
The approach is actually very simple. I copy the text/regexp into the
shared find pasteboard; place the caret to a proper location; and
execute 'findNext'. Thus I wrote a tiny C program which copies a
string into the shared find pasteboard. OK, then I wanted to write a
man page for that command on basis of the normal pbcopy man page, and
I figured out that pbcopy is already able to do this ;)
Fine. The only problem was that if I write a tmcommand à la:
echo -en "FINDTEXT" | pbcopy -pboard find
it doesn't work because "pbcopy -pboard find" is called from inside
of TM. If I execute that in a Terminal, switch back to TM it works.
The solution: I have to execute this in a new bash environment.
The basic tmcommand (example name "SELECTTEXT"):
RESULT=$(A SCRIPT WHICH RETURNS A TEXT OR REGEXP)
export RESULT
/bin/bash -c 'echo -en "$RESULT" | pbcopy -pboard find'
#place the caret to a proper location to be able to execute 'findNext'!
open "txmt://open/?line=$LINE&column=$COLUMN"
After executing that command the string $RESULT is in the shared find
pasteboard, and the caret is set.
Next step > the macro:
Before we can execute 'findNext' (= APPLE+G) we have to set the
parameters of the find panel, meaning whether we want to do a regexp
search or not; ignore case or not.
Thus record a macro à la:
1) open find panel, set the desired parameters, and do a dummy search
for something which is NOT in the document -e.g. look for \xFFF3; and
close it
2) execute the command "SELECTTEXT"
3) APPLE+G
That's it. The nice side-effect is that the macro changes nothing
within TM's find panel ;)
And the macro does not affect the undo buffer, it does not change the
text etc., and the selection is done instantly.
But attention:
The only tricky point : Be aware of correct escaping!!
On that basis I wrote the "Select XML/HTML balanced tags" script
which will come as soon as possible. I only have to fix some tiny
things.
Comments?
Regards,
--Hans
El 21/11/2007, a las 13:00, Robin Houston escribió:
> Shouldn't the search string be ¥([^¥]*)¥ instead of what you have?
> Yours is just looking for a single character between the Yen signs. I
> tried my regular expression, and it seems to work even when there are
> backslashes.
of course :]. Thanks Robin.
-Juan Falgueras
I created a bundle command to open a file from a repository directory, based
on the selected text. It was put in the Text bundle, with no particular
context.
Here's my current (working) command.
open "file:///path/to/repository/volume/$TM_SELECTED_TEXT.pdf"
This will open the PDF file with the selected filename. (I use open since I
want to see the PDF in Acrobat, not TextMate.)
However, now there's arbitrary (unknown) text attached to the filename, so I
want to use a wildcard in this command.
I got a suggestion to use an unquoted * as a wildcard. But if AAAA is
selected, this command:
open "file:///path/to/repository/$TM_SELECTED_TEXT"*
will open a file in Textmate named AAAA*, which is not what I want: I want
AAAA.pdf and AAAA-morestuff.pdf to open.
Any help is appreciated.
Thanks
Darryl
[I originally had this question attached as a comment to a TextMate blog
entry, where Allen Odegaard posted the * wildcard suggestion, but it didn't
work in this context.]
--
View this message in context: http://www.nabble.com/A-TextMate-command-to-open-an-arbitrary-PDF-file-tf48…
Sent from the textmate users mailing list archive at Nabble.com.
What is TextMate's equivalent to BBEdit's 'Add Line Breaks'
Example:
- TextMate Soft Wrap set to 66 characters
- How do I Hard Wrap my document at 66 columns?
Reformat Paragraph works, if I just want to reformat a few paragraphs,
but I'm hoping there is a TextMate command that can be applied to the
entire document and that won't reformat lines separated by a single
return.
Hi.
GTDAlt has acquired an odd behaviour. I don't know why - it may be
related to an install of the Safari 3 beta. Regardless, I haven't been
able to debug, and would really appreciate any help.
I choose 'Current Actions' and get my big list. I click 'none' for
contexts, to clear the board and ready to select only one or two
contexts. The checkboxes for the contexts ripple off, and the actions
disappear -- until we get half-way down, when the actions don't move.
Toggling the context checkboxes does nothing. I'm stuck with about half
my actions permanently visible.
Has anyone else experienced this behaviour? Even better, can anyone
help? Like the previous poster, I've grown very attached to GTDAlt, and
this is the core piece of functionality.
Bruno
I don't understand why Find (regexp) doesn't find the text when
using backslashes (it seems)
it works when no \ are in the searched text.
- Juan Falgueras
Allan?
Begin forwarded message:
> From: Apple Developer Bug Reporting <devbugs(a)apple.com>
> Date: November 15, 2007 12:41:40 PM PST
> To: steve(a)geeksrus.com
> Subject: Attention: Bug ID 5551893: Spaces needs hints for windows
>
> Hi Steve,
>
> This is a courtesy email regarding Bug ID# 5551893.
>
> <GMT15-Nov-2007 20:37:26GMT> Vanaja Pasumarthi:
> Engineering has provided the following feedback regarding this issue:
>
> There is an SPI hint that TextMate can use.
>
> NSWindowCollectionBehaviorMoveToActiveSpace
>
> Bug reports requiring your update will appear under ‘My Originated
> Problems’. Please review this bug report and provide the requested
> information via the Apple Bug Reporter. Once your report has been
> updated, Engineering will be alerted of the new information.
>
> <http://bugreport.apple.com>
>
> Thank you for your assistance in helping us discover and isolate
> bugs within our products.
>
> Best Regards,
>
> Vanaja Pasumarthi
> Apple Developer Connection
> Worldwide Developer Relations
> **************************************************************************
> THE INFORMATION CONTAINED IN THIS MESSAGE IS UNDER NON-DISCLOSURE
> **************************************************************************
> -------------------------------------------------------
> Bug ID #: 5551893
> Bug Title: Spaces needs hints for windows
> -------------------------------------------------------
> <GMT21-Oct-2007 18:17:34GMT> Steve Riggins:
> Summary:
> TextMate's find dialog opens on wrong space (and btw can you fix
> radar, this is twice now it has failed to submit a bug report and
> lost my work. Clipboard ftw).
>
> Steps to Reproduce:
> * Go to Space 1
> * Launch TextMate
> * Switch to space 3
> * Command-Space to open LaunchBar (or command-control-space if using
> default)
> * Open demo file
> * Command-F
>
> Expected Results:
> expected find dialog to open on current space
>
> Actual Results:
> Space switched to space 1 and then dialog opened.
>
> Notes:
> This seems to be due to TextMate hiding/showing the Find dialog in
> order to keep all of it's state (size of text fields, etc) There
> should be a API hint or NIB hint to tell spaces to show this window
> on the current space, vs. last space it was on.
>
>
>
Dear list members,
just want to introduce my approach to circumvent the sometimes
missing build-in FTP/SSH functionality of TextMate. I created a
bundle which provides commands to download and upload single files or
files inside of TextMate projects from and to remote hosts.
Read on if you are interested:
http://fuerstnet.de/ftp-ssh-bundle-textmate
I would be glad to get your feedback!
Regards,
Bernhard