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