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