I've been using TextMate for years and I'm productive and happy with it. However, I like to try other editors from time to time to see if I'm missing anything. Recently I spent some time learning Vim and I discovered a few things that I particularly liked.
1) Split windows -- not the kind of split windows you normally get in Mac applications, but the Vim style ones. In Vim you can easily navigate from the keyboard to your different splits and choose what files to display in each. Additionally, you don't have to reach for your mouse to create a split. When you split, Vim divides the space up for you which is what you want most of the time. I found that it is very handy when needing to view more than 1 file at a time, which in my case is most of the time. Closing splits is about as easy as they are to create -- all from the keyboard. Multiple windows isn't really the same thing because they are slow to setup and tear down.
2) Selective multifile grep -- in Vim you can use a regular expression to open a set of files, and then just grep across the open files.
3) Don't need arrow keys -- after years of editing with the mouse; I find it painful to reach for it. It hurts my right shoulder and shoulder blade. It even hurts to have to move my hand down to the arrow keys. However, in Vim it is easy to keep your hands resting on your keyboard with your shoulders relaxed. No reaching for the mouse or arrow keys.
My understanding is that soft-wrapped lines can now be indented, but I can't
figure out how to enable that. Is this feature implemented?
--
View this message in context: http://old.nabble.com/Indented-soft-wrap-tp32983136p32983136.html
Sent from the textmate users mailing list archive at Nabble.com.
rmate is really cool. I want to work with a project directory
though, not opening one file at a time. Is there any way to get rmate
to open a directory or a project file?
Hi LaTeX users,
I'm working some more on the Typeset and View command, we are going to replace the default command that currently ships with TextMate. But I need some information. What process are TextMate's LaTeX users following for building their documents? I'm sure most of you are using bibtex, but what about other things like makeindex? Has everyone moved to a pure pdf-based process, or are some of you still using dvi/postscript? What are you using for pictures? Anything you can tell me will help.
I would also *love* example documents along with the expected output. This will aid in testing, and ensure that your particular process will be supported!
Thanks,
—Alex
Hi!
I had the same problem as described in a post from Sebastian on
2007-11-11 (http://thread.gmane.org/gmane.editors.textmate.general/
23160).
Here is my error output:
Running bibtex on Exjobb (ny).tex
Traceback (most recent call last): File "/Users/peeter/Peeterprogram/
TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/
texMate.py", line 457, in texStatus, isFatal, numErrs, numWarns =
run_bibtex(texfile=fileName) File "/Users/peeter/Peeterprogram/
TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/
texMate.py", line 71, in run_bibtex return stat,fatal,err,warn
UnboundLocalError: local variable 'stat' referenced before assignment
It seems that it had to do with the parentheses in my filename messing
up the regexes.
My solution was to change lines 71 and 72 in Textmate.app/Contents/
SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py as follows:
# auxfiles = [f for f in os.listdir('.') if re.search('.aux
$',f) > 0]
# auxfiles = [f for f in auxfiles if re.match(r'('+ basename +
r'\.aux|bu\d+\.aux)',f)]
auxfiles = [f for f in os.listdir('.') if re.search('.aux$',f)
> 0 and (f.startswith(basename) or re.match(r'bu\d+\.aux', f))]
This works, at least for me.
Or have I messed something else up in the process?
/Peeter
Hi All,
TM2s HTML output window is somewhat limited compared to TM1:
- it uses sort of *tabs*, so I can't have multiple windows next to each other (handy to remove clutter and usually welcome, but when I run multiple apps/scripts in parallel I need separate windows to monitor them)
- it only allows one 'long running' process at a time
Since my projects often include multiple apps and/or scripts that interdepend and I need to run them side by side (eg client server etc). I used to use HTML output windows, so that I could have specially formatted log messages be clickable and get me to the correct location in the source code etc.
So I wrote an application that provides multiple HTML output windows and remembers their individual placement and size. It is called ApLo, and available as source here:
https://github.com/gknops/ApLo
and wrapped into a TextMate bundle here:
https://github.com/gknops/aplo.tmbundle
For starters I wrote an Xcode4 bundle that goes with it:
https://github.com/gknops/xcode4.tmbundle
As time permits I plan to add support for iOS projects as well, and STDOUT/STDERR parsers for other languages (perl, lua) as I come across them.
Maybe these bundles will be useful for others as well.
Gerd
Reading this: http://blog.macromates.com/2009/interactive-input/
Did the steps:
> cd /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
> svn export http://svn.textmate.org/trunk/Support/lib/tm_interactive_input.dylib@11735
When I press ⌘R on a simple python script using:
variable = raw_input()
... it still fails like this:
EOF Error: 'EOF when reading a line'
Making a simple Ruby program, I got similar error:
TypeError: can't convert nil into String
The comments to the blog post seems to stray somewhat from the topic,
so I couldn't figure out if there was something I was supposed to do
differently ...
--
Phil :)
Hi,
I use Ctrl-Q quite a bit to hard wrap Markdown files, Git commit messages, etc. It works nicely when I set the wrap column at 80, but it doesn't seem respect the custom value I set for it in my .tm_properties file (wrapColumn = 72).
Is there something I can configure to get this to work, or maybe a bundle command workaround?
Any help would be much appreciated.
Adam
A number of times in the last week TM2 has crashed (with unsaved work) when I have accidently dragged selected text.
I have NOT yet been able to make a simple replication.
Has anyone else noticed a problem like this?
I have submitted the crash reports to Apple and I DO have "Submit crash reports to MacroMates" turned on. Hopefully this means
the reports are getting to Allan and they provide some clues.
Hello
TM is really on of the best text editors, however, there is two
issues unresolved for (the) years (of SL) now.
Issue one is TextMate's spelling behaviour, i.e., the automatic
detection of the language of a written paragraph, see here:
http://lists.macromates.com/textmate/2009-November/029964.html
TM does not detect the language I am typing in, perhaps because it
uses a non-Apple document window. Anyway, always changing the
system language to get correct spell check on the fly (as
suggested in the thread) could hardly be a working solution. In
addition, quite often I write source documents in various
languages, e.g. English and German, and that makes a "one language
per document" unusable.
There has also been an issue with an advanced print dialogue (but
I cannot remember the posting). It is quite nice that TM adds
headers and footers, however, TM does not print coloured syntax,
and leaving a margin of about 1cm makes the printout unusable for
punching and filing. In addition, 11pt Monaco is quite good on my
screen but printing in that font size is rather a waste of space
on the page. Of course, I know, that one may produce a html
(nicely coloured, indeed), open that one in, say, Firefox, and
print the html page.
Anyway, I was wondering if there is any progress on these two
points, first, to get the apple multilingual spell check working,
second, to provide TM with a print preference to set things like
font, colours, and margins.
Any thoughts?
Regards
*S*
--
Sascha Vieweg, saschaview(a)gmail.com
Hi Everyone,
I am a big fan of textmate and been using it for last 6 years, and SQL
bundle was one of the main tools in my toolbox. However, after upgrading
To Lion I can¹t execute any queries and every time I try I get ³Bad
Handshake² error even though I can connect to mysql just can¹t browse data.
Any pointers on that would be greatly appreciated.
This are my settings:
MacOSX:
Lion 10.7.2 with xcode 4.1
Textmate:
Version: 1.5.10 (1631)
I¹ve removed everything from Preferences -> Advanced -> Shell Variables
Ruby
Running controll+R for this command: puts RUBY_DESCRIPTION returns
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
MySql
It was installed via brew
version: Ver 14.14 Distrib 5.5.15, for osx10.7 (i386) using readline 5.1
My.ini
[mysqld]
max_allowed_packet=64M
character-set-server = utf8
default-character-set = utf8
#This option makes InnoDB to store each created table into its own .ibd
file.
innodb_file_per_table
log-bin
log=/var/log/mysql/mysql.log
log-error=/var/log/mysql/error.mysql.log
log-slow-queries
bind-address=0.0.0.0
[mysql]
default-character-set = utf8
A small enhancement request....
Currently when you open a directory with TM2, it starts with an empty
untitled document. If you do not make any changes to this document, then
the first time you open another document, the empty one is discarded. Nice.
It would also be nice if there were a setting where when you close the last
tab in a window, instead of the entire window closing, a new untitled
document was used as a placeholder instead, just as when a folder is
originally opened. If you do indeed want to close the entire window then
you can use the ⇧⌘W "Close Window" command.
When I finish a task I tend to close the documents that I was working on
before starting a new task and I often find myself closing the entire
window unnecessarily.
Just a thought.
Thanks,
Curt
Hi,
TM2 still appears to have the same troublesome selection behavior TM1 has. As an example take this line in Perl:
die("$self failed to implement ".(caller(0))[3]);
Ideally I could select '$self' by double-clicking. For that to work I would need to tell TM2 that $ is a word character in Perl, per grammar word character definitions are needed. (That may be there already, but I can't find it being mentioned anywhere.)
Now double-clicking on 'self' and moving the mouse to the left to add the '$' doesn't work because it adds '("$'. TM2 should treat non-word characters as individual characters instead of grouping them together into a "word" when extending a selection that started with a double-click.
Similarly it is impossible to select 'caller(0)' by double-clicking 'caller' and extending to the right, instead one ends up with 'caller(0))['.
Gerd
Hi,
i just checked if skim and the sync with skim works, but it does not. Is there a way to solve this?
Best
--
Christian
-Because I'm the CEO, and I think it can be done.-
Steve Jobs, 2005
Something I'd like to see improved in TM2 is the visibility of the
current file browser root. Since I started working with TM2, I've
noticed several things about the file browser:
- I frequently glance at the file browser/project drawer to orient
myself, essentially answering "which project's window is this?"
- The "project" indication, the browser's current directory, is now
the smallest text on the page. (I use a larger font than the default
for the editing windows.) It's also tucked in the midst of a lot of
other stuff, making it hardre to quickly pick out.
- The current directory name is truncated by the buttons to its right
when the file browser pane is narrowed even a bit.
- Quickly inspecting the contents of the file browser is often not
illuminating. Imagine working with multiple Rails apps, multiple
git clones of the same project, etc.
- No location information is available when the drawer is closed. By
contrast TM1's default formatting of the title bar with "<icon>
<file> - <project>".
---------
On that last point, I note that the window title is now user-configurable in
.tm_properties; great news. However, I've not had any luck in
recreating TM1's behavior. For example, in ~/.tm_properties I have:
windowTitle = '${TM_DISPLAYNAME}\
${TM_PROJECT_DIRECTORY:+ - $TM_PROJECT_DIRECTORY}'
and in a project root directory, I have .tm_properties with:
projectDirectory = '${CWD}'
After restarting TextMate (is there an easier way to reload the
props?), it seems that TM_PROJECT_DIRECTORY is never set even when
projectDirectory has been set in .tm_properties. Am I just missing
something about projectDirectory/TM_PROJECT_DIRECTORY, or is this a
bug?
Thanks,
John
I've seen this a couple of times, but this time I captured a sample.
TM2 was running in the background when I noticed it was using the CPU
a lot. I had a couple of documents and projects open some of which are
in a Mercurial repository. From the sample it looks like TM2 is
scanning directories for some reason.
Version 2.0 (9090)
OS X 10.7.3
Thanks,
/Staffan
Is pastie.org the same as pastie.textmate.org?
I used pastebin.ca in the past. What authorization for gists are you referring to? This works for me:
curl -d '{"public":false,"files":{"file1.txt":{"content":"foo"}}}' https://api.github.com/gists
--
PGP: A0E4 B2D4 94E6 20EE 85BA E45B 63E4 2BD8 C58C 753A
PGP: 2C23 EBFF DF1A 840D 2351 F5F5 F25B A03F 2152 36DA
--
No situation is so dire that panic cannot make it worse.
--
Please encrypt sensitive information before emailing it:
https://jeromebaum.com/pgp/encrypt.html
On 28 Apr 2012, at 19:25, textmate-request(a)lists.macromates.com wrote:
> Date: Sat, 28 Apr 2012 17:31:20 +0100
> From: Andy Herbert <andy.herbert(a)me.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Pastie broken?
> Message-ID: <877DFD53-B47E-46AB-8602-47D05582574C(a)me.com>
> Content-Type: text/plain; CHARSET=US-ASCII
>
> "pastie.org was DDOSed twice last night. To protect it's network and other customers Rails Machine has decided to no longer host and sponsor the site."
>
>> From http://pastie.org/
>
> I recently attempted to change pasting services to gists using the Github bundle, but they appear to have changed the authorisation system recently, can anyone recommend a fix or alternative service?
Hello, I have a patch to the Inform bundle, attached. It does the
following:
* Function names now listed in Symbol listing
* Operators now stylable in preferences
* Library functions now stylable in preferences
* Library variables now stylable in preferences
* All important properties added as Library variables
* Library constants now stylable in preferences
* All object attributes added as Library constants
* Keywords and library constants no longer have to match any
particular case (except for the library constants that Inform
requires to be ALL CAPS)
* More keywords and directives added
--Poster
www.intaligo.com INFORM, Building, doom metal
(upgraded from b9064 stable to) b9090 and when I expect TM2 to restart,
it does not. Could interruption of installer by File Save dialog to save
an unsaved document, cause this failure of auto-launch?
Assumed/Expected TM2 to auto-launch.
Launching TM2 manually reopens previous windows with this in titlebar
(see screenshot). The same string is in title bar whether a directory is
open or single file.
thank you for really fantastic software!
mac OS 10.6.8
Is pastie.textmate.org broken? I get a "user page unknown" message when I visit it in my browser and TextMate gets a 403 error.
--
PGP: A0E4 B2D4 94E6 20EE 85BA E45B 63E4 2BD8 C58C 753A
PGP: 2C23 EBFF DF1A 840D 2351 F5F5 F25B A03F 2152 36DA
--
No situation is so dire that panic cannot make it worse.
--
Please encrypt sensitive information before emailing it:
https://jeromebaum.com/pgp/encrypt.html
I'm working on several moderately-sized Rails projects, and lately it's been
taking several seconds to open or close a tab. I thought it was a memory
issue, but restarting TM doesn't seem to help at all. This also doesn't seem
to be at all related to the size of the file, so I don't think it's taking a
long time to do the syntax highlighting. Is there something I could do to
track down what's causing the slowness?
--
View this message in context: http://old.nabble.com/Slow-to-open-and-close-tabs-tp33749335p33749335.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi there! Perhaps someone on the list will be be able to help me diagnose what's wrong with my current install of TextMate/RubyMate/ruby.
Whenever I try to run a ruby script through TextMate (⌘+R) and an exception gets raised, I get the following error:
/Users/jan/Library/Application Support/TextMate/Pristine Copy/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:12:in `for_fd': Bad file descriptor (Errno::EBADF)
from /Users/jan/Library/Application Support/TextMate/Pristine Copy/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:12:in `block in <top (required)>'
The line in catch_exception that's causing this is:
io = IO.for_fd(ENV['TM_ERROR_FD'].to_i)
For what it's worth, TM_ERROR_FD seems to be set to 14 here...setting it to other values (tried 1 through 14) doesn't seem to help much. I haven't done much with IO, so I'm on relatively shaky ground regarding what's happening and how to fix it. Anyone know what my next step should be?
Possibly relevant info:
TextMate version: 1.5.10 (1631)
ruby version: ruby 2.0.0dev (2012-03-26 trunk 35141) [x86_64-darwin10.8.0]
rvm version: 1.13.0
OS X version: 10.7.3
--
Jonathan Bunde-Pedersen, PhD
VP, Solution Architect, Cetrea A/S
t: +45 38400587
m: +45 23413830
On Tue, Apr 24, 2012 at 10:30, <textmate-request(a)lists.macromates.com> wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. [TM2] txmt: URL bugs? (Gerd Knops)
> 2. TM2: JavaScript & Lua Syntax Checkers, Lua runner with
> 'clickable' debug output (Gerd Knops)
> 3. TM2: popup dialog problem with dual screens (?Yuan Jiang)
> 4. TM2 using lots of CPU (Staffan Larsen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 23 Apr 2012 13:17:00 -0500
> From: Gerd Knops <gerti-textmate(a)bitart.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] [TM2] txmt: URL bugs?
> Message-ID: <4FD6E0B2-B6CB-4E15-8EB4-72B9F9502D45(a)bitart.com>
> Content-Type: text/plain; charset=us-ascii
>
> A couple of issues:
>
> http://manual.macromates.com/en/using_textmate_from_terminal.html
>
> says about url: "if this is left out, the current document is targeted". TM2 complains when url is missing.
>
> Secondly: I can't seem to figure out how to use URLs containing spaces. Neither of these work in TM2 (I belive the first one would be the correct one, at least TM2 displays it correctly in the error message):
>
> txmt://open?url=file:///Library/Screen%20Savers/
> txmt://open?url=file:///Library/Screen+Savers/
> txmt://open?url=file:///Library/Screen Savers/
>
> Am I getting those wrong?
>
> Thanks
>
> Gerd
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 23 Apr 2012 19:09:10 -0500
> From: Gerd Knops <gerti-textmate(a)bitart.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] TM2: JavaScript & Lua Syntax Checkers, Lua runner with
> 'clickable' debug output
> Message-ID: <503F953A-07AA-4892-92A1-7B335F1CF6A4(a)bitart.com>
> Content-Type: text/plain; charset=us-ascii
>
> A couple of new modules I just added to github, maybe someone can find use for them:
>
> https://github.com/gknops/JavaScript-ApLo.tmbundle
> https://github.com/gknops/Lua-ApLo.tmbundle
>
> They do require ApLo:
>
> https://github.com/gknops/ApLo
>
> Gerd
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 24 Apr 2012 14:36:39 +0800
> From: ?Yuan Jiang <sleetdrop(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] TM2: popup dialog problem with dual screens
> Message-ID: <32024141-379A-40E4-9068-467DC4CD4DDA(a)gmail.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello,
>
> When the TM2 is in the external screen, when I use [go to file (cmd+t)] [select bundle item (ctrl+cmd+t)] [find (cmd+f)], the popup dialog will appear in the main screen.
>
>
>
>
>
> Yuan Jiang
> http://blog.vetcafe.net
> http://twitter.com/sleetdrop
>
>
Hello,
When the TM2 is in the external screen, when I use [go to file (cmd+t)] [select bundle item (ctrl+cmd+t)] [find (cmd+f)], the popup dialog will appear in the main screen.
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
A couple of issues:
http://manual.macromates.com/en/using_textmate_from_terminal.html
says about url: "if this is left out, the current document is targeted". TM2 complains when url is missing.
Secondly: I can't seem to figure out how to use URLs containing spaces. Neither of these work in TM2 (I belive the first one would be the correct one, at least TM2 displays it correctly in the error message):
txmt://open?url=file:///Library/Screen%20Savers/
txmt://open?url=file:///Library/Screen+Savers/
txmt://open?url=file:///Library/Screen Savers/
Am I getting those wrong?
Thanks
Gerd
Hi,
I'm not sure if I am missing something about the new ways to include/exclude files via entries in the .tm_properties file. I would like a subset of all my files to appear in the file browser. I first exclude all files then selectively include just those files I want. My problem is that when I do a search/replace in project the search returns matches in pure binary files (i.e. executables) that are *not* listed in my set of selected files. I never want to search/replace in any binary file. Can anyone suggest a fix?
Many thanks,
Leo
Here is the section of my .tm_properties file
# exclude all files
exclude = "*"
excludeFiles = "*"
excludeFilesInBrowser = "*"
excludeDirectoriesInBrowser = ".*"
excludeInFolderSearch = ".*"
# select some files
mySourceCode = "*.adb,*.ads,*.adc,*.sh,*.tex,*.sty"
myTextFiles = "*.txt,*.tex,*.sty,*.bib,*.inp"
myBinaryFiles = "*.{jpg,jpeg,pdf,png}"
myOtherFiles = "Makefile,README*,TO-DO*"
# make the selected files visible
includeFilesInBrowser = "{.tm_properties,$mySourceCode,$myTextFiles,$myBinaryFiles,$myOtherFiles}"
[ $myBinaryFiles ]
binary = true
I'm having serious issues with highlighting, mostly with javascript files. Whenever I open a minified js file or a file with over 300-400 lines of code, textmate process will go over 100% and won't highlight anything else until I quit it.
I'm on a i7 2.2ghz with 8gig of ram.
Anyone else experiencing this?
thanks
I've been having some weird issue with the find functionality. When I search for something, usually in a project directory, most of the results don't match the line number returned.
example, if I search for "foo". I get the list of results, so I click on the returned result from the find window, which does takes me to the correct file and to line 32 as returned in the search results, but foo is actually located in a completely different line number in that document.
anybody else experiencing this?
I'm new to TextMate and Ruby so please bear with me. I'm trying to run my
ruby code in 1.9.3. When I run things now, it's running them in 1.8.7 for
some reason. I don't know exactly what path should go in the Path but I
want it to run 1.9.3. Please help. I don't even know where 1.8.7 is coming
from
--
View this message in context: http://old.nabble.com/Change-path-tp33711606p33711606.html
Sent from the textmate users mailing list archive at Nabble.com.
Howdy.
Does anyone know if it is possible to change the color in the file drawer in
TextMate 2? I read a message asking about font size but couldn't find
anything on color. I would like to change it to the pale blue found in most
lion windows (#dde2e9).
Thanks ,
~ Ben
--
View this message in context: http://old.nabble.com/-TM2--File-Drawer-Color-tp33679398p33679398.html
Sent from the textmate users mailing list archive at Nabble.com.
When using the hotkey for ending the line with a : and going to next
line, e.g. when defining a function, most of the time the colon is
being placed several characters away from the closing parameter
parentheses like so:
def func(params) :
This behaviour is a regression in TM2, works fine in TM1.
Best regards,
Michael
In the "Go To File" dialog, is there a way to remove the saved entries from
the dropdown on the right that contains the file globs?
I looked around a bit but couldn't find where these are stored.
Thanks,
Curt
"The usage statistics will be monitored..."
-- <http://blog.macromates.com/2012/leopards-and-questions/>
Can you please post an update to the statistics of Users and their OS
version. Perhaps it will change as more people become aware of the 2.0
alpha release.
Cheers,
AZ
When I try the keyboard shortcut, I just get the alert sound from my Mac,
and when I choose Bundle > HTML > Entities > Insert Entity... via menu bar,
it opens the entity panel, but when I select one to insert, instead it
pastes this error in my document:
-------------
/tmp/temp_textmate.IH1pV6:21: undefined method `to_i' for true:TrueClass
(NoMethodError)
from /tmp/temp_textmate.IH1pV6:15:in `open'
from /tmp/temp_textmate.IH1pV6:15
-------------
Unfortunately, I was testing out Sublime Text 2 (shame on me, I know...)
for a while so I'm not sure when this started to happen. Sorry...
I tried to reinstall of TextMate (removed the textmate folder in
app support and downloaded a fresh copy) but that didn't change anything...
I get the same with the 1.5 latest release and the alphabeta 2.0 (well, I
get the error in a window in 2.0 instead of as text in the document in 1.5).
Any idea? Thanks!
--Yann
Hello All,
Apologies in advance if this is inappropriate to post here, but since there
is a 2.0 Textmate on the way that is changing how fonts work...
Here is a proposal about "elastic tabs" that seems interesting:
http://nickgravgaard.com/elastictabstops/
"Elastic tabstops - a better way to indent and align code"
there's also a discussion going on here:
http://reddit.com/comments/ro3b0
The idea is more about lining up text in columns as opposed to just
indenting text. Which is a feature I don't use much for programming. But
for editing lists of things in columns, this looks pretty sweet.
Regards,
--ErikN
Hello all,
I'm having a problem with matching character pairs in TextMate 2, and I'm wondering if it's a known issue or something specific to my installation.
For example, if I open a JavaScript file and type the following:
$(#id_name)
and then go back and place my caret before the # sign, and type a single-quote (or any other matched pair), I end up with:
$(''#id_name)
with my caret now between the matched pair. Selecting all of #id_name before typing a quote character works properly, but obviously requires use of the mouse.
I've confirmed that this happens in JavaScript and Python, but not in CSS or HTML. In fact, in those languages, there appears to be no matched pairing happening at all.
I never really used the matched pairs in TM1, so mostly I'd like to know if there's a way to turn this feature off altogether, but I'm glad to provide any other information required. My .tm_properties file is extremely sparse, and I'm not using any 3rd party plugins.
-phil
Hi there,
It seems that when using dead keys in TM2, the initial keypress of the
dead key is interpreted as input. This creates a problem for functions
like wrapping selected text (with parens or braces) because rather than
wrapping the text with the appropriate character it replaces the
selection with the dead key character.
An example: I use the semicolon followed by j for inserting a left
paren. If I make a selection and do this, it replaces the selection
with the semicolon.
Any ideas?
Thanks,
Garrett Lancaster
Hi,
I have a textmate project with some Latex files. When I click on the links with error messages, or when I press fn-enter on an include statement the correct latex file is opened, but in a new window and not in a tab within the project.
THis is annoying, because I usualy already have that file open in a tab, and a new window takes me out of the project so CMD-R does not compile the main file as set in TM_LATEX_MASTER variable in the project.
Any Ideas how to fix this?
--
Ronald
Hello everybody,
I'm using TextMate 2.0 Build 9064 on OS 10.6.8. I'm using spaces to provide multiple destops. There are some small annoyances with this setup:
1. When opening a file from the terminal window, TextMate will switch to the space where the previous TextMate window has been opened.
2. When pressing Cmd-F to open the find window, TextMate switches to the space which the find window has been active during the previous usage. This is a bit awkward since the found results will be shown a different space unless I move the search window to the desired space before performing the search :-)
3. When using rmate to open files remotely, the file opens on a seamingly random space. I'm not sure, maybe it's the space where TextMate was originally opened or the space where the last window has been opened manually (like 1.).
Can the behaviour be changed so that new windows and dialogs will open on the current space?
Cheers,
Henning Holtschneider
--
LocaNet oHG - http://www.loca.net
Baroper Straße 239 b, D-44227 Dortmund
tel +49 231 91596-25, fax +49 231 91596-55
sip 25(a)voip.loca.net
Registergericht Amtsgericht Dortmund HRA 14208
Geschäftsführer Sven Haufe, Henning Holtschneider
I config the php bundle to use local php manual via setup the PHP_MANUAL_LOCATION environment variable.
It can look up the keyword by "^H", but links in the browser window doesn't work.
As shown in the attached picture.
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
In the "Go To File" dialog if you tab to the file types drop down control
and change the selection with with either the keyboard or mouse, the list
of files immediately changes to reflect the new glob pattern.
Also, if you type in a new glob pattern *that is already in the list* and
hit the enter key, the list of files is updated.
However, if you type in a glob pattern *that is not already in the list* and
hit the enter key, the list of files is not updated. You must must use the
arrow key to select a different pattern, then use the arrow key to
re-select the desired pattern.
Hi,
I have a a kind of a weird crash with TM2 (I encountered it several weeks ago but now I do need the procedure quite often). I'm on MacOSX 10.7.3 (9110).
I have created a new bundle with several commands. All these command have the same structure:
Save: Nothing
Input: Nothing
Output: Show in New Window
Caret: After Output
and the actual command:
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
pbpaste | perl -e '
$word = <>;
chomp($word);
...
print $result;
'
In other words each of these commands takes the content of the clipboard and send it to a Perl script. The script and the clipboard's content have to handle real UTF-8 stuff and the PErl script contains lots of non-ASCII characters.
Now the weird thing: The crash doesn't always occur. I tried to find a more or less 'reproducible' workflow.
- TM2 is not running
- I copied a word from another program into the clipboard
- I open TM2
- an 'untitled' window appears
- I invoke one of these commands in question
- TM2 crashes with:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libundo.dylib 0x004e3f79 ng::undo_manager_t::end_undo_group(ng::ranges_t const&) + 11
1 com.macromates.TextMate.OakTextView 0x005d9356 0x5a9000 + 197462
2 com.macromates.TextMate.OakTextView 0x005c1242 0x5a9000 + 98882
3 com.apple.AppKit 0x93315727 -[NSView _performKeyEquivalent:conditionally:] + 49
4 com.apple.AppKit 0x93315914 -[NSView performKeyEquivalent:] + 340
BUT THEN I reopen TM2 and do _exactly_ the same and IT WORKS!
Step two of WEIRDNESS: If I quit TM2 after that and reopen it and run the command with the same clipboard content again TM2 crashes once again.
It doens't matter whether I invoke the command via key equivalent or via mouse Bundles > ...
I didn't encounter that problem if TM2 was running before I copied the text, switched to TM2, and invoked the command.
Any help, fix would be really appreciated :)
For more details, don't hesitate to contact me.
Cheers,
--Hans