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