I’ve posted about this before but didn’t come to a solution.
Say I have this R code:
foo <- test
foofoofoo <- test
foofoo <- test
How can I align the code like this:
foo <- test
foofoofoo <- test
foofoo <- test
I’ve tried selecting the code and running Bundles > Align > Align Source, but I get the message "Failure running “Align Source” interpreter failed: No such file or directory”.
Any suggestions?
Ross Ahmed
Ecologist
—
07875533906
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>
I’ve posted about this before but didn’t come to a solution.
Say I have this R code:
foo <- test
foofoofoo <- test
foofoo <- test
How can I align the code like this:
foo <- test
foofoofoo <- test
foofoo <- test
I’ve tried selecting the code and running Bundles > Align > Align Source, but I get the message "Failure running “Align Source” interpreter failed: No such file or directory”.
Any suggestions?
Ross Ahmed
Ecologist
—
07875533906
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>
Dear Sir:
I am running TextMate version-beta.8.5 on a Mac with OS10.11.2, and texlive
2015.
TexMaker, TexShop, and latex on terminal all work fine with the same .tex
file. But TextMate complains that:
"! LaTeX Error: File `xy.sty' not found."
The file xy.sty is properly located in the texlive system.
It must be a trivial problem except that I cannot figure it out. I
appreciate your help,
Luke W. Mo
Virginia Tech
Hi,
I was wondering if there is still an API to write Plug-ins for TextMate because I would like to create a Python debugger plug-in.
Thank you for this wonderful editor,
Louis
Since yesterdays update (v2.0-beta.8.4), the web view can’t load non-https urls.
This could of course be solved for the php documentation by using their secure domain, https://secure.php.net <https://secure.php.net/>. But I’m quite sure there are other bundles that open external sources over http as well.
Koen
Koen Punt mail(a)koen.pt <mailto:me@koen.pt> koen.pt <http://koen.pt/>
When editing a bundle, you can set the file types which this bundle should
apply to by default
Is there any way I am able to include file masks in this, or does it just
work on file extension?
For example, I have *.js files which obviously default to Javascript
My Smarty bundle is set to handle all *.tpl files
But now I want to override this by treating "js_*.tpl" files as Javascript
also
Thanks
I am trying to use Emmett in the latest TM and the latest Mac OS X, and I get a crash on launch every time. There is a fair amount of discussion on Github about this, and links to a non-official branch that supposedly fixes the problem, unfortunately I cannot get it to work in my system, either. Has anyone else gotten this combination to work? If so, what did you do?
Thanks,
Walter
I'm using a bundle [1] to highlight trailing whitespace. When there is
some trailing whitespace in a document and I select the text and the
selection covers the trailing whitespace, the selection gets a darker
color where there is trailing whitespace. But it's not consistent,
sometimes it gets the darker color, sometimes it doesn't. When I start
the selection on trailing whitespace the selection that covers the other
text also gets this darker color.
It's a bit hard to explain this so I created a screen recording [2]. The
red background color on the screen recording is the highlighted trailing
whitespace.
It's not a big issue since it's just the color of the selection, but I
though I could mention it anyway.
[1] https://github.com/mads379/Whitespace.tmbundle
[2]
https://drive.google.com/file/d/0B7UtafxGD9vENlBqVllvS0Frd0k/view?usp=shari…
--
/Jacob Carlborg
If I have a long line, most often in a Markdown file, the empty space on
the gutter is being highlighted for physical lines rather than the
logical line number.
In the attached screenshot, I would have expected the line number 23 to
have been highlighted. Instead, a blank space on the gutter has been.
Bob
------------------------------------------------------------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com <http://www.bobrockefeller.com>
This doesn't work for me: `echo "<?php die(); ?>" | mate --type php`. TM2 opens with the type set to Plain Text. Is possible? I'm doing it wrong?
Thanks,
Q
Is there a convenient way to convert an Atom grammar for use by TextMate?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
Hi,
one of the nice features of TextMate 2 is the “bundle manager” that allows us to easily install/remove bundles via a single click inside Preferences. The list of available bundles is quite long. However, there are still some bundles missing. At the end of this mail I list some bundles that I would like to see included.
I based this list on my personal usage. If anyone has some additional ideas about which bundles to include, then please share them here. While Allan and Michael – a.k.a. MacroMates – might not add them to the index, there is still a chance that we all learn about some useful bundles that make our lives easier.
So let me start with a shameless self promotion ☺ of two of my bundles:
- [Rainbow Dash]: This bundle contains a light and colorful syntax highlighting theme for TextMate
- [Special Characters]: A bundle to easily insert special characters into a TextMate document
[Rainbow Dash]: https://sanssecours.github.io/Rainbow-Dash.tmbundle/
[Special Characters]: https://sanssecours.github.io/Special-Characters.tmbundle/
Here is a list of bundles created by other people that I find useful.
- [Avian Missing] contains some additional commands „missing” from TextMate. Personally I like „Strip whitespace on save” and “Open global .tm_properties”.
- [DashMate] provides support for the documentation lookup tool [Dash](https://kapeli.com/dash).
- [EBNF TextMate highlighting] provides syntax definitions for [Extended Backus-Naur Form](https://en.wikipedia.org/wiki/Extended_Backus–Naur_Form).
- [fish TextMate Bundle] adds support for the [friendly interactive shell](http://fishshell.com).
- [Marked Bonus Pack] adds commands that preview the current Markdown document in [Marked 2](http://marked2app.com).
- [TextMate 2 rubocop] adds support for the Ruby code analyzer [RuboCop](https://github.com/bbatsov/rubocop).
- [TextLint] is a linter for your english prose. Basically it makes writing english texts – that pass the linter – a horrible experience ☺.
[Avian Missing]: https://github.com/elia/avian-missing.tmbundle
[DashMate]: https://github.com/ram-nadella/DashMate.tmbundle
[EBNF TextMate highlighting]: https://github.com/arne-schroppe/ebnf-textmate-bundle
[fish TextMate Bundle]: https://github.com/l15n/fish-tmbundle
[Marked Bonus Pack]: https://github.com/kotfu/marked-bonus-pack/tree/master/TextMate/Marked%202.…
[TextMate 2 rubocop]: https://github.com/mrdougal/textmate2-rubocop
[TextLint]: https://github.com/DamienCassou/textlint/tree/master/TextLint.tmbundle
Kind regards,
René
I’ve noticed that the find window is not tied to the same application space as the rest of the Textmate windows. Its shown globally as if the window were assigned to “All Desktops”. This is quite annoying as I often will switch applications using command tab, and then switch back to Textmate via the same key. When i return to textmate, the find window shows up in the wrong space, while the editor windows remain in their correct space.
The desired behavior would be for the find window to occupy the same space as Textmate, and upon switching to the Textmate application, the corresponding desktop space should be automatically selected.
I had an old LaTeX bundle in the Avian directory which was
conflicting with the default LaTeX directory. After removing it,
the command now work.
Angelo
Hello,
I'm using TextMate version 2.0-beta.8.3 on OS X 10.11.1, with
the latest version of the LaTeX bundle. When I try to use the
“LaTeX Symbol Based on Current Word” command, it rightfully
complains of the lack to the config_helper.rb file.
Failure running “LaTeX Symbol Based on Current Word”.
LaTeX Symbol Based on Current Word:6:in `require': no such file
to load -- /Users/angelo/Library/Application
Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/config_helper.rb
(LoadError)
from LaTeX Symbol Based on Current Word:6
Any suggestions?
Cheers,
Angelo
I am having problems with latex in TexMate and I am hoping someone can help.
I deleted the latex names from the bundles list when I was having other problems with latex (after updating to el capitan on my mac). I have since fixed these latex problems but latex is still missing for the bundles list (even though I have re-installed TexMate . I have been to preferences and uninstalled latex and then reinstalled it. It has not re-instated latex to the bundle list. Can you please tell me what I need to do to be able to use latex in TexMate again?
Let me know if you need any further information
Cheers
Sharon
[Charles Sturt University]<http://www.csu.edu.au/>
| ALBURY-WODONGA | BATHURST | CANBERRA | DUBBO | GOULBURN | MELBOURNE | ORANGE | PORT MACQUARIE | SYDNEY | WAGGA WAGGA |
________________________________
LEGAL NOTICE
This email (and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone. Any confidentiality is not waived or lost by reason of mistaken delivery. Email should be checked for viruses and defects before opening. Charles Sturt University (CSU) does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with CSU may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at CSU. The views expressed in this email are not necessarily those of CSU.
Charles Sturt University in Australia<http://www.csu.edu.au> The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551; CRICOS Provider Number: 00005F (National)). TEQSA Provider Number: PV12018
Consider the environment before printing this email.
Today something has changed and now my searches only return results if I
choose the ³in Selection² option.
If I choose the ³in Document² or ³in Open Files² option the search does not
find any matches even though there should be hundreds of them in my current
document.
Any suggestion as to how I can fix this issue?
Thanks.
Is it me or Dock icon is completely messed up in recent builds? Everything is completely scrambled in Dock context menu which I use a lot. See:
http://imgur.com/uZ4lwnR
Thanks for a info what's wrong there.
-- Adam
I love TM for its 'Go To File...' feature, using CMD+T
My workflow revolves around it, but I would love to see it become a touch
more powerful, but allowing wildcards to filter the list
Ie, typing forum_*.css would show all matching files once the wildcard has
been globbed, which currently it doesn't do.
Is this something that could be considered please?
I made some improvements to the TextMate Smarty/PHP bundle, which I;ve been
using for a while without any ill effects
I submitted a pull request for it on github, but I'm not sure if I need to
let you know, or if its a third party bundle and the original author has
moved on
Is there any chance we could get this merged into live please? I prefer not
to have standard bundles with custom mods
Thanks
The LaTeX macros don’t find my bibliography files any longer. I don’t know when this broke, it might have been with the upgrade to El Capitan. kpsewhich finds my bibliography files in Library/texmf/bibtex/bib, and TeXShop does too. /Library/TeX/texbin is in my PATH variable. I’m running TextMate 2, beta 8.1. When I do the citation completion command, I get a pop-up complaining that /Library/TeX/texbin is a directory and that kpsewhich cannot be found.
Anyone have a suggestion?
Thanks,
Kyle
To create a pattern in a TextMate grammar that matches across multiple
lines the "begin" and "end" keys are necessary. But is it possible to
somehow restrict what is matched between the begin and the end?
I'm trying to create a pattern for the hex string literal in D. It's
like a regular string literal but can only contain hex characters.
--
/Jacob Carlborg
I want to make my snippet replace the word before the caret.
Using TM vars I can insert that word in the right place in the snippet but the snippet always shows up immediately after the word. That is the original word is still there in the original location. What am I missing ?
Hi:
I just installed OS X El Capitan (ver 10.11.1) on my MacBook pro. After this installation, when I open a latex file and use command+r, I get the following error message:
----------------
Unable to run “Typeset & View (PDF)”.
This command requires ‘kpsewhich’ which wasn’t found on your system.
The following locations were searched:
• /usr/bin
• /bin
• /usr/sbin
• /sbin
• ~/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin
• /usr/local/bin
If ‘kpsewhich’ is installed elsewhere then you need to set PATH in Preferences → Variables to include the folder in which it can be found.
-------------------
What should I do? Any help would be appreciated.
Thanks,
Tao
I’ve noticed that the "Strip Whitespace on Save” bundle only strips whitespace from the current document when saving via “Save All” or “Save on Focus Lost”.
I’d rather it changed all the files that are being saved.
Has anyone found a solution or point me in the right direction?
Thanks,
Graham P Heath
Since I updated Xcode to a later version (can't remember the exact one)
I get a huge amount of warnings one at the bottom. Can we please fix
this or suppress the warning. The amount of output this generates is
ridiculously annoying.
2 warnings generated.
[919/1174] Compile ‘Frameworks/buffer/src/symbols.cc’…
In file included from Frameworks/buffer/src/symbols.cc:1:
In file included from
/Users/jacob/development/objective-c/textmate/Shared/PCH/prelude.cc:25:
In file included from
/Users/jacob/development/objective-c/textmate/build/include/sparsehash/dense_hash_map:104:
In file included from
/Users/jacob/development/objective-c/textmate/build/include/sparsehash/internal/densehashtable.h:100:
/Users/jacob/development/objective-c/textmate/build/include/sparsehash/internal/hashtable-common.h:167:29:
warning: unused typedef 'serializing_int_requires_an_unsigned_type'
[-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
/Users/jacob/development/objective-c/textmate/build/include/sparsehash/internal/hashtable-common.h:54:49:
note: expanded from macro 'SPARSEHASH_COMPILE_ASSERT'
typedef SparsehashCompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
/Users/jacob/development/objective-c/textmate/build/include/sparsehash/internal/hashtable-common.h:180:29:
warning: unused typedef 'serializing_int_requires_an_unsigned_type'
[-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
/Users/jacob/development/objective-c/textmate/build/include/sparsehash/internal/hashtable-common.h:54:49:
note: expanded from macro 'SPARSEHASH_COMPILE_ASSERT'
typedef SparsehashCompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
--
/Jacob Carlborg
TextMate has a feature that if a keyboard shortcut maps to multiple
commands (I'm mostly thinking of bundle commands) a context menu will
open to allow the user to disambiguate the command. It's possible to use
the numbers on the keyboard to select the correct command.
Would it be possible to use letters in addition/instead of the numbers
to disambiguate the commands?
For example, in the Git bundle there are a lot of commands that map to
the same same keyboard shortcut (⌘Y). Because they're so many only
around a third of the commands have a number to disambiguate using the
keyboard.
BTW, I tried to disable the keyboard shortcut for a couple of commands
I'm not using but the "Key Equivalent" field is blank for all the Git
commands. Does the Git bundle has some kind of special treatment?
I'm running TextMate version 2.0-beta.8.1 on OS X 10.10.3.
--
/Jacob Carlborg
I hate to bring this up again, but are there any updates on rendering the indent guides?
At the moment working with space-based indentation is a real pain, especially in JavaScript that heavily relies on callbacks.
As a workaround I do the column selection to figure out the indentation, but that feels wrong and take too much time.
If there's no progress planned, is there a way to create a plugin for TextMate that would add this feature?
I've defined an environment variable in the TextMate preferences with an
all lowercase name. That environment variable is not available to my
program/tests when I run RSpec inside TextMate. But when the first
letter of the environment variable is a capital letter I do have access
to it.
Is this a problem with TextMate or the RSpec bundle?
--
/Jacob Carlborg
I tried to create a bundle command that is executed using Ruby 2. When I
use TextMate::UI.menu in the command, the command never finish and
TextMate freezes until I force quite the Ruby process running the command.
It works with Ruby 1.8.7 but not with 2.1.5. I haven't tried 1.9.
--
/Jacob Carlborg
I've been thinking for a while that it would be nice to be able to do an
interactive rebase from within TextMate.
I tried to come up with an idea of how the UI could work. One idea that
comes to mind is to use the log. I imagine there would be some form of
buttons (edit, squash, ...) for each commit and one "global" Start
Rebase button. Ideally it should be possible to use keyboard shortcuts
as well, arrow keys for selecting a commit and E, R and S for commands
like edit, reword and squash.
The question now is, is it possible to use the HTML output view for
something like this, or would a proper UI be required? That is create a
UI in TextMate rather than in a bundle command.
The second question I have, does anyone know if it's possible to set
which commits to edit, squash and so on, before starting an interactive
rebase? Usually a text editor opens and the users selects the commands
after starting the rebase. Perhaps using libgit2 if not through the
regular command line interface.
What would also be a nice feature, or rather a shortcut of the above.
Placing the cursor of a line you would like to edit, execute a command
(via a keyboard shortcut) which basically does a "blame" and figures out
the last commit that touched that line. Then it would start an
interactive rebase and select "edit" for this particular commit.
Thoughts?
--
/Jacob Carlborg
In some cases, running something in TextMate which outputs spaces, then
copying that using the "copy output" link in the output window and then
pasting it in a new TextMate document, it will paste the spaces as
no-break spaces [1].
The easiest way to reproduce this is to run the following Ruby code
inside TextMate:
puts ' '
Then follow the steps described above. Note that if I copy the output by
selecting the text and copying it manually there's no problem.
[1] http://www.fileformat.info/info/unicode/char/00a0/index.htm
--
/Jacob Carlborg
I have the Git bundle enabled along with the SCM bundles, but when I click the icon to show SCM status, I get a view with my project at the top and (disabled). What have I missed?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
TextMate can display ellipses ('…', a single glyph with three dots, also known as 'horizontal ellipses') correctly when opening files with them, and when they are typed, but will replace them with '‚Ķ' (not including the single quotes) when saving files. When they are opened again '‚Ķ' will displayed in their place.
Happens with UTF-8 encoding, have not tested other encodings.
System information:
OSX El Capitan
Version 10.11 (15A284)
MacBook Pro (17-inch, Mid 2010)
Processor: 2.66 GHz Intel Core i7
Memory: 8 GB 1067 MHz DDR3
Startup Disk: Macintosh HD
Graphics: NVIDIA GeForce GT 330M 512 MB
Im trying to add code folding regular expressions for a templating language
I use
Even if I pare it back to the most basic of examples, I cant seem to get it
working..
{if (true)}
{foo}
{/if}
foldingStartMarker = '^\{if\}';
foldingStopMarker = '^\{\\if\}';
If I omit the closing } from the first line of code...
{if (true)
Then TM does show the code folding marker (odd since the regexp should
require it?), but either way the code still doesn't fold
What am I missing?
Thanks
Is it feasible to put a Cocoa binary in a TMBundle?
I know many have small binaries as needed.
I'm working on a web recorder tool for selenium WebDriver.
Basically to capture navigation and element identifier options and do code generation in Python and Ruby. I'd rather integrate with a TMBundle but I am not sure what the options are to do that well.
Sent from my iPhone
I added support for fenced code blocks to the Markdown bundle as
described in
https://github.com/textmate/markdown.tmbundle/issues/15#issuecomment-183219…
Then I added “meta.embedded_ruby” to the as injection scope selector to
the Ruby grammar.
The result kind of works, but somehow the rule priority seems to get
mixed up (see screenshot).
Any ideas how to fix this?
Thanks,
Stefan.
I have used the Latex Bundle of TextMate on a daily basis for ten years. It is my workhorse and I am grateful for the improvements that this wonderful group has put into it, especially René Schwaiger.
Now I need help. Suddenly, for no apparent reason, I am unable to run “Typeset &View (PDF).” Here is the error log:
This command requires ‘kpsewhich’ which wasn’t found on your system.
The following locations were searched:
• /usr/bin
• /bin
• /usr/sbin
• /sbin
• ~/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin
If ‘kpsewhich’ is installed elsewhere then you need to set PATH in Preferences → Variables to include the folder in which it can be found.
When I run “which kpsewhich” in terminal, it returns
/Library/TeX/texbin/kpsewhich
In Preferences my Path Variable is
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/Library/TeX/texbin
I tried replacing this with
/Library/TeX/texbin
and got this error log after restarting:
This command requires ‘kpsewhich’ which wasn’t found on your system.
The following locations were searched:
• /usr/bin
• /bin
• /usr/sbin
• /sbin
• ~/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin
I tried restarting everything several times along the way.
I installed a fresh version of MaxTex.
I installed a fresh version of TextMate 2.
which kpsewhich returns the same response as before:
/Library/TeX/texbin/kpsewhich
I tried both
PATH and $PATH
My .tex files run as they should on TexShop.
I will be grateful for advice. I could find no other tips online, and apologize if the solution to my problem has been posted.
Best wishes,
Jenny Harrison
Mathematics Department
UC Berkeley
If I select some leading spaces on a line, and hit tab, it just inserts a
new tab character and indents the line including selection, rather than
replacing the selection
Is there a way in TM2 to have the Tab character always replace the current
selection (similar to most other text input)?
Thanks
I just noticed that when editing a an HTML file, TextMate seems to report
the indent level of the tags rather than the column numbers. I have my
indent set to two spaces (soft tabs) and the following code will show 2:2
when the cursor is at
the beginning of the second paragraph tag when it should display 2:3.
<p>
<p>
</p>
</p>
TextMate version 2.0-beta.8
OSX version 10.10.5
I started noticing recently that selecting an AppleScript in various
places (Xcode, Quicksilver, Finder, Path Finder) will hang the
foreground application in question.
Before the hang, I always see garbage (the raw text) in the Quick Look
preview. I’m pretty sure TextMate is attempting to generate the
previews in this case. (AppleScript claims to be `public.source-code`,
and TextMate’s Quick Look generator claims to be able to handle that.)
Can anyone confirm? Is it possible for the Quick Look generator to
ignore AppleScript?
--
Rob McBroom
http://www.skurfer.com/
Hi,
I'm trying to inject a custom grammar to syntax highlight test scripts inlined in python single quoted block strings (i.e.. ''' <script here>''').
This works well:
grammar : source.calvin.embedded
injection selector : string.quoted.single.block.python
definition : { patterns = ( { include = 'source.calvin'; } ); }
but when I add a scopeAttribute in .tm_properties
[ tests/*.py ]
scopeAttributes = 'attr.test.calvin'
in order to prevent the injection from happening everywhere it no longer works.
I was under the impression that the injection selector
string.quoted.single.block.python attr.test.calvin
should do just that, but nothing seems to work (no syntax highlighting).
I've tried adding '&', grouping in () etc. but no luck.
Could anyone share some insight into this?
/Per
Sometimes when I copy and paste, or select a file from templates, I get so many pair of inverted commas in the file like given
below
\documentclass[aps,prl,twocolumn,floatfix,groupedaddress]{revtex4}'
''
'\usepackage{amssymb}'
'\usepackage{amsmath}'
'\usepackage{bm}'
'\usepackage{graphicx}'
'\usepackage{subfigure}'
'\usepackage{dcolumn}'
'\usepackage[colorlinks,citecolor=red,linkcolor=blue,urlcolor=blue]{hyperref}'
''
'\begin{document}'
Is there something wrong in the setting of TextMate?
Best Regards,
Riki
I am getting error in LaTex: Failure running “Typeset & View (PDF)”
/Users/riki/Library/Application Support/TextMate/Managed/Bundles/Bundle
Support.tmbundle/Support/shared/lib/tm/process.rb:121: warning: Insecure world writable dir /Users/riki/Library/Application
Support in PATH, mode 040706 Traceback (most recent call last): File "/Users/riki/Library/Application
Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texmate.py", line 65, in from tmprefs import Preferences File
"/Users/msheets/Library/Application Support/Avian/Bundles/latex.tmbundle/Support/bin/tmprefs.py", line 3, in from __future__
import print_function ImportError: No module named Foundation
Installed Python version:
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
and
Python 3.4.3 |Anaconda 2.3.0 (x86_64)| (default, Mar 6 2015, 12:07:41)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Installed Ruby version:
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
Best Regards,
Riki
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
Hi everybody!
I'm trying to make an enhanced paste-function which evaluates the text
pasted into a blank textmate document, and assigns the document's
language accordingly.
Is there a non-AppleScript way of assigning language? It is very lacking
in text examination, so it would be much less clumsy in, say, bash.
I know I can use this.:
keystroke "h" using {control down, option down, shift down}
keystroke "1"
To set the syntax as HTML by “faking” the keyboard shortcut.
Thanks!
Rasmus
Hiya,
Is it possible for a bundle command to accept a single selection and return multiple selections (or just carets)?
Here’s an example (brackets indicate selection, | is a caret );
Stage 1:
state: …class="|dark-theme"…
action: select "dark-theme"
Stage 2:
state: …class="[dark-theme]"…
action: [Hypothetical caret split command]
Stage 3a:
state: …class="[dark]-[theme]"…
or
Stage 3b:
state: …class="|dark-|theme"…
Then I’d press command T to switch from "dark-theme" to "theme-dark".
Im not sure what the logic would be in the bundle, my use would be served by simply returning the caret at the beginning and end of my selection (then command + w to select the word).
I’m also curious how Filter Through Command’s behavior could be reproduced in a bundle command, where the commands results are distributed to each line.
Thanks everyone!
Graham P Heath
ps: I’ve got some serious love for multiple carets ♥️♥️♥️
This document doesn't quite seem right anymore:
http://blog.macromates.com/2007/file-type-detection-rspec-rails/
I checked my manual bindings and ruby is not in there, yet my RSpec first
line match isn't working.
Does anyone know how to fix this for version 2?
Thanks
--
Tom Smyth
Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change
sassafras.coop *·* @sassafrastech
Resident, Touchstone Cohousing
touchstonecohousing.org
Can't get text mate to work in terminal. Says “mate” command is not found. I created the symbolic link and update .profile and .bash_profile. Both are included. Even rebooted.
Hi,
I wrote a web app in Rails for collecting system statistics from Sparkle, I
figured you might be interested in using it for Textmate since you also use
Sparkle for updates. It's self-hosted, so you need a server and some basic
admin skills.
Here's the project: https://github.com/mackuba/sparkler
And here's what kind of statistics it can generate:
http://sparkle.psionides.eu/feeds/gitifier/statistics (this is data from 4
years back as you can see, so it will take a while for it to look like this
:)
Let me know if you decide to use it and manage to set it up, I'll link to
you from the readme. Also let me know if you run into any problems, I don't
know if those instructions are intuitive enough.
Kuba
Code folding in LaTeX is not doing what I expect. Lets say I have this in my
.tex file:
\begin{document}
\section{}
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
\subsection{}
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
\end{document}
Option + Command + 0 does as expected:
\begin{document}\end{document}
Option + Command + 1 does exactly the same:
\begin{document}\end{document}
But what I expected was
\begin{document}
\section{}
\end{document}
Option + Command + 2 does as expected:
\begin{document}
\section{}
\subsection{}
\end{document}
So, I expected:
\begin{document} to be all levels
\section{} to be level 1
\subsection{} to be level 2
Is there a way of setting cold folding to do what I expected?
Ross Ahmed
Ecologist
07875533906
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>
In my .tex file, I have 60 lines of code between the start of the file and
\begin{document}. Most of these lines are filled with \usepackage{}. Is
there a way to hide this part of the .tex file in TextMate, by for example
using code folding? If not, can these 60 lines be sourced from a different
.tex file?
Ross Ahmed
Ecologist
07875533906
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>
Dear All,
the subversion bundle (and all the ruby bundles) are broken since I update to yosemite few weeks ago.
I have been trying to fix the problem but I had little luck so far.
For what I understand is a problem related with the wrong default ruby version in yosemite (2.0 instead of the bundle supported 1.8).
A typical error that I get is something like, e.g. for svn status:
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require': /Users/umbe/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/shelltokenize.rb:74: invalid multibyte escape: /[^\w_\-\+=\/\x7F-\xFF]/
[...]
For what I understand each bundle should run ruby thought the ruby18 script which should install the the 1.8 version int he bundle support if it can’t find ii installed on the system. Unfortunately this seems not to be the case.
I have tried a bunch of things but without much success. I have installed ruby 1.8.7 with rvm and defined the TM_RUBY variable to point at it but nothing happened (later I realized that TM_RUBY is not meant for bundles).
I have reset the textmate 2 prefereces chance and variables in the hope to stimulate ruby18 to do its job but with no success.
Do you have any suggestion on how to fix is or at least help me in the debug process (I find a bit complicated to figure what a bundle is doing)?
Thanks
Umberto
Is there a memory leak in TextMate? I was running Activity Monitor and saw a memory usage spike. The application also became unresponsive, so I sampled it before doing a force quit. Here's what it came back with:
Not sure if it's relevant, but I was using a custom assembly language bundle at the time. The odd thing is I don't think TextMate was even the active application at the time the memory spiked. Very weird.
Ted
I’m trying to create a command using AppleScript to open CodeKit and select the CodeKit project associated with the current TextMate 2 project.
CodeKit’s docs want this:
tell application "CodeKit" to select project containing path "~/clients/aProject/app.scss”
So I wrote this:
#!/bin/bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
osascript <<EOF
tell application "CodeKit" to select project containing path "$TM_PROJECT_DIRECTORY"
EOF
That launches CodeKit but does not select the project; CodeKit opens to the last used project, not $TM_PROJECT_DIRECTORY.
I’ve tried both “TM_PROJECT_DIRECTORY” and "’$TM_PROJECT_DIRECTORY’”.
What did I get wrong?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
Is there a way to swap the include* / exclude* property order in TM2?
I have a project that is comprised of shared code used by many different
projects. Every time another developer adds files and directories to their
area of the source tree I have to add another exclude value in my
.tm_properties. Ideally I would like to exclude everything and only
include the directories and files that are specific to what I'm working on.
Reading the TM docs, it appears that the order is first to parse the
"include*" (which defaults to everything) then parse the "exclude*."
Because of this I can't figure how to, by default, exclude everything and
only include what I'm interested in.
Thanks for any help.
-- DV
--
View this message in context: http://textmate.1073791.n5.nabble.com/exclude-include-in-tm-properties-tp29…
Sent from the textmate users mailing list archive at Nabble.com.
I'm trying to match the following code in the D language grammar:
static if (true) {}
void foo ()
{
static if (true) {}
}
The first static-if is correctly recognized as
"keyword.control.conditional.d". But the static-if inside "foo" is
recognized as a method "meta.definition.method.d". I managed to get the
top level static-if correctly recognized by moving the pattern for the
static-if before the pattern for a method. But I don't understand why
that doesn't work inside "foo".
The full scope of the static-if inside "foo" is:
source.d
meta.block.d
meta.definition.method.d
entity.name.function.d
The language grammar is available here [1]. Are the patterns evaluated
in the wrong order or something like that?
Another thing I noticed is the "static if" on the top level seems to be
recognized as a single word. When I use the hot keys for moving the
cursor a word it jumps from the start of "static" to the end of "if",
instead of to the end of "static".
[1]
https://github.com/jacob-carlborg/d.tmbundle/blob/d2/Syntaxes/D.tmLanguage#…
--
/Jacob Carlborg
I'm trying to build TextMate and suddenly got this error:
[235/1222] Compile ‘Frameworks/crash/src/info.cc’…
FAILED: xcrun clang++ -include build/Shared/PCH/prelude.cc -c -pipe
-fPIC -gdwarf-2 -m64 -mmacosx-version-min=10.7 -funsigned-char
-D'NULL_STR="\uFFFF"' -DREST_API='"https://api.textmate.org"' -Wall
-Wwrite-strings -Wformat -Winit-self -Wmissing-include-dirs
-Wno-parentheses -Wno-sign-compare -Wno-switch -IShared/include
-fcolor-diagnostics -DNDEBUG -Os -fvisibility=hidden -std=c++1y
-stdlib=libc++ -I"/usr/local/include" -o
build/Frameworks/crash/src/info.o -MMD -MF
build/Frameworks/crash/src/info.o.d -Ibuild/include
Frameworks/crash/src/info.cc
Frameworks/crash/src/info.cc:61:3: error: thread-local storage is not
supported for the current target
thread_local stack_t stack;
I have successfully compiled TextMate before and have not seen this
error. info.cc has not been updated since April last year, I'm pretty
certain I've compiled TextMate after that. Could this be related to my
recent upgrade to OS X 10.10.3?
I have Xcode Version 6.3 (6D570) and Clang:
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
BTW, both "__thread" and "_Thread_local" works fine.
--
/Jacob Carlborg
Multiple find-and-replace with Regexes, stepping through each one by one, the last one can be overstepped and insert the replacement tokens themselves (such as $1 $3)
Thanks,
John Joyce
Hi all,
I noticed code folding in TM2 in Ruby is slightly broken with multiline comments (using the =begin … =end construct)
Newlines within the comment introduce a new folding start.
Thanks,
John Joyce
When using ^W to select the next instance of a word, is there anyway to
step backwards if you go too far? In Sublime I think you just add a shift
to the key combo and it does this.
It sucks to be well into a nice fat multiple selection only to go a bit too
far and have to start over again.
Thoughts?
PS. I love TM!
--
Tom Smyth
Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change
sassafras.coop *·* @sassafrastech
Resident, Touchstone Cohousing
touchstonecohousing.org
I am trying to follow these instructions and I do not understand how to
create a new command. Can someone please explain how this is done?
https://coderwall.com/p/j7qqsa/minify-your-css-inside-of-textmate
In your Bundles menu, go to Edit Bundles and select your favorite CSS Bundle
(I am personally a huge proponent of mCss
<http://minimaldesign.net/downloads/tools/textmate-css-bundle> ). Add a new
Command, and enter make the command contents the following code:
# Create the minified filename
NEWFILE=${TM_FILENAME%\.css}'.min.css'
# Minify into that file
curl -X POST -s --data-urlencode "input@${TM_FILENAME}" \
http://www.cssminifier.com/raw > $NEWFILE
# And open it
mate $NEWFILE
You can make your key equivalent anything you'd like, I set mine to Cmd +
Shift + R. Once you have done this, give it a whirl. You should see that
your styles.css generates a styles.min.css in the same directory, as well as
opens it in Textmate.
To note: if you don't have the Textmate command line utility installed,
simply delete the last line of this command to stop seeing errors.
Hello
The title says it all. I am running Textmate 2 (just reinstalled after
deleting ~/Library/Application Support/Avian, ~/Library/Application
Support/Textmate folders) on the latest version of Yosemite and get the
above error using the Latex bundle. The message then reads :
Command returned status code 1.
Upon editing the command, I get
---snip---
#!/usr/bin/env ruby18
# coding: utf-8
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/process"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/htmloutput"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"
# To enable the typesetting of unsaved documents, you must change the
“Save” setting of
# this command to “Current File” and add the variable TM_LATEX_AUTOSAVE
to TextMate's
# Shell Variables preferences. Be warned that your document must be
encoded as UTF-8 if
# you excercise this option — becauseTextMate.save_current_document
cannot know the file
# encoding you prefer.
TextMate.save_current_document unless ENV["TM_LATEX_AUTOSAVE"].nil?
texmate = ENV["TM_BUNDLE_SUPPORT"] + "/bin/texmate.py"
engine_version = TextMate::Process.run(texmate, "version")
TextMate::HTMLOutput.show(:title => "Typesetting
“#{ENV["TM_DISPLAYNAME"] || File.basename(ENV["TM_FILEPATH"])}”…",
:sub_title => engine_version) do |io|
TextMate::Process.run(texmate, 'latex', :interactive_input => false)
do |line|
io << line
end
end
::Process.exit($?.exitstatus || 0) # exitstatus is nil if our process is
prematurely terminated (SIGINT)
-- snip --
Unfortunately, I am not very good with shell commands.
Can anyone offer help ?
Christof
Hello!
Python3 is on track to getting type hints through annotations in functions,
which TextMate doesn't recognize.
I've tried to modify the current regex to recognize this new piece of
notation but I'm not that well versed enough in regex. Maybe someone more
experienced with it could do it?
Here are the references for it:
- https://www.python.org/dev/peps/pep-3107/
- https://www.python.org/dev/peps/pep-0484/
Cheers, Leandro
Hi,
Is there a way to desactivate the automatic replacement of some characters to html entities, ie when I type option-space in an html or markdown doc, it is automaticaly replaced with
I'd like to keep the character I typed as is as it make the text more readable (I mainly have international text with lot of non ascii chars) and most html entities are not necessary in html5.
Regards,
Joël
Has anyone tried integrating the WakaTime (https://wakatime.com) time
tracking service into TextMate? I'd love to be able to track my time
using this, but there's no"official" plugin for it for TexMate.
--
Keith Solomon - ksolomon(a)gmail.com
My Blog - http://keithsolomon.net/
I am experiencing an erratic behaviour with the TM2/Latex.tmbundle.
It seems that TM2 is recording the TM_LATEX_MASTER variable between
sessions.
I was working in a folder foofoolder1 where in the .tm_properties I had
defined TM_LATEX_MASTER = foo1.tex
Then I closed TM2 and created another file, foo2.tex, in another directory
foofolder2 unrelated to foofolder1. In this new folder, I didn't define
TM_LATEX_MASTER. For my surprise, where I pressed Command + R, TM2 was
invoking foo1.tex.
So it was using the TM_LATEX_MASTER defined for the other folder in this new
folder.
How to fix it?
--
View this message in context: http://textmate.1073791.n5.nabble.com/TM-LATEX-MASTER-tp29089.html
Sent from the textmate users mailing list archive at Nabble.com.
hello,
I am new here. I have noticed a problem in the folding mechanism of code
when using the LaTeX-bundle in textmate (version: TextMate version
2.0-beta.7.1 ). I use textmate only for writing LaTeX documents. so, I
have now idea if this is caused by textmate or specifically by the
latex-bundle.
most section{} or subsection{} commands are "foldable", i.e. the little
triangle symbol appears next to the line number. however, the triangle
disappears when I include another command in the same line. this happens
for example, when the section heading contains italics.
section{heading of this section} --> this will produce foldable code.
section{heading of textit{this} section} --> this will fail to produce
foldable code.
I would like to ask if this is a known problem and if anyone has a
solution to this?
thank you in advance,
christian
If I run the command Bundles > LaTeX > Jump to Current Line in Viewer, I get
a dialogue box that contains this error:
Failure running ³Jump to Current Line in Viewer².
usage: texMate.py sync [-h] [filepath]
texMate.py sync: error: argument filepath: No such file or directory: 1
What causing this error and how can I solve it?
Ross Ahmed
Ecologist
07875533906
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>
In my .tex file, I have section titles and labels like this:
\section{My section title}
\label{sec:my_section_title}
I can then cross-reference this section in my text like this:
Lorem ipsum dolor sit amet \ref{my_section_title}
I'm frequently changing my section titles to something very different different which forces me to change my labels and cross references. This can becomes tedious when my cross references are scattered through a long document.
What is the best way of changing labels in which the cross references are scattered through long development? Is there any way to automate the process?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
Hi TextMaters,
I have a very superficial knowledge of perl, so I wonder if someone can
help.
Setup: before I compile my LaTeX document, I need to run a shell script
(using sed) to find/replace certain strings. [There is a long story for
why I need to do this, and why its not easily avoidable.]
Possible solution: I was wondering if I can insert something in the
latex_watch.pl script that would run this shell script, without causing
latex_watch to go into an infinite loop (since the shell script changes
the underlying LaTeX file/s).
I've tried inserting the relevant code in several locations, but I can't
seem to avoid the loop. That's not surprising, since I don't really know
perl. Does anyone know if there is easy way to
1) modify latex_watch.pl so it executes a shell script that modifies the
underlying LaTeX file without going in to a loop?
or
2) cause the shell script to run on the file whenever the file changes
by some other means?
Thanks!
Zvi
I have a request regarding citations based on current word or Ref-TeX style: is it possible to make them non-case sensitive?
When I search by author's name, which is most of the time, I know that the first letter of the word needs to be in uppercase and so I type it that way. But if I'm searching by title words, say for a word like "apocalypse", I am not sure I should type a truncated "Apocal" or "apocal". My bib files contain titles with first letters in upper- and lowercase. It would be great to be able to do a case insensitive search.
--Gildas
I have this piece of language grammar to match a struct in D :
begin = '(?x)^\s*
((?:\b(public|private|protected|static|final|synchronized|abstract|export|shared)\b\s*)*)
# modifier
(struct)\s+
(\w+)\s* # identifier
(?:\(\s*([^\)]+)\s*\)|)\s* # Template type
(if\s*\(\s*([^\)]+)\s*\)|)?\s* # Template constraint
';
end = '(?={|;)';
It will match this code, as an example:
struct Foo(A) if (true)
{
}
The problem is if I put the "if" on a new line it won't match. How can I
make the rule match across several lines?
--
/Jacob Carlborg
I've tried 'latex and view' again and it does now start up faster than I remember!
Thanks for the great work,
Geoff
>> On 24 Mar 2015, at 13:32 , Geoff Vallis <gkvallis(a)gmail.com> wrote:
>>
>> Hi Ren,
>>
>> Your fix did the trick, thanks very much.
>>
>> The reasons I don't use 'typeset and view' are twofold. The main one is just that it is a bit slow - I have to wait almost five seconds before it actually starts to typeset, which may not seem very long but when I am 'debugging' it is a little frustrating. Using a terminal window the typesetting starts instantly.
>
> Commit 39b09967 [1] should improve the startup time of `texmate` significantly.
>
> [1]: https://github.com/textmate/latex.tmbundle/commit/39b09967
>
> I get an overhead of less than 0.3s if I use `texmate` on a minimal file. The translation of the minimal file inside Terminal using the command `time pdflatex tmp.tex` takes 0.55s. The following command ? basically simulating a run of ?Typeset & View (PDF)? ? inside TextMate takes about 0.79s:
>
> ?
> #!/usr/bin/env bash
>
> BUNDLE_DIR="$HOME/Library/Application Support/Avian/Bundles/LaTeX.tmbundle"
> TM_BUNDLE_DIR="$HOME/Library/Application Support/TextMate/Managed/Bundles"
>
> export TM_FILEPATH="tmp.tex"
> export TM_SUPPORT_PATH="$TM_BUNDLE_DIR/Bundle Support.tmbundle/Support/shared"
> export TM_BUNDLE_SUPPORT="$BUNDLE_DIR/Support"
> export PATH="$BUNDLE_DIR/Support/bin":$PATH
> export TM_SELECTION='1:1'
>
> texmate.py -suppressview latex -latexmk no -engine pdflatex
> ?
>
> tmp.tex:
> ?
> \documentclass{article}
>
> \begin{document}
> Bla
> \end{document}
> ?
>
> Could you maybe test the above example and send in your results. If it takes multiples seconds before `texmate` starts typesetting, then maybe your local copy of the bundle does not contain the changes done in commit 5074427f [2]?
>
> [2]: https://github.com/textmate/latex.tmbundle/commit/5074427f
>
>> The second reason is that I can go back and forth between xelatex and pdflatex easily by setting up two scripts with different keyboard shortcuts, which I find quite convenient.
>
> You can change the typesetting engine used by ?Typeset & View (PDF)? with the following commands:
>
> defaults write com.macromates.textmate.preview latexEngine xelatex
> defaults write com.macromates.textmate.preview latexEngine pdflatex
>
>> I know there are some advantages to 'typeset and view' and if it were a bit quicker, like the equivalent command in TexShop which is quite fast, I would use it.
>
> Hopefully the latest changes help.
>
>> Thanks again
>> Geoff
>
> Kind regards,
> Ren?
>
Dear René,
The new citation command based on current word or Ref-TeX style is working well. I use both and wonder how to tailor them for my use, now that I realized that I had to throw out my ~/Library/Application\ Support/Avian previous tweakings of the two commands (they called LaTeXUtils.rb):
1. Citation based on current word gives results such as: \cite{Bellah:1996kx}. I would like to get \cite[]{Bellah:1996kx}, with the cursor in the square brackets so I can enter pages, and then tab the cursor after the citation.
2. My own use of the tweaked Citation Ref-TeX style gave me the choice of \cite[]{}, \textcite[]{}, \footcite[]{}, \autocite[]{} formats. I don't use any other cite formats and would rather have this small list for my case.
How do I adapt the new commands to my situation?
--Gildas
Hello,
I have just installed the latest security update on my Mac (10.10.2) and some commands in my latex bundle were broken by it. For example, I have a script (below) that opens a terminal window and typesets the master file, but after the security update the command no longer tries to typeset the master file, but the subfile, and hence typesetting fails. I am sure is is the Mac OS security update that led to the failure, because I tried on two Macs with the same behaviour.
Thanks for any help you may offer
Geoff
--------
#!/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/LaTeXUtils.rb"
master = LaTeX.master(ENV['TM_LATEX_MASTER'] || ENV['TM_FILEPATH'])
puts master
RUBY`
FILE=${TM_LATEX_MASTER:-$TM_FILEPATH}
cd ${TM_DIRECTORY}
open -a iterm
/Users/gkv/scripts/iterm "time /usr/texbin/pdflatex -synctex=1 ${FILE%.tex}"
--------
The Watch Document command (Cmd-Ctrl-W) in the LaTeX bundle works beautifully either for a single TeX document or for a series of documents if started from the master file. Is it possible to tweak Watch Document so it can be called from any of these sub-files that are linked to the master?
--Gildas
As useful as the escape key is, it would be nice to have visual feedback for auto completion. What would it take to build this? I think Xcode does it best, but I have seen a few fledgeling editors like Textastic and Chocolat implement basic auto complete quite well in the early stages.
Thanks
-Sam
(I am sending this again as plain text email. Sorry about the earlier HTML email.)
This is all the rage these days: http://usetakana.com
It's a relatively new tool from mid-2014 it seems.
Live SCSS (SASS) editing with on the fly updates, and it's FAST since it happens via JavaScript in the browser and a server running in the background.
Can this be implemented in TM2?
It's currently only for Sublime Text. Problem is, I'm not a big fan of that editor. I'm forced to use it for this purpose only. If i could do this same thing in TM2 life would become fun again.
Hi,
Further to Andrew Jaffe’s message a couple of weeks ago, I’ve noticed since TM2 that⇧⌘A doesn’t work as well for Subversion as it did in TM1, or at least that Subversion Update doesn’t seem to work as expected if you⇧⌘A before it. In TM1 ⇧⌘A followed by ⌘Y Subversion Update would perform a full project update from the root directory. In TM2 it reports success, but never updates anything.
In fact you have to select the project root directory, which I do by click on the project folder (top-left) and selecting the parent folder, followed by clicking on the project folder again to select it from the list. Then ⌘Y Update works fine.
Am I being stupid or should ⇧⌘A,
⌘Y Update work as expected?
Cheers,
Jonathan Monahan
On 8 Mar 2015, at 19:42, Julien Hugonnier wrote:
> Hi: Just a quick question: I have now updated to T2 and found that
> whatever I do the file browser does not show any files! Has someone
> also encountered that problem and maybe found a solution.
>Most times this comes up, it is related to having edited the
>include/exclude patterns.
>A quick test is to move the focus to the file browser, then use ⌥⌘I
>(View → Show Invisible Files), this disables the custom filtering of
>item, and if it makes your files show up, then it’s a configuration
>problem.
>These patterns can either be set via .tm_properties or in the
>Preferences → Project → Exclude/Include Files Matching text fields.
Thanks for your answer!
Doing this indeed shows all the files in the browser but the settings I
have are default (I modified neither the preferences nor the
tm_properties file) so I am not exactly sure what to do for the browser
to work without having to this manipulation each time I start TM2. Any
help greatly appreciated.
I have the following python script:
import os
os.system("which python")
When I execute with command + R I get: /usr/bin/python
On the other hand, when I execute with command + shift + R I get:
/opt/local/bin/python
I would like to get the second output with command + R. How can I do that?
S.V.
--
View this message in context: http://textmate.1073791.n5.nabble.com/Python-Command-R-tp29040.html
Sent from the textmate users mailing list archive at Nabble.com.
A friend of mine started getting some weird bug not so long ago.
Within the Find dialog text boxes at some point stop rendering carets and stop responding visually to keyboard input.
But every time you click the “Find” button content within those text boxes magically updates.
The only way to fix this is to restart TextMate. Closing/reopening Find dialog doesn’t help.
He made a video that shows this behavior https://www.dropbox.com/s/0hkhkrcqtzyi6ho/tm.search.bug.mov?dl=0
OS X 10.9
TextMate version 2.0-beta.6.8
I'm trying to build latest TextMate in master. Previously I was able to
build TextMate but not anymore.
First running "./configure" results in this error:
ninja: error: build.ninja:8: loading
'/Users/jacob/build/TextMate/build.ninja': No such file or directory
include $builddir/build.ninja
^ near here
It's a minor error since it works anyway. Then when running "ninja" I
get this error:
$ ninja
[6/1174] Generate test
‘/Users/jacob/build/TextMate/Frameworks/text/test_text.cc’…
FAILED: bin/gen_test Frameworks/text/tests/t_case.cc
Frameworks/text/tests/t_ctype.cc Frameworks/text/tests/t_decode.cc
Frameworks/text/tests/t_encode.cc Frameworks/text/tests/t_format.cc
Frameworks/text/tests/t_indent.cc Frameworks/text/tests/t_ranker.cc
Frameworks/text/tests/t_split.cc Frameworks/text/tests/t_tokenize.cc
Frameworks/text/tests/t_trim.cc Frameworks/text/tests/t_utf8.cc
Frameworks/text/tests/t_wrap.cc >
/Users/jacob/build/TextMate/Frameworks/text/test_text.cc~ && mv
/Users/jacob/build/TextMate/Frameworks/text/test_text.cc~
/Users/jacob/build/TextMate/Frameworks/text/test_text.cc
bin/gen_test:14:in `block (2 levels) in <main>': invalid byte sequence
in US-ASCII (ArgumentError)
from bin/gen_test:13:in `foreach'
from bin/gen_test:13:in `each_line'
from bin/gen_test:13:in `block in <main>'
from bin/gen_test:8:in `each'
from bin/gen_test:8:in `<main>'
[6/1174] Compile ‘Shared/PCH/prelude.mm’…
ninja: build stopped: subcommand failed.
Adding a magic encoding comment to "bin/gen_test" does not help.
--
/Jacob Carlborg
Hi: Just a quick question: I have now updated to T2 and found that
whatever I do the file browser does not show any files! Has someone also
encountered that problem and maybe found a solution. Reinstalling does
not seem to solve it. Thanks in advance, ---Julien.
Hi,
In order to get the current version control software (e.g., svn, git) to
act on the entire directory, it seems that I need to select no files or
dirs in the browser. With a small number of files there, this is easy --
just click below the bottom one. However, I have many projects with lots
of files, and this seems to be impossible. ("Select all" doesn't quite
work, as trying "commit" in this case tries to commit all files, even
those not under control of the VCS.)
Surely this is trivial and I'm missing something.
Andrew
I’ve installed a Rubocop bundle that lints the code and adds flags to the gutter.
If you click one of such flags you get a tooltip with a description.
Is there a way to trigger this tooltip without using the mouse?
Screenshot: https://cloudup.com/cVwiwQigyTu
Bundle: https://github.com/fazibear/Rubocop.tmbundle
Does anyone know of a style formatting plugin for TextMate? I'd like an
automated way to configure TextMate for Google Style
<https://code.google.com/p/google-styleguide/>.
--
Cheers,
Andrew Pennebaker
Hi All,
Long time textmate user, but at some point in the last two months I've lost
the ability to compile latex in pdflatex, which causes problems when I try
and run \includegraphics{something.pdf}. (I get a "Cannot determine size of
graphic (No BoundingBox)" error).
I've set default engine to pdflatex in preferences, but the button on the
typesetting page is always "latex", and the .log file starts with:
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded
format=latex 2014.5.25) 26 FEB 2015 23:38
(note the preloaded format is latex, not pdflatex).
If I go to preferences > Bundles it shows the latex bundle was updated five
days ago.
Everything works fine if I compile in TeXShop.
Suggestions?
I am trying to copy the content of a FileMaker webviewer and paste it into
Textmate so I can save it as an HTML file. The problem is that (OSX 10.8.5)
will only let me paste from my clipboard as (simple text, or rich Text) but
not as HTML.
It does the same thing if I try to copy and paste from Safari, FireFox or
Chrome.
Is there a way to do this in OSX?
Save the key elements of the preferences window state between uses and
TextMate launches:
Window location and size
Pane size
Active pane
Selected item within a pane (where appropriate)
Can anyone think of others?
--
View this message in context: http://textmate.1073791.n5.nabble.com/Feature-Request-Persistent-Preference…
Sent from the textmate users mailing list archive at Nabble.com.
Tao,
You might look into the capabilities of ghostscript. It should be installed with your LaTeX install (MacTeX or equivalent), but if not, you can install it using Homebrew via brew install gs. Specifically, ghostscript should install a utility called ps2pdf that (IIRC) produces clean PDF files from an input EPS.
FYI, the following MWE worked on my system using TextMate 2.0-beta6.8. Note that the order in which graphicx and epstopdf are loaded is important.
\documentclass{article}
\usepackage{graphicx,epstopdf}
\begin{document}
A sample figure:
\begin{figure}[h]
\centering
\includegraphics[width=.9\textwidth]{Figures/sample.eps}
\caption{caption}
\label{fig:sample}
\end{figure}
\end{document}
–
Dustin Wheeler
mskblackbelt(a)me.com
On February 18, 2015 at 07:00:10, textmate-request(a)lists.macromates.com (textmate-request(a)lists.macromates.com) wrote:
Question about converting eps files to pdf files on the
fly. (Tao Zha)
Hi:
The latest TextMate ( version 2.0-beta.6.8) no longer convert eps files to pdf files automatically when I use pdflatex. I got the error message like:
------------------------
Document Class: amsart 2009/07/02 v2.20.1
!!! Error: Writing to gs failed, signal 5
Latex Error: ./tableindustry.tex:199 Package pdftex.def Error: File `Figures/outfigpaper_prices-eps-converted-to.pdf' not found.
• Including: Figures/outfigpaper_ratios2GDP-eps-converted-to.pdf
————————————
In my preamble of my Latex file, I specify
\usepackage{epstopdf}
The previous TextMate version works for me by automatically creating the file "outfigpaper_ratios2GDP-eps-converted-to.pdf", but the latest version gives me the above error message.
Can anyone help me?
Thank you very much,
Tao Zha
Hi all,
Are there any plans to add code fold guides to TextMate 2 (as shown here:
http://darwinsantos.com/sublime_screen.png)?
I know a workaround to get a similar effect is to use "Show Invisible
Characters". Though the problem with this is that a lot of files written by
others lack proper tab indentation.
Any other workarounds to get a similar effect?
Many thanks,
S.P.
When is it expected that TextMate 2 will untangle from TextMate 1 in the
Application Support folder? Right now we have the Avian folder along with
the TextMate folder and as best I can tell TextMate 2 uses some things from
both folders. That's confusing and messy.
Is there anyone left using TextMate 1 *and* TextMate 2?
Bob
--
View this message in context: http://textmate.1073791.n5.nabble.com/Consolidation-of-TextMate-Application…
Sent from the textmate users mailing list archive at Nabble.com.
Hi there,
I am having some serious problem with Textmate 2 in Mac Yosemite. I am typing my thesis in Latex. All of a sudden Textmate 2 stopped showing any error for undefined commands. Let me give you an example, lets say I need to write $\alpha$, but mistakenly I typed $\apha$ in the .tex file. When I compile it with Textmate, it does not show any error as in `Undefined Control Sequence’, it says 0 Error in the log window and just skips the part of $\apha$ in the pdf. This is a very serious problem for me as I am typing my thesis I am likely to make many such typing mistakes and if these goes undetected in the compilation then that’s a huge problem for me! Could you please tell me how to solve this problem? This thing didn’t happen before, I have been using Textmate 2 in Yosemite for around 6 moths now without any problem until today. Following are the sample codes I used to recreate the problem:
\documentclass[12pt]{amsart}
\usepackage{amssymb, amsmath}
\date{}
\begin{document}
\title{Error Testing}
\maketitle
I want to write $\alpha$ but mistakenly if I write $\apha$ and complie it with Textmate $2$, on the log window it does not show any error as `Undefined control sequence' and on the PDF it just skips the part where it has $\apha$.
$\slpha$ $\alphabeta$
\end{document}
Thanks,
Omprokash Das
Hello,
I was using Textmate 2.0 beta 6.8, and suddenly, I received this error when
I invoked latex tidy:
Can't locate YAML/Tiny.pm in @INC (you may need to install the YAML::Tiny
module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level
/Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level
/Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2
/System/Library/Perl/5.18/darwin-thread-multi-2level
/System/Library/Perl/5.18
/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.18 .) at /usr/texbin/latexindent line 20.
BEGIN failed--compilation aborted at /usr/texbin/latexindent line 20.
I use tidy often, and it usually works. I am sure I used it earlier today
without incident.
Further, I also suddenly received the error "Command returned status code
1." for Typeset and view (PDF) when I compiled a latex file. The file uses
the mtpro2 fonts, which, when disabled, allowed the file to compile again,
but this is the first time this has happened. I did compile the file with
the fonts enabled earlier today.
Thank you for any help.
Best wishes,
Anthony Pulido
Are there plans to make TextMate’s “chrome” (file pane, tabs, etc.) theme-able? I’d like the fonts in the file pane to be smaller and the background to be darker.
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
I’m new to TextMate 2 grammar definitions and am trying to add a Markdown regex to identify a Markdown fenced code block like this one:
```
Vagrant.configure("2") do |config|
config.vm.box = "scotch/box"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.hostname = "scotchbox"
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
end
```
I built this regex:
{ name = 'markup.raw.block.markdown';
begin = '(^|\G)([`]{3})';
end = '(^|\G)(^[`]{3})';
},
Which hits the starting ``` but misses the ending one. Probably because it thinks the second one is the start of a new code block rather than the end of the last one.
TextMate tangles me up some because it looks at just one line at a time for regex matches. Looked at it that way, each of the ```s is exactly the same!
What would the proper regex be?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
I have Panic Sans (nearly the same as Menlo) picked as my display font. Everything in the editor uses that font. Except markup.raw.block.markdown!
I didn’t do it, or at least I don’t know that I did. What else in my bundles, configuration, or defaults could be doing that?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
I’d like a file menu command to revert a file to its previously saved state, discarding all current changes.
Or is that already somewhere that I missed?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
I have a custom Markdown grammar that I inject into the official Markdown grammar with an injection selector of L:text.html.markdown and it works fine. That custom grammar defines the starting content of a markdown file between -{3} and -{3} as YAML.
I have a custom YAML grammar that I inject into the official YAML grammar with an injection selector of L:source.yaml and it also works fine. That custom grammar defines runs of entity.name.value.yaml.
But my custom YAML injection does not work in Markdown. I wanted my injected custom YAML to be injected into Markdown, but it’s not. I guess injecting into YAML is not picked up when YAML is injected into Markdown. :(
Is that how it is expected to work?
Is there another way to get injections to work on top of injections like this:
Custom YAML -> YAML -> Markdown
Or do I have to fork the YAML grammar?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
My .tm_properties file has this line:
excludeDirectories = "{$excludeDirectories,assets,bin,images,logs,node_modules,cache}”
and it works. Too well.
Not only does it exclude projectroot/images (which is what I wanted), but it excludes projectroot/user/pages/images, too.
How do I restrict excludeDirectories to only a top level folder?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
I have a .tm_properties file in the root of my project folder that contains these lines:
excludeInFolderSearch = "{$excludeInFolderSearch,assets,bin,cache,images,logs,node_modules, config.codekit, composer.lock}"
excludeInFileChooser = "{$exclude,$excludeInFolderSearch}”
That doesn’t hide the folders logs, cache, etc. from the file pane.
Do I have the syntax wrong?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
I have ~/Library/Application Support/TextMate synced between two computers
via Dropbox (Mackup). Today, when I launched 2.0-beta 6.8 for the first
time, com.macromates.TextMate.preview segfaults, and does so for every
subsequent launch.
Console shows this prior to the crash:
TextMate[11231]: CoreData could not fulfill a fault for '0xff880002b
<x-coredata://47E84A6D-2744-440D-ABA2-CE0276F6DD6C/PasteboardEntry/p16354>'
When I remove Library/Application Support/TextMate/ClipboardHistory.db*, it
can start again.
-MinRK
I use the app Oyster on Mac to edit and debug regexs. It works nicely, but doesn’t properly predict what TextMate will do with a regex. Something that works in Oyster, does not in TextMate.
Has anyone using Mac found a regex editor that predicts TextMate?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com <http://www.bobrockefeller.com/>
I’m attempting to match the leading - characters in a Markdown list such as this:
---
What were the key things that drove me to make a switch?
- No Database -- you
- Tremendous Support -- the
- Sane Folder Structure -- everything
- Rapid Development -- there
- Blog Post Folders -- granted
- Asset Pipeline -- Grav
- Twig — yes
—
The regex that isn’t working looks like this:
{ name = 'text.html.markdown.list';
match = '(?<=\n)-(?= )|(?<!.)-(?= )';
},
What did I get wrong?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com <http://www.bobrockefeller.com/>
I just came across this because I have script called 'crypt'.
The Avian bundle has command with a scope selector
'attr.rev-path.crypt' which seems to trigger on any file called
'crypt' and prompts me to enter a password so that the file can be
encrypted.
I can easily disable this, but was just curious as to why it is there
in the first place.
Now we are in beta phase, I’ve stumbled a couple of times recently having multiple cursors and having commands fail, as this is not supported yet.
Not sure if this is tricky or not to enable.. I could see it could be, if a command does things that step on what the other “copies” are trying to do. Perhaps a “multiple-selection safe” button in the snippet or command to enable cases where the author thinks it should be as straight-forward as typing into a multiple selection (like, for instance, tag completion) would get this feature off the ground?
t
Is there any documentation of changes needed to convert 1.5 bundles to work with 2.0? I dragged the 1.5 bundle to TextMate 2 and it asks if I want to install it. Click OK and nothing seems to happen. The bundle is not installed and no errors on the screen or in the log.
Thanks,
John DeSoi, Ph.D.
Continue works on relaunch of TM here. And then I selected check on next relaunch and it went from, I think, two upgrades behind to beta 8. No problem her. On rMBP with up to date OS X.
Good luck.
Greg
> On Feb 4, 2015, at 4:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Date: Tue, 3 Feb 2015 18:34:09 -0800
> From: Matt Neuburg
> Subject: [TxMt] TextMate prompts for nonexistent update, interface has
> gone nutty
>
> I am getting a dialog asking me to update TextMate, but when I check for updates, there are none:
>
> But that's not the worst part. I click Continue, and the interface has gone crazy: the gutter is suddenly black, and it isn't using my preferred font any more. It's as if all my preferences had been overthrown. m.
Timfong88(a)gmail.com
Sent from phone
On Tue, Feb 3, 2015 at 6:39 PM -0800, <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. TextMate prompts for nonexistent update, interface has gone
nutty (Matt Neuburg)
----------------------------------------------------------------------
Message: 1
Date: Tue, 3 Feb 2015 18:34:09 -0800
From: Matt Neuburg
To: TextMate users
Subject: [TxMt] TextMate prompts for nonexistent update, interface has
gone nutty
Message-ID: <56DB986A-328A-487E-8948-E38DA272DE8D(a)tidbits.com>
Content-Type: text/plain; charset="us-ascii"
I am getting a dialog asking me to update TextMate, but when I check for updates, there are none:
But that's not the worst part. I click Continue, and the interface has gone crazy: the gutter is suddenly black, and it isn't using my preferred font any more. It's as if all my preferences had been overthrown. m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 8! http://shop.oreilly.com/product/0636920034261.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
Hello,
I am super new to posting to lists in general, so please excuse any
breach of etiquette.
I love TextMate, and have been a faithful user since way back. It
lacks for nothing, as far as I'm concerned, but I do have one
question.
Currently, I am using the Text bundle to trim trailing spaces on save.
The settings are like this:
Semantic Class: callback.document.will-save
Save: Nothing
Input: Document
Format: Text
Output: Replace Document
Format: Text
Caret Placement: Heuristic
This works beautifully. The only issue I have is that no matter where
I am in the document, after save my cursor (caret) is placed at the
very end of the document, and the document is scrolled to that point.
In a longer file, with frequent saves, I have to scroll back and find
my place every time.
I tried different options for Caret Placement and for Output (in the
bundle), but the result remains the same.
My question is twofold: is there something else I could be doing, and
also I'm curious if there are any plans to change this behavior (or
make trimming a built-in option, so to speak), to where the view
doesn't scroll? Seems like this is a common option to want to have.
Thank you!
- g
Hi,
I've noticed that selecting enclosing typing pairs is broken for HTML when
an open tag spans several lines. ie:
<div>*
<p id="paragraph"
class="content">
</p>
</div>
If you place the caret at * and select the enclosing typing pairs, the
selection closes at </p> rather than </div>. It doesn't happen however for
self closing tags:
<div>
<input id="field"
class="form-field"/>
</div>
I've looked into the HTML bundle but I'm not sure the typing pairs
references there are the culprit for this.
Could someone point me in the right direction to fix this issue? I'd be
glad to open a PR once I get it working.
Thanks!
Hi,
I bumped into a problem while checking the R bundle.
There's a command which outputs HTML source to display the result within TM's HTML output window.
If I start TM and execute this command everything will be displayed correctly. Then I close the HTML window, I modify some code, and invoke the same command again to come up with an HTML output window I only see the spinning wheel and a blank window. After ~30s the HTML window displays the correct picture.
I was able to narrow down the problem and attached is a test environment (as a tmCommand). The problem is a non-existing CSS resource. If you invoke this command for the very first time, the HTML output window machinery simply ignores the non-existing CSS file and displays the content correctly. Fine. If you re-invoke the same command the HTML output keeps blank for half a minute. If you then delete the 4th "echo"-line containing R.css everything works perfectly.
Here the test code
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"
echo "<html><head><title>R: Phonetic algorithms</title>"
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"R.css\">"
echo "</head><body>"
echo "TEST"
echo "</body><html>"
******************************************************
Hans-Joerg Bibiko
Max Planck Institute for Evolutionary Anthropology
Department of Linguistics
Deutscher Platz 6 phone: +49 (0) 341 3550 341
D-04103 Leipzig fax: +49 (0) 341 3550 333
Germany e-mail: bibiko [at] eva.mpg.de
******************************************************
I noticed something strange while trying to record a simple macro. When replaying the macro, it skips some steps, especially when there is text selected in between.
Steps to reproduce:
- Open a buffer with the following content:
tm foo
tm bar
- Move to the beginning and hit "Start Recording"
- Select the first word with ^w
- Type "textmate" (or anything else, doesn't matter)
- Hit "Stop Recording"
- Move to the beginning of the line
- Hit "Replay Macro"
Result:
On the second line, "tm" is selected, but the text has not changed. If you try to save the macro you see the content of it and will notice that the macro was at least recorded correctly.
Workaround:
Rolling back to the last normal release (2.0-beta.6) fixes it and replaying works again.
When I try to run run these two commands:
LaTeX > Insert > Citation based on current word
TODO > Insert TODO List
I¹m getting a dialogue box with this message:
Failure running ³Citation Based on Current Selection². interpreter failed:
No such file or directory.
Anyone know what the problem is?
Ross Ahmed
Ecologist
07875533906
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>
I occasionally get log output such as that I've posted below. The pdf is
not updated, but both the dvi and ps file are correctly compiled. TeXShop
correctly compiles using pdflatex. Occasionally latexmk will decide to use
pdflatex and everything will work correctly. I don't really know what's
happening with ps2pdf and what it means by "stable files" and I'm not sure
if this error is caused by a bug in latexmk or maybe some error in the
configuration info given to latexmk by textmate.
Does the latex bundle have any control over whether latexmk uses pdflatex
or regular latex?
-Jim
p.s. Here is that log file, with the latexmk messages:
Latexmk: This is Latexmk, John Collins, 11 Nov. 2012, version: 4.35.
Latexmk: applying rule 'latex'...
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013
Processing: Practice Midterm 1 copy.tex
Document Class: exam 2011/05/22 Version 2.4 by Philip Hirschhorn
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
Output written on "Practice Midterm 1 copy.dvi" (6 pages, 17724 bytes).
Complete transcript is in Practice Midterm 1 copy.log
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'dvips'...
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'ps2pdf'...
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'ps2pdf'...
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'ps2pdf'...
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'ps2pdf'...
0 Errors 0 Warnings in this run.
Latexmk: applying rule 'ps2pdf'...
Latexmk: Maximum runs of ps2pdf reached without getting stable files
Latexmk: Did not finish processing file 'Practice Midterm 1 copy.tex':
Latexmk: applying rule 'ps2pdf'...
Latexmk: Errors, in force_mode: so I tried finishing targets
Tell Skim to refresh '/Users/Starx/Dropbox/Mathematics/LaTeX
Projects/Math307Win15/Practice Midterm 1 copy.pdf'
Command latexmk -pdfps -f -r /tmp/latexmkrc -r
'/Users/Starx/Library/Application
Support/Avian/Bundles/latex.tmbundle/Support/config/latexmkrc' 'Practice
Midterm 1 copy.tex' exited with status 12
Thanks Allan, the error message when I try to “Show Todo list” is:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- /Users/rramcharan/Library/Application Support/TextMate/Managed/Bundles/TODO.tmbundle/Support/todo.rb (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require’
> On Jan 23, 2015, at 7:00 AM, 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. todo bundle (Rodney Ramcharan)
> 2. Re: todo bundle (Allan Odgaard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 22 Jan 2015 19:19:43 -0500
> From: Rodney Ramcharan <rodney.ramcharan(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] todo bundle
> Message-ID: <BA4D8BF9-C9DA-4FB8-8FAA-DE8466AB6E27(a)gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Sorry to trouble you with this since I know it?s been addressed but I can?t to figure out the answer. My todo bundle no longer works with the upgrade to yosemite,
> and my path variable is defined as "$PATH:/usr/local/bin:/usr/local/bin? in the preferences tab. Is there something else I need to do. Again, many apologies for the silly question.
> Best,
> Rodney
>
Sorry to trouble you with this since I know it’s been addressed but I can’t to figure out the answer. My todo bundle no longer works with the upgrade to yosemite,
and my path variable is defined as "$PATH:/usr/local/bin:/usr/local/bin” in the preferences tab. Is there something else I need to do. Again, many apologies for the silly question.
Best,
Rodney
There is a nice little Show Web Preview function. Problem is as sweet as it is when doing actual development you have to keep re-executing the shortcut to invoke it. This make seance for something like the external browsers refresh feature, but the internal preview should really be synchronized. Ie as changes are make they show in the preview immediately(or ofter a few seconds of inactivity or a save operation maybe for performance reasons.)
Would it be possible to some how combine the diff highlighting with the
highlighting of a source code? I know that it's possible to insert other
grammars in a grammar but I was thinking of a general solution that
doesn't require changing every existing grammar to add diff support.
It would be really cool if it would be possible to recognize each file
(if multiple files in a diff) and highlight it according to the file
extension.
--
/Jacob Carlborg
Hi All,
Thanks so much for textmate. It has been my happy coding home since I
switched to OSX about 8 years ago.
I've been trying out textmate 2, and I really like it with the exception
of two glitches that I haven't been able to figure out.
The first is that I can't get cmd-t to work happily with expandrive.
cmd-t seems not to find files in a given folder until I open that
particular folder in the file browser sidebar. I can option-click the
main folder to get it to open every folder, and this works initially,
but it the files disappear from cmd-t after some period, so I have to
repeat the option-click or manually browse through the file interface to
open the file. I'm a keyboard guy, and I really miss just being to hit
cmd-t and type in a file name to open a file.
Any ideas for how to fix this? I don't mind much something a little
kludgy like having to option-click the parent folder each time I sit
down to a coding session, but having to do so every 20 minutes or,
worse, having to manually navigate the file browser interface for files,
is harshing my happy coding juju.
Secondly, I retain a habit of searching using ctl-s from my previous
long run with emacs. In Textmate 2, ctl-s is difficult to use because
it does not wrap by default. I can just use cmd-f instead, but I mostly
using the find function to navigate around source files, and I
aesthetically dislike popping up the giant find and replace box just to
do basic quick navigation. Is there any way to change ctl-s back to
doing a wrapped search?
Thanks again for a great tool!
-hal
--
Hal Roberts
Fellow
Berkman Center for Internet & Society
Harvard University
>Could you please change `refresh_viewer.scpt` by adding a `display alert`
Ren,
I actually did some checking along those lines before I got your message.
I used a notification instead of a display alert, but the result is that
the "TeXShop" block of code is definitely not being executed. Never the
less, deleting the tell block from that code will still stop TeXShop from
opening. I noticed you had to delete the tell block and not just the code
within the tell block. Some online searching led me to the following which
seems likely to be the root of the problem:
http://stackoverflow.com/questions/12431811/how-to-make-applescript-not-aut…
Apparently the script should be compiled so that Skim and TeXShop are not
both automatically opened. I am not sure why Angelo and I seem to be the
only ones having this issue. If the above is correct then this behavior
should happen to everyone.
-Jim
I notice this long time ago but I though that it will be fixed at some point,
but looks like it won’t.
Most of the shortcuts are not working when I have Russian keyboard layout active.
Some of them do work though. For example ⌃W selects the word but it won’t select
the next occurrence of the word.
⌃⇧K and ⌃⇧D and many others though don’t work at all.
I think that everything that resides in the upper menu works with any layout,
everything else works only when using English layout for me.
Hi,
I guess this question has already been answered, but I cannot find the
answer, and Google does not help:
How to enable these alternative edition modes in Textmate 2.0?
Thanks,
Manu
I like to use Soft Wrap. I also like to Use Window Frame as the Wrap Column. In other words, I like to wrap the text to the window.
How can we, completely independent of this, display a vertical line at a given column?
I can't do this with "Show Wrap Column" because it is connected to my Wrap Column setting. If I set that to 80, my Use Window Frame goes away.
Hiya Everybody,
I’m trying to group commands in a bundle, and to create directions for others on how to do so. Unfortunately I’ve been unable to successfully move a single bundle item.
I feel like I’m very close, and I wonder if anyone could tweak these steps to make it work.
Please and thanks!
How to move, order or group bundle items in a TextMate 2 Bundle?
** Disclaimer: This does not work**
It seems that it is a manual process of editing a info.plist, using uuidgen on you script to generate the correct uuid for the info.plist.
http://textmate.1073791.n5.nabble.com/Submenus-in-bundles-and-the-info-plis…
But others indicate this is less than successful.
http://superuser.com/questions/405782/is-it-possible-to-rearrange-commands-…
This is what is suggested by all the research I could find (Linked below). I'm leaving it here in hopes that someone can more easily find the missing piece and improve it. I've even sent a copy along to the TextMate Mailing List to see if they can find the flaws.
First back up your bundle. Then using XCode's plist editor, open your bundle's info.plist.
Creat this structure if you dont already have it.
1. Right click -> Add Row -> "mainMenu".
2. Change "mainMenu"'s type to Dictionary.
3. Create nested items "submenus", "items", and "excludedItems", changing "submenus" and "excludedItems" to "Dictionary" and "items" to Array as you go
4. Open Terminal.app and run the command `uuidgen`
5. Copy the output. (from now on called [UUID#1])
6. Create a new item under "submenus", naming it by pasting [UUID#1]
7. Change [UUID#1]'s type to Dictionary.
8. Add a child to [UUID#1] named "name", set its value to "Network Scripts" (or whatever)
9. Add a child to [UUID#1] named "items", set its type to Array
10. Add items using the (+) button, each item is a UUID from your commands. To get this UUID, open the command's file in TextMate. If you try to Open the .tmCommand file directly TextMate will complain, "The bundle item [Bundle Item]; is already installed".
a) You can simply open the Commands folder, and textmate won't mind opening the files from the file drawer.
or
b) or `mate ~/Library/Application Support/Avian/Bundles/[Your Bundle]/Commands/[Your Command].
11. When the file is open find these lines. You're string will be different but formatted the same.
<key>uuid</key>
<string>8E9BA0D3-E282-4516-8565-E920EA98C898</string>
This is the UUID for your command. Now known as [UUID#2]
12. Go back to the info.plist, in step 9 you created a "items" array, add [UUID#2] to the array.
13. Add [UUID#2] to a “ordering" (type Array) object on the root of the xml.
14. Repeat 10 - 13 to add multiple items.
15. Save.
Graham P Heath
Hi All,
While writing a grammar for programs written in the Racket language, I
have stumbled upon a problem.
In Racket #| starts a multiline comment and |# ends it.
The problem is that multiline comments can be nested:
#| a comment #| still a comment |# even
more comment |#
Here is my non-working attempt:
repository:
multilinecomment:
begin: \#\|
end: \|\#
name: comment
contentName: comment
patterns:
- include: "#multilinecomment"
name: comment
- match: ([^\|]|\|(?=[^#]))*
name: comment
The intent of the match patterns are:
"#multilinecomment" A multiline comment can contain another multiline comment.
([^\|]|\|(?=[^#]))*
The meaning of the subexpressions:
[^\|] any characters not an `|`
\|(?=[^#]) an `|` followed by a non-`#`
The entire expression thus matches a string not containg |#
Is it possible to match nested multiline comments correctly?
--
Jens Axel Søgaard
Sorry for the delayed response.
I use Typeset & View so the changes I made to latex_watch.pl must then be
irrelevant. Fyi, I never thought there was ever a problem with the
refresh_viewer script. I always thought that the problem was that the
script was being called from elsewhere with the wrong viewer supplied as a
parameter. I could not track down where it's called from (I know very
little about bundles) so my workaround was to just rewrite the script to
open Skim regardless of what viewer it's given as a parameter. I mentioned
this only because it pinpoints the code that is opening TeXShop, and hence
might have been helpful information for debugging the issue, though that
may now be unnecessary:
As suggested I reset to defaults and then installed the LaTeX bundle
again. The Bundles -> LaTeX -> Preferences... command stopped functioning
but TeXShop no longer opens when type setting. After several restarts the
Preferences command has resumed functioning and the TeXShop issue remains
fixed. This means that currently all my issues have been resolved. Thanks!
-Jim
> On Jan 7, 2015, at 3:22 AM, textmate-request(a)lists.macromates.com wrote:
> Date: Wed, 7 Jan 2015 09:21:10 +0100
> From: Carsten Hoever <hoever(a)gmx.de <mailto:hoever@gmx.de>>
>
>> This is a from a file from Strava generated on an iPhone.
>>
>> Is there a way to convert it to gpx?
>
> I don't think you will get any useful answers here, as this is not a Textmate specific problem. But since I am at it: have you considered simply exporting the activity from Strava as GPX? There are even automatic services for doing that (tapiriik) if you don't want to do it manually. In case you have more questions I suggest you reply to my e-mail address and not the TxMt list.
>
> Regards,
>
> Carsten
Oops, senior moment. Wrong group. But thank you for the suggestions, I’ll look at tapriniik. I guess my search was too narrow. I didn’t see how to export from Strava. I thought it should do it, but wasn’t seeing it. Will look harder. I just got the paid membership to see how it handled heart rate data, although have had a little used free account for some time.
Greg