Hi,
I love TextMate2 because of its multi-lingual capability. It is
awesome (it is better than Sublime, IMHO), but there is a chronic
problem regarding soft-wrap.
When I have multi-byte (CJK) characters and regular single-byte ones
in the same line, soft-wrap does not work very nicely. Please see the
attached png.
When the line consists only of characters of the same type, multi-byte
or single-byte, soft-wrap works just fine. When they are mixed,
however, the right-hand side of wrapped text looks quite bad.
Is there a quick way to avoid this? Or is this something that needs an
application level fix?
I suspect TM2 treats a sequence of multi-byte characters as if it was
a single word. If that is the case, with text in a language like
Japanese, where word boundaries are not indicated by spaces, a whole
sentence or even a paragraph will be processed as just one huge word.
Regards,
Yoichiro
Hi,
I've a tiny question. One month ago I've fixed tiny issues for R.tmbunlde which lives at https://github.com/textmate/r.tmbundle .
If I uninstall and reinstall the bundle via Preferences > Bundles, TM installs only an old version (last commit one year ago) of this bundle.
Did I miss something?
Best, Hans
Is there a way to chain together a snippet (which takes unspecified input) followed by a macro. If I just record a macro which invokes a snippet, then does <stuff> afterwards, my input to the snippet is recorded. If I delete this input from the recorded macro, then <stuff> gets done prior to me providing any input to the snippet. Effectively I’m looking for a command like 'insertSnippetWithOptionsAndWaitTill$0IsReached:’. Is there a reasonably straightforward way of replicating such a thing (possibly by invoking snippet followed by <stuff> from a command)? It seems this capability would add huge power and flexibility to the macro facility, as well as addressing my immediate need.
Regards
Robert
Is there any mechanism which would allow textmate to dynamically read my
gitignore, and populate it into a variable ready for us in tm_properties?
It would be pretty cool to be able to say...
excludeInBrowser = "{$excludeInBrowser,$git_ignore,.tm_properties}"
I am running 2.0-beta.7.3 and just noticed that when I can no longer tap
the option key to change the selection into a column selection. The cursor
changes to a crosshairs, so I know that Textmate is seeing the keypress.
I can hold the option key down and drag to get a column selection. But
tapping does not toggle the selection type.
Anyone else notice this?
I just noticed when cleaning up my mailbox, that beta 7.4 was released. If I set the preference back to "Normal releases" I get the update, on "Nightly build" it tells me that 7.3 is the latest version...
Good morning,
.anyone using Lambda Calculus?
.there is a bundle in TextMate but I find it not to be of much use.
.I'd be very interested in getting a Lambda Calculus bundle similar to the
Haskell bundle.
Good day
Is it possible to somehow test the implementation of a language grammar?
Something besides manually visually looking at code parsed by the
language grammar.
What I would like to is to ensure that a given piece of code is
correctly recognized/parsed and gets the correct scope.
In theory it doesn't sound that difficult. If one could say, for this
line and this column I expect the scope to be something.
--
/Jacob Carlborg
You were right, I had set `lineEndings = ‘LF’` in my local .tm_properties; I definitely confused the syntax with the one of http://editorconfig.org which is also used in parallel in the project.
Thanks for taking your time to help me solve the issue.
--
David Gasperoni
I can't pin exactly when this problem appeared, but if I perform a
`Find in Project` and choose to `Replace All`, TM will mess up with
line endings.
Example:
Search for: @import "variables"
Replace: @import "../variables"
Matching: *.scss
Now, if the files are not open, the result in the saved files is
literally like this:
LF//LF// Load core variables and mixinsLF//
--------------------------------------------------LFLF@import
"../variables";LF@import "mixins";LFLFLFLF//LF// ButtonsLF[...]
Where the string LF is literally written to file instead of a line
feed character. Files are LF-line-ended and utf-8 encoded. Opening the
resultant files after such replacements with other editors will also
show these strings in place of new lines.
With open files this doesn't happen because files are not saved to
disk after the replacement is performed, and everything seems correct
while they're open.
--
David Gasperoni
Is there a key for this? I know you can go to the start of the line or up
depending on the type of selection but that requires a certain cognitive
overhead in my experience and it would be so much easier to have a single
consistent key that cancels it and returns to the original single
selection. Is there one that I don't know about?
Thanks.
--
Tom Smyth
Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change
sassafras.coop *·* @sassafrastech
Resident, Touchstone Cohousing
touchstonecohousing.org
Hi,
in our Mac-Pool we installed TextMate 2 for our students. Recently I have the
impression that we are forced to update TextMate every week. Is this intended
or do I get something wrong?
Cheers,
Michael
I was just prompted by Textmate to install a new release (nightly build)
I accepted but after it downloaded, TM would no longer launch
I wonder if anyone else has had this problem?
I have since downloaded what I believe is the exact same version from the
TM website, and this runs fine.
I have a fairly simple task I’m trying to automate:
1) copy <text>
2) Find every occurrence in the document of a fixed, reasonably straightforward regex and replace it with <text>.
The point is that I always know where to find <text>, but I don’t know what it says. Doing this by hand is obviously pretty simple, in fact there are two neat ways:
(a) shift-cmd-E on <text> then replaceAll.
(b) cmd-C on <text>, then findAll, then cmd-V.
I can’t get either of these to work in a macro.
(a) Seems to fail because the argument to findWithOptions: requires a replaceString. What the macro does is set replaceString equal to whatever value it received (i.e <text>) when the macro was recorded . Removing the line in the macro setting replaceString produces an empty set symbol, which is understandable.
(b) Seems to fail because macros don’t like findAll. When I record this operation alone and replay it, all it does is put the caret at the end of the document (the location may be specific to the limited test I’ve done, but the point is I don’t get the multiple carets I should.)
Is there a way of automating this task using macros. I’d much rather not dive into scripting. For example, is there some way to set replaceString equal to the contents of the clipboard?
It doesn’t seem like this should be difficult.
Regards
R.
I started using TextMate for LaTex this morning on OS X 10.10.3 and noticed some of my custom bundle commands were not working. For example, the following script that just echoes the name of the master file in a terminal window did not work:
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
TM_LATEX_MASTER=`${TM_RUBY:-ruby} <<"RUBY"
require "#{ENV['TM_SUPPORT_PATH']}/lib/escape.rb"
require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/latex.rb"
master = LaTeX.master(ENV['TM_LATEX_MASTER'] ||
ENV['TM_FILEPATH'])
puts master
RUBY`
cd ${TM_DIRECTORY}
/Users/gkv/scripts/term2 "echo $TM_LATEX_MASTER “
(where term2 just opens a terminal window and echoes the command). After some exploring, it seemed that texmate was not finding latex.rb in its designated directory, namely:
/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/
Rather, latex.rb is in the ruby directory underneath that. When I made a symbolic link of latex.rb from ruby into the lib directory, (nearly) everything works again. The same behaviour occurred in my laptop.
This seems bizarre. What happened? Did something change with an update?
Thanks
Geoff
I am sure this may have been discussed earlier, but I would like to know what the current state of Templates (File / New from Template) is in TM2. I started experimenting with 2 over the weekend, after about a decade of using 1.x exclusively. That was my immediate "miss", as I typed out the complete structure of an HTML page (like an animal). Am I just looking in the wrong place for these?
Thanks,
Walter
Hi,
The SVN "Diff with revision" feature doesn't work at the moment. The dialog appears to select the revision and when you click OK a progress bar appears "Fetching diff (revision no.)" and then an error dialog saying "The 'svn' command produced an error".
Other diff functions off the Cmd-Y menu work fine.
Cheers,
Jonathan.
Hello.
Please let me know if this kind of e-mail is not welcome in this list.
I am looking for a updated Cheat Sheet for Textmate 2 but lookingg on the web I just get old stuff.
If someone knows where I can find it, i will appreciate it.
Thanks,
Adler Medrado
Site: http://adlermedrado.com.br
Blog: http://blog.adlermedrado.com.br
Twitter: @adlermedrado
I often use TM as a general purpose text editor (and softwrap is useful in
those cases)
But for coding I never want it enabled.
Is there a way to set this is tm_properties, in a way that will override
the restored GUI prefs?
Various git posts and the FAQ suggest you can *enable* it in tm_properties,
even when gui setting has it disabled
But I'm not having much luck doing the inverse
https://gist.github.com/dvessel/1478685https://github.com/textmate/textmate/wiki/FAQ
Thanks
Hi guys,
I have a number of macros which move the caret. They would be nicer if they put it back where they found it. Is there a neat way of getting a macro to put the caret and/or selection back where it found it? Failing that, is there an ugly one?
Thanks
Robert
Hi guys,
Can anyone tell me how to add (sub)menus in the Bundle Editor? I want to subdivide the Menu Actions in my bundle into manageable chunks. How to add dividers to a menu would be a bonus.
Unfortunately, a search of the usual suspects hasn’t gleaned me anything relevant to TextMate 2.
Thanks
Robert
Has anyone else had this problem? I'm not sure of the exact steps to
reproduce. It sometimes works and sometimes doesn't.
If nobody else knows I can do more research.
Thanks as always for a great product.
--
Tom Smyth
Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change
sassafras.coop *·* @sassafrastech
Resident, Touchstone Cohousing
touchstonecohousing.org