I've noticed spell checking isn't working in text.html.php strings. It is working in source.js.jquery, however. See the examples in the attached screenshots.
Here are the bundle preferences that seem relevant (Source and PHP; the HTML bundle doesn't seem to have any that effect spelling).
Where should I look to see where this could be going wrong?
Thanks,
Quinn
Source.tmbundle/Preferences/Enable spell checking for strings.plist
{
name = "Spell Checking: Enable for Strings";
scope = "^ source string.quoted - punctuation";
settings = {
spellChecking = 1;
};
}
Source.tmbundle/Preferences/Disable spell checking for all.plist
{
name = "Spell Checking: Disable for Source";
scope = "source, constant, keyword, storage, support, variable";
settings = {
spellChecking = 0;
};
}
PHP.tmbundle/Preferences/Disable spellcheck in require.tmPreferences
{
name = "Disable spellcheck in require";
scope = "meta.include.php string.quoted";
settings = {
spellChecking = 0;
};
}
PHP.tmbundle/Preferences/Enable Spellchecking for Docblocks.tmPreferences
{
name = "Enable Spellchecking for Docblocks";
scope = "comment.block.documentation.phpdoc.php";
settings = {
spellChecking = 1;
};
}
Hi,
when having a multiple selection (Multi singe charets) and giving the Filter
Through Command "seq 10", TM 2.0-beta.7.7 (nightly-build) completely hangs
(force quit is necessary!, nothing in console) on my Mac with OSX 10.10.5.
When downgrading to the "normal release" 2.0-beta.7.4, everything works as
expected => numbered item filled on the charet.
More people this issue?
regards,
feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Multi-Carets-and-Filter-through-comma…
Sent from the textmate users mailing list archive at Nabble.com.
I haven't used Textmate for editing a programming language in such a long
time, that perhaps I am confused, but....
I wanted to edit a kml file generated by Google Earth. Kml should format as
xml, right?
I see this post
<http://textmate.1073791.n5.nabble.com/XML-block-folding-bug-td9215.html>
from 2007 saying that the open/close doesn't work if the end tag is not on a
separate line--unacknowledged and (seemingly) unfixed.
And as a variation on that bug report, I see that the following code also
doesn't open/close. If you fix all the indentations by hand, then it does,
but, surprisingly to me, tidying the code doesn't make any changes.
This is all in service to trying to edit a giant kml file from Google Earth.
On this file, folding is not working correctly, and tidying the code changes
the folding (still incorrect, but different).
I am beginning to think that I can't easily edit a kml file in TextMate,
because without folding, it is nearly impossible to figure out where blocks
start and end. (The file is well over 32,000 lines long).
Any thoughts before I give up?
I did download the kml bundle, but it doesn't help.
--
View this message in context: http://textmate.1073791.n5.nabble.com/xml-tidying-and-folding-tp29391.html
Sent from the textmate users mailing list archive at Nabble.com.
I have extremely strong muscle memory from other applications (Finder, Freeway, I'm sure there's others) that Option-click on a filename steps into that filename for editing. In TM2, it seems to hide all the other files I have open in tabs, and I can't figure out how to undo this once it has happened. Is there a way to disable this? How do you go back from having hidden all the other tabs?
Walter
I have a feature suggestion. I've thought about this for years but it has only just occurred to me to say something about it.
As you know, I use TextMate to write books. Big books with big chapters. So it often happens that I edit a chapter, then jump to an earlier / later bit of that same chapter to make some change entailed by what I was just writing. Now I want to "go back" to where I was before.
That's the suggestion. TextMate should _automatically_ maintain "bookmarks" for the location of the two most recent edit locations (places where I actually typed or deleted text). Thus, I could use the bookmarks feature to jump back to where I was before.
Just an idea. (A really great idea!) m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
Hi All,
I was wondering whether it would be possible to introduce to textmate the following functionality. The situation is the following:
I have two larger groups of texts, under subheadings. They show the fold sign next to the line numbers. They are folded.
|> AAAAAA
|> BBBBBB
I want to move the whole subsection BBBBBB above AAAAA. It seems to me logical to click and hold the mouse on the folded sign, and move upwards/downwards the whole folded chunk.
|> BBBBBB
|> AAAAAA
Would be this functionality helpful for anybody? I think it would be great, and quicker than Cmd+C and Cmd+V. Is it possible to introduce this?
Kind regards,
Peter
Hi *,
I’m running TM1 on my iMac with Mac OS X 10.6 and TM2 on the 10.9 MacBook. In TM1 I can export any (maybe modified) bundle by just dragging it from the bundle editor window to some finder location and will get an installable bundle like that one you sent. How do I do that in TM2?
-MWL-
--
Martin Wilhelm Leidig, SatzTeXnik — Dante e.V. #1580
Professional TeXing and TeXnical counselling
Hi *,
I’d like to use TM and TM2 (or at least one of them) with my custom TeXShop engines. By including a shebang-like line in the first line of the input, e.g.,
> ---
> %!TEX TS-program = pdflatex
> ---
one tells TM to use pdflatex; but there is no way to tell it to use, say, my ho-dtxmk engine (which processes DTX files using Heiko Oberdiek’s (ho) extracting/documentation wizardry).
So, is there a way to have TM[2] run TeXShop as the typesetting engine when I push Cmd-R instead of running the tex binaries directly, thus functioning as the external editor in TeXShop?
Regards from Ladenburg,
-MWL-
--
Martin Wilhelm Leidig, SatzTeXnik — Dante e.V. #1580
Professional TeXing and TeXnical counselling
Hello all,
I’m using ctags bundle for a while but now, working on a huge project it is demanding a lot of time to create de tmtags file, so i’m thinking about filter some directories and files that I don’t need to be indexed, but I am not able to put it to work.
I create a .ctags file with the content below and put it on my home folder, but it is not working.
--recurse=yes
--tag-relative=yes
--exclude=.git
--exclude=.node_module
--exclude=var
Can someone help me, please?
Thank you in advance.
adler
For example, how can I strip away the names of the states in this string and
only keep he two character abbreviations?
(In my file the state names and abbreviations are separated by a tab.)
Alabama AL
Alaska AK
Arizona AZ
Arkansas AR
California CA
Also...how could I turn this string:
AL
AK
AZ
AR
CA
into: AL¶AK¶AZ¶AR¶CA
I noticed that an update to RSpec broke the RSpec bundle. In the
discussion that followed it came up that the RSpec developers are not
maintaining the RSpec bundle and seem not to be interested in doing so.
My question is, should we move the project to the TextMate
group/namespace on Github and take over the responsibility for
maintaining it?
Please see the issue I've created [1] and the discussion [2]. I suggest
we continue the discussion in the issue or the commit so the RSpec
developers can participate as well.
[1] https://github.com/rspec/rspec.tmbundle/issues/98
[2]
https://github.com/rspec/rspec-core/commit/74a286d1fe44fe6a3a6a248ee2e92718…
--
/Jacob Carlborg
Hi Guys,
I was wondering, would any of you prefer sometimes using square/block carets instead of the vertical bar? I work on 2 monitors, reading on 1st, writing on 2nd. Often I have issues to find the location of the caret/cursor.
This is super-upsetting if you are writing your thesis (yes I use LaTeX), however, instead of typing the great idea/phrase you end up looking for a caret/cursor.
Anybody willing to introduce this – small but extremely valuable – snippet of code to TM2? All present and future generations, writing their theses, books, articles, etc., will be extremely grateful!
Kind regards,
Peter
I first noticed this months ago, but I’m finally trying to figure it
out.
If I click “Select Bundle Item…” or hit ⌃⌘T, the application
will freeze. If I check Activity Monitor, TextMate will just keep
consuming more memory until I kill it or the system runs out.
Where should I start troubleshooting?
I’ve uploaded a sample taken while TextMate was hung.
http://cl.ly/text/2u473S2I4240
Thanks.
--
Rob McBroom
http://www.skurfer.com/
I found the "gtm" tool in the mailing list and have started to use it to
test the grammar in a bundle. I would like to setup Travis CI to run the
tests automatically. Is the URL [1] reliable to be available or should I
just include the binary in the repository?
[1] http://updates.textmate.org/gtm.bz2
--
/Jacob Carlborg
Is it possible in a language grammar to create a pattern that is based
on another pattern? I know that you can create a pattern which matches
some text and inserts another pattern in a capture group. But I would
like to reuse the actual regular expression from another pattern.
It's a bit hard to explain but the equivalent in Ruby would look
something like this:
identifier = /\w+/
mod = /module #{identifier};/
The point here is to avoid duplicating the "identifier" pattern in the
"mod" pattern.
--
/Jacob Carlborg
Is there a way I can just disable all autocompletion in TM2?
I really prefer not to use it, but occasionally its getting in the way.
I've trawled various bundles but cant figure out where any of it is defined
Example:
do|case "$o" in
The caret is where the | pipe character is. If I press TAB here it
autocompletes to..
do
#statements|
donecase "$o" in
Likewise if I press ESC instead, it autocompletes to
done|case "$o" in
Id rather it just inserted a TAB character
Thanks
Dear all,
I'd be slightly surprised if I were the first to raise this, but I
don't see any mention of it recently on the list.
Is it possible to set the weight of a font, as well as the face and
the size, from .tm_properties? I'm using Source Code Pro, and I prefer
the Medium weight to the Regular on my current screen. Some of the
theme files seem to use a "fontStyle" key, but setting
fontStyle = "Medium"
doesn't seem to help.
Thanks in advance.
Jon
What I have noticed is that the default Markdown bundle doesn't
support some syntax features of Markdown Herein the Markdown
Preview,such as tables and strikethrough for example. Is there a
way of adding these extra Markdown Here features in the current
TextMate bundle so that they are properly viewed in the Preview?
I've tried to use the redcarpet Markdown bundle and the
Github-flavored Markdown bundle versions, which present some
highlighting within TextMate itself but fail to make the preview
work as well. I've noticed that one can add MathJax support with
the preference option TM_MARKDOWN_MATHJAX set to 1. Is there
something like that for extra Markdown Here syntax support?
Cheers,
Angelo
In my master .tex file, the command LaTeX > Insert > Citation Based on
Current Word works fine.
However if I try to run the same command in the child files, I get a
dialogue box with the error message "Failure running ³Citation Based on
Current Selection². plus a long list of paths.
This is what I have set in Preferences > Variables:
³BIBINPUTS ~/Library/Mobile
Documents/M6HJR9W95L~com~textasticapp~textastic/Documents/refs.bib"
Anyone know what the problem is?
Ross
I'm using TextMate as the editor for Git (writing commit messages and
similar). When I do a commit in the Terminal, I've fairly recently
started to notice that after I've written the commit message in TextMate
and closed the window Git still waits for TextMate. If I either open up
a new window in TextMate and closes that or quit TextMate, Git stops
waiting and finishes the commit.
I'm not sure if this is a problem with Git or TextMate. Has anyone else
experienced this problem.
I'm using:
OS X 10.10.3
TextMate 2.0-beta.7.5
git version 2.3.7 (Apple Git-57)
--
/Jacob Carlborg
I am slowly migrating from 1.5, and one thing that I really liked about the former was that if you double-clicked a symbol :foo or instance variable @bar, your selection cursor only grabbed the name, not the metacharacter preceding it. This made it really easy to change the content without altering the shell. Several times lately I have been caught out by this difference in TM2 — there, a double-clck selection grabs the entire thing. Muscle memory is foiled.
Is there a place in the Ruby bundle syntax that controls this behavior?
Thanks,
Walter
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