Hi
I've just started using TextMate and I'm hugely impressed by it. My
text editor requirements are not very sophisticated, I use it mostly
for HTML/CSS and for processing text from time to time from databases,
or transcripts of online meetings with chat clients, that kind of
thing. I'm sure that I will be using TextMate for my simple
AppleScript writing as well now in preference to Apple's rather basic
Script Editor.
I have been using BBEdit for ages and I feel it is a very fine text
editor indeed, however TextMate is a bit of genius.
Before I used BBEdit I used the Nisus Writer word processor for text
editing in the classic Mac OS. Although a word processor Nisus Writer
was a superb text editor and, like TextMate offered many truly unique
abilities. Nisus also made a text editor called QUED/M which predated
their word processor and had similar unique abilities of their word
processor.
One of the truly great things about Nisus Writer and QUED/M was the
non-contiguous text selection and the way in which Nisus had exploited
this.
I think Nisus were the first with non-contiguous text selection but
today it is quite common-place. An obvious example is Apple's TextEdit
which will do non-contiguous text selection. If you are not familiar
with it then you can open an TextEdit document and put it in 'rich
text' mode if it is not already. Then put some text into it. Now you
can select non-contiguous words in that text using command-click. Now
that you have selected those words you can press command-B on your
keyboard and those words will turn bold.
I'm now going to describe how Nisus exploited non-contiguous text
selection and why it was so very useful.
If you imagine that you have some text which is intended for a web-
site. Within the text are various book titles and you wish to surround
these with the <em> tag. There is nothing at all about the words of
the book titles which is similar. Well with Nisus Writer you would
select the book titles non-contiguously, using command-click, then you
would get out the Find dialogue and put in the Find field:
.+
In the Replace field:
<em>&<em>
(The & matching all of the Find field)
Then you invoke 'Replace in Selection' and each piece of non-
contiguously selected text is now surrounded by <em> tags.
In Nisus Writer you would turn that operation into a macro and now you
can apply the <em> tags to any non-contiguously selected text with
great ease.
Now it gets cleverer :)
In the example above the replaced text, the book titles surrounded by
<em> is still selected after the Find/Replace has been performed. This
means that further GREP Find/Replace can by performed using 'Replace
in Selection.
With a programme like BBEdit a search for multiple items in a file
will produce a browser identifying the search results. However with
Nisus Writer a search for multiple items in a file will leave them
selected non-contiguously in the file. This enables you to perform a
further search on those non-contiguous selections with 'Replace in
Selection' again.
To give an example.
I think it is nice to have smart quotes in the displayed text in a web-
site. To do this I have to use HTML entities. The actual text I have
contains 'stupid' quotes, however I can create a Find/Replace that
will look for the 'stupid' quotes and replace them with 'smart quote'
HTML entities depending on whether they come before or after words.
The problem is that there are many 'stupid' quotes in the HTML tags
for things like class="main".
What I need to do is to find the text between the HTML tags and then
replace the 'stupid' quotes in that with the smart quote HTML entities.
To do this in BBEdit I created an AppleScript which has a loop. It
finds the first instance of 'text between HTML tags' and then replaces
'stupid' quotes with smart quote HTML tags. Then it finds the next
instance of 'text between HTML tags' and so on...
To do that required me to create quite a clunking AppleScript.
However in Nisus Writer I could do it with two simple Find/Replace
operations. Because Nisus Writer had non-contiguous selection of
course. I could find all the instances of 'text between HTML tags' and
know that this was selected. Then I could use 'Replace in Selection'
to replace all the 'stupid' quotes with smart quote HTML entities. For
Nisus Writer this was an absolutely trivial matter.
So, the moral of my story is that in a text editor with GREP Find/
Replace having non-contiguous text selection brings a massive amount
of additional text editing power.
Patrick
Is it possible to add the feature or even a plugin that makes TextMate
remember which directories I have expanded in the project drawer? I'd
like to be able to quit TextMate and be able to keep my project window
exactly as I had it the next time I launch the project.
Thanks,
Jason
Hi,
example:
if I press CTRL+SHIFT+A
I see all subversion commands:
Add to Repository
Remove From Repository
Revert
Update to Newest
----------
Commit
----------
Blame
Info
Log
View Revision...
Status
----------
Diff Revisions
...
Would it be possible to have the submenu titles instead of a line
'--------' in TM 2.0?
À la:
Add to Repository
Remove From Repository
Revert
Update to Newest
----------
Commit
----------
History and Info
Blame
Info
Log
View Revision...
Status
Diff
Diff Revisions
...
Merge
Show Available Revisions for Merging
Resolve Conflicts With FileMerge…
....
This already works for shortcuts of commands which are stored in
different bundles. And I do not know if one could add a new level in
the inline menu.
Cheers,
--Hans
Hi,
for some bundles I wrote I came across that it would be nice to have a
kind of a "init procedure" for bundles.
I'm thinking about to have a standard subfolder called "_INIT_" in a
bundle. If that subfolder exists all scripts inside of that subfolder
will be executed while installing that bundle (meaning double-click at
X.tmbundle, or "Reload Bundles", or TM starts). It should be added a
marker that indicates that the init procedure was done to avoid to
call these scripts more than once.
This init scripts should be execute inside of the bundle environment
(to e.g. interpret $TM_BUNDLE_SUPPORT correctly).
This could be helpful for instance:
- to check dependencies of libs, files, versions of executables, OS
version etc. and give an alert if something mismatches
- to set up/build/unzip bundle specific files (useful to minimize the
bundle size while downloading)
- to install a specific environment used by the bundle's commands
(e.g. for the Rdaemon, it will install Rdaemon while installing the
bundle)
- to ask the user if a file is missing to download it and to install it
I do not know if that request is specific to me. And I do not know
what kind of consequences will arise, esp. to check e.g. a text file
was changed inside of the bundle which is the source to built an index
file.
Of course, it could also be a security issue.
Furthermore if these init scripts always will execute if TM starts it
could be used to check if an update is available for the given bundle.
Are there any comments on that?
Thanks,
--Hans
Hi,
I try to use the "Edit in Textmate" function in Mail but all I get is a
blank page. If I type something and save it, it would just add that piece of
text to the mail, where the cursor is.
Is this the default behaviour? I thought Textmate usually display the whole
mail....
The "Edit in Textmate" works in other application, I'm writing this post now
through Safari in Textmate.
Thanks
Daniel
--
View this message in context: http://www.nabble.com/%22Edit-in-Textmate%22-not-working-for-Mail.app-tp180…
Sent from the textmate users mailing list archive at Nabble.com.
A annoyance with the insert todo -macro and ruby is that if the cursor is
indended when using it it places the =begin and =end tags at the current
level. The problem is that ruby only regognizes them at the start of the
line.
So this works:
if true
puts "foo"
=begin
TODO:
=end
end
But this doesn't work:
if true
puts "foo"
=begin
TODO:
=end
end
I haven't had the time to look at the insert-todo code too much so I can't
provide a patch, but the correct behaviour would be to make sure that
there is no whitespace before the comment block tags.
(IMO is rather silly of ruby that block comments can't have whitespace
before the =begin and =end tags...)
hello,i'm wondering if is any rule to select a text and drag it with the
mouse to another location. i'm asking this because it's not always working,
somoetimes it deselects few times till i succeed.
--
Cristi
www.ralcr.com
Hello,
I'm a fresh user of TextMate, and I have a little problem. By default there
is something assigned to the Alt+Shift+S keys combination. This "something"
prints a message:
cat: /tmp/TextMate-ScratchSnippet.txt: No such file or directory
The problem is that this keys combination is also a combination for the
Polish letter "Ś", so it's difficult to write regular Polish text. Is there
a way to turn this shortcut off?
Thank You for help.
ED
--
View this message in context: http://www.nabble.com/Shortcut-Alt%2BShift%2BS-conflict-tp18045393p18045393…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I would like to gather some suggestions for the following.
1) Don't want to go into that Latex thing.
2) Keep chapters in simple Text Format ( or markdown or Textile )
3) Project also contains a huge amount of reference files in txt and pdf
format
4) What's the best way to handle:
a) Index
b) footnotes
c) References
d) Appendixes etc.
Is it a good thing to keep the Book in one single file, or is it better
to use multiple files ?
Suggestions, links and resources welcome
regards, marios
Hi,
I just tried to summarize my experiences with the problem:
How to insert an UTF-8 encoded text by using an HTML output window
(via TextMate.system() and AppleScript)?
[and without beeping ;)]
AND
How to be compatible with Tiger and Leopard?
in a tiny wiki article:
http://wiki.macromates.com/HowTo/InsertUTF8TextByUsingAnHTMLwindow
I'd be appreciated if someone has any comments ;) (maybe for an easier
solution)
--Hans
Hi guys!
I bought TextMate a few days ago, but Python editing is giving me the creeps.
First, I disabled the Auto-pair characters option, but I still get the
closing parenthesis and colon when I create a function ("def"). It
ignores when I type the closing parenthesis, but it doesn't ignore the
colon.
Second, it seems TextMate get really confused when you follow PEP8: If
you use spaces instead of tabs, it doesn't do auto-indentation in the
next line. In the same issue, it seems TextMate uses tabs instead of
spaces (against the PEP8.)
Third, still in the PEP8-issues, I'm trying to find a way to make
hard-breaks when going beyond column 78. TextMate have soft-breaks,
but I'd really like to have it to automagically insert the break for
me (and add an indentation to the next line.)
Fourth, PyCheckMate doesn't understand when you do an indentation when
you do a hard-break and add the indentation (it complains about
"unexpected indent".)
I guess most of it is easily fixable messing with the Bundle, but I
still didn't grasp the whole concept of it. Any points would be really
helpful.
--
Julio Biason <julio.biason(a)gmail.com>
Twitter: http://twitter.com/juliobiason
I've swapped my Caps Lock and Control keys on my keyboard under System
Preferences (Keyboard & Mouse > Modifier Keys...), but now the
wonderful Paste from history (CTRL+OPTION+CMD+V) no longer works. Does
anybody know of a workaround?
Thanks,
Nate
Our development team has been tracking some odd behaviour with SVN commits
and updates.
We are primarily a three man team and we all commit code into our repo which
works well.
However, we've noticed that after I perform a project wide search and
replace using regex and then commit, the data committed is not from the
current file. The regex replacements are actually carried out on what
appears to be a copy of the file from the last "Save Project" date.
For example:
"appCaches.php" is a file maintained by subversion. Download the files,
here: http://www.mattmecham.com/images/appcachefiles.zip
r#1355 was made by me on 21st May - which coincides with the last time I
chose "Save Project" even though I choose "Save All" regularly.
r#1479 was committed by a member of the development team adding data to the
file. Although I chose rev 1479, this file was committed around 1450ish and
hasn't changed until I did my global search and replace, so it's not just a
one revision increment problem.
r#1480 was made by me after performing a global search and replace. As you
can see, it's actually performed a search and replace on r#1355, not r#1479!
What does TextMate do when you choose "Save Project"? I thought it just
updated the xml file containing data about open files. Does the regex search
and replace work on cached copies anywhere?
Thanks
--
View this message in context: http://www.nabble.com/SVN%2C-Save-Project%2C-Regex-search-and-replace-tp180…
Sent from the textmate users mailing list archive at Nabble.com.
Hello, been using TextMate for a few years now, a good record for my
first
annoyance :)
I'm writing a lot of Python code now and since it uses whitespace for
blocks, every time I paste something after a function or class etc the
pasted text is indented at the level of the previous block when I want
it to
be pasted the way it was copied.
This means every time I paste, I have to select the block I just
pasted and
un-indent it hundreds of times every day...
Is there a command to turn off auto-indent? like Cmd-something Cmd-V
Cmd-something so I can toggle it off when pasting in Python.
Or even better, some sort of macro like Cmd-Shift-V that would paste
without
auto-indent
Thanks,
Skye
Greetings,
I am currently using TextMate for a Pylons project with its own virtual
environment. So, instead of using /usr/local/bin/python, I use a python
interpreter at a specific path. Is there an environment variable I can set so
that TextMate uses the correct interpreter so that my imports go through?
Thanks,
Ben
Hi list,
The comment/decomment command (apple-/) has a different effect in
LaTeX files (correctly prepends %) than in TeX files (incorrectly
prepends #).
To fix that:
< ciaran> cDlm: ok, if you go into the bundle editor, change the
dropdown at top left to
select Preferences, and then look for the "Comments"
item in the LaTeX bundle
< ciaran> and change where it says "text.tex.latex" at the bottom
right to be "text.tex"
Also here are the conclusions of the IRC discussion with ciaran and allan:
- the TeX grammar is not meant to be use per se (then it shouldn't
appear in the mode menu at the bottom of buffers)
- .sty files are claimed by the TeX grammar (LaTeX would be better)
--
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet
Hi,
is there a reason why TM beeps if I call open "txmt://open?" ?
I do leave out line and column in order to avoid that TM looses its
selection.
I'm just writing a character sheet to insert uncommon used charaters
by using an HTML window with TextMate.system JavaScript-bridge.
Every time if I insert a character TM beeps. Well, it is not a big
issue but ...
Thanks,
--Hans
Hello together,
I'm facing quite a strange problem with the citation inclusion in Latex
(->Latex ->Insert ->Citation Based on current word).
I always get the following error:
/tmp/temp_textmate.zgtzns:4: command not found: kpsewhich -show-path=bib
After the error-message, the right citation key is inserted. But i always
have to delete the text before (the error message), and this is very
uncomfortable.
I am working on a project, and the problem only occurs in the
"child"-documents, in my Master-File everything the citation inclusion works
very fine.
I set the the shell variable for the master-file as well as for the
Bib-file.
I'm quite confused what the problem could be and i hope somebody of you
could help me,
Thanks a lot!
--
View this message in context: http://www.nabble.com/Textmate-Latex%3A-Citation-Inclusion-does-not-work-tp…
Sent from the textmate users mailing list archive at Nabble.com.
Hi there, I remember seeing Growl notifications for when SWFs had
compiled from Textmate. I'm compiling using Simon Gregory's AS3
bundle fcsh compiler.
Does anybody know if this is possible to do?
Thanks,
Ali
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Hi all,
About a month or so ago I asked what people did about php debugging and
stuff, something I really wanted that ZDE offered (the client itself I don't
like). Several people responded and it sounded like there were a lot of
error_log'ing and stuff, but nothing on par with a real debugger.
With this in mind, I figured it was worth mentioning this project:
http://www.bluestatic.org/software/macgdbp/
It's a Cocoa based client for xdebug that code stepping and more. More info
can be found here:
http://www.tuaw.com/2008/06/16/macgdbp-kills-php-bugs-dead/
Hope this is helpful (and appropriate).
Clark Endrizzi
Hi there, I'm trying to figure out how to add breakpoints to my AS3
code. I'm compiling using Simon Gregory's Flex/AS3 bundle using the
FCSH compiler.
Also I'd like to know what's a good debugger to use that I can pause
and execute my code with. I'm on a Mac so I can't use FlashDevelop
and I'd rather not buy a license for the Flex IDE.
Thanks guys,
Alistair
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Hiya, I posted this before as part of another query though I don't
know if it got missed.
I'm compiling using fcsh compile from Simon Gregory's AS3 bundle
which is great but I'm not sure how to open the SWF in Flashplayer
without choosing the Build command.
I'm guessing this is pretty simple to do, any help much appreciated.
Thanks
Ali
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Hello, I would like to be able to target my class library so I can re-
use AS3 classes I have written. In the Flash IDE I set this in the
Preferences though I am not sure where I set this when compiling
using fcsh through the AS3 bundle. I am guessing it's in the flex-
config.xml file or maybe the project specific project-config.xml file?
Also, do I need to manually copy over classes I have used from my
library into my project folder in order to share the project with
other developers or is there an automated way of exporting the source
files in this way?
Thanks guys,
Alistair
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/