Hello again,
NVM is a Node Version Manager. I believe it works similarly to RVM (but I’m
not sure). Functionally they do the same thing; allow you to install
multiple versions of Node (or Ruby) and switch between them easily.
For NVM to keep multiple versions in the path it adds ~/.nvm/nvm.sh to your
.bash_profile, which interns amends the "default nvm-node path" to PATH.
Like this, `which node` will return something like
"/Users/______/.nvm/versions/node/v6.2.2/bin/node".
I could simply add that path to TM_PATH, but if node versions change,
TextMate will continue using the old version (or worse).
I’m sure some of you are running into this problem. What have you done to
solve it?
Thanks,
Graham Heath
Hi all,
I've noticed that any file that has a shebang at the top (#! /path/to/exec),
is automatically set to executable when saved. Is there any way to turn off
this functionality?
Regards,
Siame
Good evening everyone,
does anyone here know of some BibTeX language bundle and could point me there?
Having to edit (mostly my own … yes, I am _that_ old) BibTeX styles from time to time, I’d like to have a TM2 bundle for that. I’m talking of that nameless RPN language used in .bst files as described in chapter 4 of “Tame the BeaST” <http://mirrors.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf>, not the data base language of .bib files.
Thanks!
Regards,
Martin Wilhelm Leidig
--
SatzTeXnik — Professional TeXing and TeXnical counselling
Hi,
Out of nowhere now every time I want to open a file using CMD+T, TextMate
crashes.
Crashlog is here: https://api.textmate.org/crashes/346883
Thanks,
Koen
Sent from [Nylas N1](https://link.nylas.com/link/33wd9n5m5l3cdcz4d1oikbwcz
/local-a1adcaac-e6bd/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=dGV4
dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=), the extensible, open source mail
client.
Since updating to MacOS Sierra, I get this error when trying to open files from the shell. For example:
$ mate .
objc[48814]: Objective-C garbage collection is no longer supported.
Abort trap: 6
I’m running TextMate version 2.0-beta.12.4; trying to update says I have the latest version of TextMate.
Gregg Kellogg
gregg(a)greggkellogg.net
I run a lot of commands from TextMate, and sometimes they can take a long time to finish. The usual “execute line” command doesn’t return until the execution is complete, so the document (and TM as a whole) is unresponsive while waiting. I can run them in the background, but then I need a way to insert the output into the original document. My current workaround is to bring the document forward using 'mate', but that means whenever output is ready, the doc jumps into the foreground, interrupting anything else I may have been doing.
I don’t know of a way to do this, but it would be great if I could send text to a document without giving it focus… e.g. something like:
echo "some output" | mate --no-focus --uuid $DOC
-David
Hey
I hope I'm not getting on everyone's nerves with another feature
question -- can I make it work? -- or feature request -- if answer to
previous is negative, can you make it work? :)
My question: can I change the order of autocomplete suggestions, between
'user defined' and 'default/document harvested'?
I have a pretty large list of my own completions, some global. Internal
order of these completions seems to obey the order in which they appear
on the list. Yay!
But: the document harvested completions always seem to be suggested
before any of my own completions.
I know, I can entirely disable these default completions, but I use them
as well, just that mostly, my own completions should take precedence.
[wishful thinking on] Any way to change the order between user
completions and default/document harvested completions?
If someone can think of a way that requires messing around with some
default bundle scripts: I'll happily try it, did so before. Just
suggestions requiring to build my own are problematic: tried it a few
times, never got it to work 100% cleanly.
Thanks for lending me your time, reading the above.
Hi,
is there a way to control indentation by supplying a regex for the previous line and the current?
What I want to do is indent javascript chained methods calls (every line starting with a dot, except if the last line started with a dot itself):
Thanks
Fabian
Comment for jbuilder should be a #, but TM is putting a double slash. The files are Rails apps/views/<view>/xxx.json.jbuilder .
I’ve just started using jbuilder, but the hash seems to be the right one.
Can I change this? If so how?
======
Change file type to Ruby. Probably was JavaScript automatically.
Did I change it to jS or is that something TM does.
I can live with it as is.
Greg
Hi René,
On 14/10/2016 12:37, René Schwaiger wrote:
> Hi Andrew,
>
>> On 14 Oct 2016, at 12:47 , Andrew Jaffe <a.h.jaffe(a)gmail.com> wrote:
>>
>> Dear all,
>>
>> [Apologies if this gets posted twice, as I sent it to both the gmane newsgroup and the list itself...]
>>
>> I've got TM running on two machines, both updated to the most recent build.
>>
>> On one machine, everything seems to be working fine.
>>
>> On the other, the LaTeX bundle has stopped working correctly when I try to "Typeset and View":
>> - I need to explicitly add /Library/tex/texbin to TM's path in Prefs>Vars. If I don't, it fails looking for kpsewhich. (This is not necessary on the other machine -- PATH is not explicitly set at all in the TM variables window.)
>> - I can't "view" with anything but the TM PDF viewer (although I can select other options from the prefs window, but it doesn't affect the behaviour).
>>
>> On both machines the bundles are set to auto-update, and appear to be on the latest version from over the summer. *However*, if I actually look in the bundle editor, I do see differences. For example, on the non-working machine, there is an explicit check for kpsewhich, but not on the other one. And, indeed, if I look at the files in ~/Library/Application\ Support/TextMate/Pristine\ Copy/Bundles/LaTeX.tmbundle, I do find that they are from 2010!
>>
>> I also note that the directory structure of ~/Library/Application\ Support/TextMate/is very different on the two machines.
>>
>> So, does this have something to do with the recent move from old Avian folders? Or is it just an unrelated local problem? In any case, please help!
>
> thank you for the detailed description of your problem. TextMate stores all managed bundles – those installed via `Preferences→Bundles` – inside
>
> ~/Library/Application Support/TextMate/Managed/Bundles/
>
> . I think you can solve your issue using the following steps:
>
> 1. Move all version of `LaTeX.tmbundle` outside of `Managed/Bundles` into the Trash. To locate these bundles you can use the following command inside Terminal:
>
> mdfind -name '"latex.tmbundle"c' | grep -iE '\.tmbundle$'
>
> 2. Restart TextMate (`Ctrl` + `⌘` + `Q`)
>
> Hope this helps. If not, then please just ask again.
OK, Thanks -- this does seem to work. However, I note that I've got a
LOT of bundles (and a `Support` folder) in Pristine\ Copy/. I assume
that those are all now shadowing more recent bundles, without any way to
actually tell. I think this dir was once used to differentiate the
original version of bundles from ones with edits (might it have
something to do with the old "getbundles" package?). Should I just trash
that folder? Or would it be safer for me to revert to a clean install?
And, why did this just start happening?
Andrew
Probably more complicated. I’m not sure all the things commented out with # are ignored by Rails.
I’m still trying to sort out what all the paths involved are. But that’s Rails not TM.
Greg
> On Oct 15, 2016, at 5:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Comment for jbuilder should be a #, but TM is putting a double slash. The files are Rails apps/views/<view>/xxx.json.jbuilder .
>
> I?ve just started using jbuilder, but the hash seems to be the right one.
>
> Can I change this? If so how?
> ======
> Change file type to Ruby. Probably was JavaScript automatically.
>
> Did I change it to jS or is that something TM does.
>
> I can live with it as is.
>
> Greg
Dear all,
[Apologies if this gets posted twice, as I sent it to both the gmane
newsgroup and the list itself...]
I've got TM running on two machines, both updated to the most recent build.
On one machine, everything seems to be working fine.
On the other, the LaTeX bundle has stopped working correctly when I try
to "Typeset and View":
- I need to explicitly add /Library/tex/texbin to TM's path in
Prefs>Vars. If I don't, it fails looking for kpsewhich. (This is not
necessary on the other machine -- PATH is not explicitly set at all in
the TM variables window.)
- I can't "view" with anything but the TM PDF viewer (although I can
select other options from the prefs window, but it doesn't affect the
behaviour).
On both machines the bundles are set to auto-update, and appear to be on
the latest version from over the summer. *However*, if I actually look
in the bundle editor, I do see differences. For example, on the
non-working machine, there is an explicit check for kpsewhich, but not
on the other one. And, indeed, if I look at the files in
~/Library/Application\ Support/TextMate/Pristine\
Copy/Bundles/LaTeX.tmbundle, I do find that they are from 2010!
I also note that the directory structure of ~/Library/Application\
Support/TextMate/is very different on the two machines.
So, does this have something to do with the recent move from old Avian
folders? Or is it just an unrelated local problem? In any case, please help!
Andrew
Comment for jbuilder should be a #, but TM is putting a double slash. The files are Rails apps/views/<view>/xxx.json.jbuilder .
I’ve just started using jbuilder, but the hash seems to be the right one.
Can I change this? If so how?
Greg
Hey again.
Second message today, but not feature related though this time. Instead,
I wanted to ask whether the License buying option from:
http://shop.macromates.com/
is still up to date / whether the money ends up at the right place?
Apologies if that sounds like a dumb question, but I felt I had to check
since the website can appear a bit *tumbleweed* in parts, so before
making a transfer I wanted to know for sure.
P.S. No nagging screen ever on my so far unlicensed (private) copy. I
only thought of registering now because I've been using TM a lot lately
(and keep bugging you people in here), and started feeling bad for not
contributing anything. While the "zero naggin" is kind of classy I must
say, may I ask what's the idea behind not reminding the user at all to
register?
TM version 2.0-beta.12.22
Did the way TM handles last window/tab position just change?
What I mean is: previously, TM remembered, for each document, the last
scrolled to position, regardless of where the caret was.
If I scrolled the document and line x was at the very top, then switched
to another tab, then back, line x would still be at the top. Caret
position didn't have any influence on this, i.e. the caret could be out
of view, and the window would still open at the line it was when I left
the tab.
Now it seems that on tab switching, the caret position defines the view,
as in: the caret is always roughly in the middle of the screen.
Is this intended? I really hope it's not, since it suddenly makes a
quick 'switching back and forth' code comparison across documents a lot
more difficult.
If it's not intended: did it break with the last update, or could it be
a problem on my side? (some variable that stores the view isn't updated
anymore in my installation... I'm just fishing in the dark here)
[+textmate(a)lists.macromates.com] since this seems to be growing into a
feature request, rather than a request for more information.
[I hope I’ve recombine-ed these emails in a sane way…]
The way Atom appears to be doing this "on change" event is by debouncing it
over 300ms. ESLint-d is a daemon implementation of ESLint. IIRC it is a
rather simple wrapper around ESLint that keeps the linter open in a
background process.
If I could get the "on change" event, I’d be happy to setup a node script
that either launches a background process ("TMHinter-d" perhaps) or
attaches to the existing background process.
Thanks,
Graham Heath
On August 20, 2016 at 2:58:31 PM, Michael Sheets (bundles(a)textmate.org)
wrote:
> On Aug 18, 2016, at 8:23 PM, Graham Heath <graham.p.heath(a)gmail.com>
wrote:
>
> My current issue is that Atom can lint in real time. I figure with the
gutter/marks API the front-end is ready for this. However, in my research
the only thing that seems to update without a save is spell checking.
>
> Is there a Semantic Class that I’m just not finding, or could we create
one? I’d then need a way to access the document’s unsaved contents. It
seems to me that spell checking is already doing this, and maybe we could
hijack some of that functionality?
>
> If there isn’t a Semantic Class (or other hook) and there’s not a way to
access the current unsaved document, could there be? :D
The current callbacks are:
callback.document.did-open
callback.application.did-deactivate
callback.application.did-activate
callback.document.will-save
callback.document.did-save
There is no option to monitor a document for changes in real time, doing so
would activate for every single keypress which is just too much overhead
for general use. To do this properly we need a program running constantly
in the background which isn’t really part of how bundles work.
A good example to look at that we use is the SCM Diff Gutter bundle, this
updates on save and open.
> Is this the appropriate list for this conversation?
>
> Will Allan see this thread if we keep it on this list? I’m sure he’s got
better things to work on, but I’d love to know how he’s thought about these
issues (because I know he has).
This isn’t a list, it goes directly to me only. :) If you want to discuss
things with the wider community the main TextMate mailing list is the
solution. (Or for a subset the IRC chatroom perhaps.)
On August 18, 2016 at 6:23:50 PM, Graham Heath (graham.p.heath(a)gmail.com)
wrote:
Hello again;
I’ve been working on some exciting features (for me any way) for the
existing JSHinter bundle. I’ve had some PRs for small things pending for a
while, and I guess that the original author is no longer interested in the
project. No problem there, my work continues and the plugin will soon be
better than ever.
The goal is to be comparable to the (awesome) Atom Linter plugin, and as
the new author I intend to rebrand it as TextMate Linter (or something
similar).
My current issue is that Atom can lint in real time. I figure with the
gutter/marks API the front-end is ready for this. However, in my research
the only thing that seems to update without a save is spell checking.
Is there a Semantic Class that I’m just not finding, or could we create
one? I’d then need a way to access the document’s unsaved contents. It
seems to me that spell checking is already doing this, and maybe we could
hijack some of that functionality?
If there isn’t a Semantic Class (or other hook) and there’s not a way to
access the current unsaved document, could there be? :D
I don’t know if you’re interested, but my work has been going on here:
https://github.com/loadedsith/JavascriptHinter.tmbundle/
specifically off the master branch;
https://github.com/loadedsith/JavascriptHinter.tmbundle/tree/scss-es-and-gj…
2 last questions;
Is this the appropriate list for this conversation?
Will Allan see this thread if we keep it on this list? I’m sure he’s got
better things to work on, but I’d love to know how he’s thought about these
issues (because I know he has).
Thanks,
Graham Heath
Hi Allan,
there's a TINY issue for moving the bundle stuff from Avian to TextMate.
TM 2.0-beta.12.23 is still asking to move the Pristine Copy folder from Avian to TextMate. In my case I have an empty folder at "~/Library/Application Support/Avian/Pristine Copy" but I do not have a "~/Library/Application Support/TextMate/Pristine Copy" folder. Due to that fact I get the error message that "Bundles" couldn't be moved. Maybe check simply if the destination folder exists in beforehand - if not create it.
As I said - it's only a tiny issue ;)
Cheers, Hans
Hi,
I wonder if we could have a 'Open Last Closed File' on the File menu - the
idea being it would allow a keyb shortcut to be assigned directly to it?
We can already do this via File -> Open Recent -> (first item), but afaik
this doesn't allow us to assign a keyboard shortcut specifically to the
first item
I'd quite like to be able to re-open it with something like CMD+SHIFT+T,
similar to how Chrome lets you reopen the last closed tab
Thanks
In the latest nightly build (2.0-beta.12.21) I've noticed this when
searching in multiple files:
When you click on a result in the find dialog it brings the proper document
into focus and selects the found section of the document, but does not
always scroll the selection into view.
When the target document already has focus (before clicking on the found
result)
it scrolls correctly.
But if another tab has focus, then the target document gains focus and the
selection is highlighted, but it is not scrolled into view.
Another thing is that if a result in the find dialog is highlighted
(because it is the last result that you clicked on), and you click it again
it does not take you to the corresponding document. You have to command
click to deselect it, then click it again for it to work. Double clicking
it here will close the find dialog but will not take you to the result in
the document.
Hello!
I've noticed that recent changes have broken jumping to search result
occurrences in documents which aren't the current tab. I.e. clicking on a
search result opens the document (or switches to a tab with it already
open) and puts the cursor in the correct place, but doesn't scroll the
document so that the matched occurrence is visible (i.e. so you have to
up/down arrow to move the scroll correctly).
Cheers,
David.
Hey
Is there a way to change the default modifier key that enables multiple
caret selection by mouse? Default is 'cmd'.
I already know about changing keybindings in general, e.g. from
https://manual.macromates.com/en/key_bindings.html
or
http://blog.macromates.com/2005/key-bindings-for-switchers/
but neither of them seem to work for what I want to do.
Changing it by OSX Keyboard shortcuts doesn't work either, since it's
not a key combination but modifier & mouse event. So I'm out of ideas.
The reason I'm asking is that with the current key, the multiple caret
selection is a bit 'trigger happy', and I've lost code several times in
the past without even noticing. I type something, move the caret with,
say, cmd-left arrow, select another line by mouse, continue typing. If
I'm not careful/do the above too fast, I sometimes enable multiple
carets, and start overwriting or adding code or text I didn't want to. I
eventually figure it out (usually when I my code suddenly doesn't
compile), but it always takes me a while to figure out what was going on
since I never notice that I had multiple carets active.
Long story short: If somehow possible, I'd like to rebind the 'cmd'
modifier to something like 'cmd+shift', making it less likely I enable
multiple carets by accident.
Any idea if there's a way to do that?
On Sep 29, 2016, at 01:14 PM, Allan Odgaard <mailinglist(a)textmate.org> wrote:
On 29 Sep 2016, at 12:11, Per Persson wrote:
It works mostly well, but trying to parse a command file that contains a command mapped to the escape key using plistlib/biplist fails with an exception:
[…]
Any clues how to handle this?
The issue is that XML does not allow ASCII control characters (and python checks this). XML 1.1 should allow them when entity-encoded, but both python 2.7.12 and 3.5.2 still throw an exception (for ) in my test.
The biplist is using plistlib for XML property lists, so it may actually work for binary property lists.
So when encountering this exception, you could try convert the property list to its binary form (using plutil) and see if that works.
You could also look into using PyObjC and import NSDictionary, this should definitely read the file without problems.
Thanks Allan,
plutil did the trick. In fact it could actually convert the plist file to JSON with the escape properly escaped (pun intended;)
For the records, this is what I ended up with (no need for plistlib/biplist):
def json_from_plist(path):
p = Popen(['plutil', '-convert', 'json', path, '-o', '-'], stdout=PIPE, stderr=PIPE)
res, err = p.communicate()
return json.loads(res) if not err else {}
/Per
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
Hi,
I have a small utility that auto-generates documentation for the commands in a tmbundle by extracting key-combo and documentation comments from the command files, see:
https://github.com/persquare/CalvinScript.tmbundle/blob/master/Support/lib/…
It works mostly well, but trying to parse a command file that contains a command mapped to the escape key using plistlib/biplist fails with an exception:
InvalidPlistException: ExpatError('not well-formed (invalid token): line 18, column 9',)
The (python) code to trigger is simple enough, plistlib or biplist doesn't matter:
try:
import biplist as plistlib
except:
import plistlib
for file in os.listdir(path_to_cmd_dir_in_tmbundle):
path = unicode(os.path.join(cmd_dir, file), 'utf-8')
pl = plistlib.readPlist(path)
Any clues how to handle this?
/Per
I stumbled upon a strange bug.
1. Open a new window with Cmd-N
2. Paste some text into the window. Note that the tab does not show that
the document has unsaved changes. You can now type text and make other
edits. The document never detects that there are unsaved changes. If you
press Cmd-W the window will close without asking to save.
This does not happen if you first type some text after opening the window
and then do the paste.
TextMate version 2.0-beta.12.15
OSX version 10.11.6
I've seen various editors which can parse CSS or SASS files for rgb color
variables and then show the font in the same color
Is there any bundle which is able to do this for textmate?
I'm not entirely sure the bundle API is able to support such a feature.
If not, could it be done with a plugin?
Why does double-click on search results inside the Find window cause the
Find window to close without even doing anything?
It happens to me a dozen or more times each day and is one of those small
annoyances -- I have to slow myself down whenever I click in Find window.
Specifically the problem is:
1. focus is on a text window
2. click in the (inactive) Find window to make it active
3. click again (in same location, quickly) to select a search result
4. RESULT: the Find window closes without opening the result I clicked on!
Argh!!!
Proposal:
Only do the "close Find window on double-click" shortcut if the Find window
was active on the first click.
--or--
Add a preference item to turn off the "close Find window on double-click"
shortcut entirely.
Thanks for a great product.
Just downloaded the latest build. I’m doing a Find within folders. When I change the “In" folder, it still performs the search in the original folder that was selected and not in the one I just changed it to.
Ed Wong
> On Sep 15, 2016, at 5:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Message: 2
> Date: Thu, 15 Sep 2016 08:03:16 +0200
> From: "Allan Odgaard" <mailinglist(a)textmate.org <mailto:mailinglist@textmate.org>>
> To: "TextMate users" <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
> Subject: [TxMt] Re: Git commands changed?
> Message-ID: <F6534751-2A60-4671-892D-7A18A38D0780(a)textmate.org <mailto:F6534751-2A60-4671-892D-7A18A38D0780@textmate.org>>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 15 Sep 2016, at 7:16, Greg wrote:
>
>> I remember that Cmd-Y would bring up options selectable by typing a
>> number to ?Show uncommitted?, ?Commit?, etc?the options one
>> sees with Bundles>Git with the top items being selectable in numerical
>> order.
>>
>> I have been traveling and it might have been eight weeks since I?ve
>> done this.
>>
>> Can I add this back?
>
> This was never removed. Do you have Git installed in Preferences ?
> Bundles?
>
> The menu though is provided by the SCM bundle, so you also need this one
> installed, this is included by default and the Git bundle depends on it,
> so installing (enabling) Git should automatically install it.
>
> It sounds like something bad happened to your bundles folder(s).
During the problem with the Ruby bundle, I removed Bundles I didn’t recognize.
SCM bundle is now active and Git bundle works as expected.
Is there a way to know the dependencies of Bundles?
Thank you Allan.
I remember that Cmd-Y would bring up options selectable by typing a number to “Show uncommitted”, “Commit”, etc—the options one sees with Bundles>Git with the top items being selectable in numerical order.
I have been traveling and it might have been eight weeks since I’ve done this.
Can I add this back?
I’m the one that just had problems with Bundles not showing up and fixing by deleting ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary
Greg
Fixed, details below.
> On Sep 14, 2016, at 5:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Message: 3
> Date: Wed, 14 Sep 2016 09:09:31 +0200
> From: "Allan Odgaard" <mailinglist(a)textmate.org <mailto:mailinglist@textmate.org>>
> To: "TextMate users" <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
> Subject: [TxMt] Re: Ruby Bundle unavailable
> Message-ID: <4EEE929D-3159-4698-85C7-3367B8228159(a)textmate.org <mailto:4EEE929D-3159-4698-85C7-3367B8228159@textmate.org>>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> On 12 Sep 2016, at 20:16, Greg wrote:
>
>> Very recently Bundle control has gone wacky or maybe the Ruby bundle.
>> I see Ruby in the list in Preferences>Bundles and can select it, but
>> Ruby is not available in at the bottom of the window for selection
>> (afraid I don?t know how to describe that better).
>
> You say you can ?select it? in Preferences ? Bundles, but is the
> checkbox checked?
>
> Did you try to uncheck and recheck the checkbox?
I had already done that several times and also relaunched TextMate
>
> If this did not help, try delete this file and relaunch TextMate:
>
> ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary
This has fixed the problem. I can now set the Ruby Bundle in Preferences (this I could do before), and have it available at the bottom of the window (Ruby wasn’t available). Can also run scripts.
>
>> I think I?m also seeing problems with Themes, but I don?t know
>> exactly which them I was using, but it definitely wasn?t correct for
>> my Ruby files. I?m using some black background theme in general and
>> did look at different themes a week or two ago. Might be some
>> connection?
>
> Changing themes should not cause bundles to disappear. You say you are
> seeing ?problems with Themes?, does that mean, that the Themes
> bundle also has gone missing?
Probably because I couldn’t select Ruby. Consider this a non issue.
>
>> I?m not up on Bundle management, but poked around
>>
>> ~/Library/Application Support/TextMate/Bundles/ ? no
>> Ruby bundle
>> ~/Library/Application Support/TextMate/Managed/Bundles/ ? no Ruby
>> bundle
>
> The first one should not have one, the second one should, if Ruby is
> checked in Preferences ? Bundles.
I wonder if I missed it before since it appears below Ruby Haml, Ruby on Rails, and Ruby SASS. I would have expected it the first. I understand in computer land that is not the case, but in a real world list it would be and I may have not looked carefully enough. In any case it’s there now.
>
> Is any component of your path possibly a symbolic link to a syncing
> service?
>
>> ~/Library/Application Support/TextMate/Ruby/1.8.7/ ? Why is this
>> here? Did I do this or is it part of TextMate?
>
> This is something TextMate installs on-demand. Currently a lot of
> bundles require it.
>
>> I searched for ?Ruby.tmbundle? and found nothing.
I may have forgotten to select the System files are included option. [OT] Is there a way to have this as a default?
>
> A final place to look is:
>
> ~/Library/Application Support/Avian/Bundles
>
> However, this would be user customizations, and if you have none, should
> be empty.
>
> And just for the records, here are all the things to delete to get back
> to factory defaults:
> https://github.com/textmate/textmate/wiki/Reverting-To-Defaults <https://github.com/textmate/textmate/wiki/Reverting-To-Defaults>
>
> Item 4 and 5 on that list though should not affect bundles.
Thank you Allan. All is well.
TextMate version 2.0-beta.12.4. Ruby bundle dated Sep 6, 2016.
Very recently Bundle control has gone wacky or maybe the Ruby bundle. I see Ruby in the list in Preferences>Bundles and can select it, but Ruby is not available in at the bottom of the window for selection (afraid I don’t know how to describe that better). And Cmd-R doesn’t work (not surprising since I can’t make it a Ruby file). I’ve been using this regularly, but it could have been a week since tried to use Cmd-R. I’ve been using TextMate daily for Rails and haven’t noticed any problems (Ruby on Rails Bundle is still available).
Some combinations of reboot and restart cause Ruby not to be selected in Preferences.
I think I’m also seeing problems with Themes, but I don’t know exactly which them I was using, but it definitely wasn’t correct for my Ruby files. I’m using some black background theme in general and did look at different themes a week or two ago. Might be some connection?
I’m not up on Bundle management, but poked around
~/Library/Application Support/TextMate/Bundles/ — no Ruby bundle
~/Library/Application Support/TextMate/Managed/Bundles/ — no Ruby bundle
~/Library/Application Support/TextMate/Ruby/1.8.7/ — Why is this here? Did I do this or is it part of TextMate?
I searched for “Ruby.tmbundle” and found nothing.
Thanks for any suggestions
Greg
Hi all,
I was wondering if it was possible to change the behaviour of the Open
Recent Project (⌘⇧O) window. As it stands, this is the only window where
when focussed, the action ⌘⌫ does not delete the entry text field, but
instead deletes the Recent Project/Favourite from the list.
In the following windows:
- Open Quickly... (⌘T)
- Select Bundle Item... (⌃⌘T)
- Jump to Symbol... (⇧⌘T)
The ⌘⌫ action clears the text field only, and doesn't mutate the results
list. Understandably if it did, this would cause a lot more issues than the
Open Recent Project window.
Is there a way to lock items in place at least? Or remove the keyboard
shortcut for this window? This could make a lot of sense for the Favourites
sublist, that way the items could not be deleted, except by a mouse click
on the icon on the right?
Anyway, was wondering if anyone else had this issue.
Regards,
Siame
> <persquare(a)mac.com> wrote:
> Perhaps not exactly what you are looking for, but there is a bundle (by Hilton Lipschitz) for specifying themes in plain text files as comma separated values (CSV): <https://github.com/hiltmon/textmate-theme-csv>
> Additional blog writeup here: <http://hiltmon.com/blog/2013/02/22/multiple-themes-in-textmate-2/>
>
> I have a fork of the code with some additional features over at <https://github.com/persquare/textmate-theme-csv>
> In particular, you can set the gutter color(s), and it can do rudimentary highlighting of color codes by assigning them a scope with the color code appended at the end. In practice, it is only useful if you, like me, like to work with a limited set of colors since they need to be added to the theme used when editing themes... (makes your head spin, I know ;) Attached screenshot should clarify what it looks like.
>
> While not as easy to use as a GUI, plain text files allows you to easily track (and backtrack) changes to your theme(s).
Thanks, I’ll check it out. :)
> "Allan Odgaard" <mailinglist(a)textmate.org> wrote:
> Are you not seeing any styling of Markdown?
>
> Out-of-the-box there should be larger font size for headings, use of
> bold and italic, etc.
Yeah, out of the box Markdown does get highlighting, some themes work better than others. I’m trying to get granular control over the markdown highlighting so I can control all of the Atx-style headings (#, ##, ###, ####, #####, ######), bold, italic, and lists. I’ve been looking online but can’t find much info on how to target these things in a theme, especially the headings. In larger files I’d like to have a theme where I can tab indent headings and the content after them so it’s easier to follow.
The themes I find typically just have this, which controls all headings:
name = 'Heading';
scope = 'markup.heading, punctuation.definition.heading.markdown';
I would also like to see some kind of visual theme/grammar editor built into Textmate. I’m not a programmer so creating a theme or a new grammar isn’t easy for me (if not impossible). I’ve been able to modify some themes, but it would be nice to have a simple GUI (possibly with a feedback window of sample text) so I’d be able to even create themes for a new language without knowing the crazy grammar syntax (or even a new grammar for that matter). I’m sure it would be an involved process, but definitely worth it to me, even if it slowly grew over time. It would be nice to have simple options in a UI, and maybe even the ability to place your cursor in an open file which would allow you to edit the highlighting for that part of the grammar.
On a related topic, I’d love to see an enhanced Markdown theme (if one doesn’t exist). I’m using Markdown more and more for general notes and some html. Would be nice to have some highlighting for bold, em, links, lists, maybe even variations for # heading levels, tabbed indents for heading levels and associated content, etc.
thanks
Hi,
when I put my cursor in the word "transform" and select enclosing typing pairs, it selects the whitespace too, for some reason:
If I don't have the opening curly brace on it's own line, it works correctly:
Any ideas?
Fabian
Thanks Graham. The uuidgenerator worked great. That was the missing key in the theme files.
<graham.p.heath(a)gmail.com> wrote:
> If you rename the file to themeName.plist from themeName.tmTheme, you can
> open it with Xcode. You should then see a tree with "Root" and under that,
> various fields.
>
> There should be a uuid field, if not you can add it.
>
> To get the key, you just run "uuidgen" in your Terminal. If that sounds
> scary, https://www.uuidgenerator.net/ will make you one.
Thanks. I tried adding some themes from that site to Textmate but I get an error that they are “malformed.”
"The bundle item lacks mandatory keys in its property list file.”
Any idea of what needs to be fixed in this files to get them to work?
> <me(a)igorkozlov.me> wrote:
>
> Try this one. It also has some Markdown themes. Many themes there are optimized for Sublime Text, but should for in TextMate too.
> https://tmtheme-editor.herokuapp.com/
>
When I use the CMT+T File Chooser, I type "webapi" to open lib/webapi.js,
but on hitting enter, it actually opens lib/socket.js
Likewise trying to open socket.js, opens bot.js
Strangely it is even opening the wrong file when I dblclick from the File
Browser on the left.
Some files do still open correctly.
http://colorize.io/ is now some one else?
What happened to the code? Did it just get relocated, or is it defunct?
I quite liked this app.
Thanks,
Graham Heath
Citation based on current word and Citation Ref-TeX style now give me the message, "Could not locate any file named 'bibliography.bib' ". I'm on TM2 beta 12.5 and OS 10.11.6. This problem came up a few days ago. I'm not sure if it was with beta 12.4 or 12.5. Removing my revised LaTeX bundle in Avian did not change behavior, neither did removing Macromates preference files or reinstall of TM. My .bib files are in ~/Library/texmf/bibtex/bib/local and I haven't defined PATH or BIBINPUTS in variables.
Any pointer appreciated.
--Gildas
I’m trying to make the RuboCop bundle work with the new
callback.document.did-reload. However, it seems when a command is run
from this callback, that TM_PROJECT_DIR is not set. Is this expected?
(I tried with and without filebrowser, and even after explicitly setting
a project directory with “Use «folder» as Project Folder”).
Stefan
We can double-click a left parenthesis to select everything from there to the corresponding right parenthesis, and vice versa, so this raises the question: how does my bundle opt in to this? For example, in my "language" (AsciiDoc), a plus sign might be a delimiter. Is there a way to set things up so that double-clicking a plus sign selects to the other plus sign?
I tried smartTypingPairs and highlightPairs, but neither of those was it...
Thx (and sorry if this has already been explained and I missed it) - m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 9! http://shop.oreilly.com/product/0636920044352.do
iOS 9 Fundamentals! http://shop.oreilly.com/product/0636920044345.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
1. Steps to reproduce bug
- Create a file in the side brower area with any name.
- Copy & paste any name with two rows. Such as "asdf1 \n asdf2". \n
stands for a new line.
- See image attached.
2. Expected result
- Click the file to open it, you should see file name show at top
correctly.
3. Actual result
- Click the file to open it, you can see file name is not showing
correctly. The buttom part of first line "asdf1" can be seen.
4. Environment
- OS X version: 10.11.4 Beta
- TextMate version: TextMate version 2.0-beta.12.4
> Begin forwarded message:
>
> From: textmate-request(a)lists.macromates.com
> Subject: textmate Digest, Vol 99, Issue 26
> Date: August 22, 2016 at 2:33:55 AM PDT
> To: textmate(a)lists.macromates.com
> Reply-To: textmate(a)lists.macromates.com
>
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: textmate Digest, Vol 99, Issue 24
> Date: August 21, 2016 at 11:16:00 PM PDT
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 22 Aug 2016, at 4:52, Jack Royal-Gordon wrote:
>
>> Just discovered another similar occurrence that may add some more data. It appears that when I switch GIT branches, which causes some files in my folder to be changed, TextMate is not reloading the changed files (as it did in Version 1). What I used to get in V1 was that if there were no changes pending on the file when I switched branches, TM would quietly load the new version of the file; if there were changes pending, it would ask if I want to save the current TM copy or overwrite it from the copy on disk. But it seems like it might not be doing this (or at least not doing this consistently) on V2.
>
> Right, so your issue is limited to files with local changes which you then change on disk, correct?
>
> In this case TextMate will actually try to merge your local changes with the new version on disk, and if it can do this without merge conflicts, it updates the file.
>
> But if the merge has conflicts, TM currently does nothing (it logs an error to console). Prior to beta 12 it would update the file with the merge conflict markers, but I found this behavior undesirable because we effectively “mangle” the local changes.
>
> I do however plan to introduce a visual warning for this edge case, but unfortunately there was not enough time to get this done for beta 12.
>
I now understand why it’s not behaving as I expected, and I think that explains all of my strange behavior, as I switch branches quite often and just assumed TM2 had the same behavior as TM1.
FWIW, when you get around to handling the merge conflict, I liked what TM1 did, where it presented you a dialog and let you select between the on-disk version and the in-memory version. I think it would be even better if it gave you the third option of providing the merged version with the merge conflict markers.
At any rate, thanks for supporting TM; it’s miles better than any other text editor I’ve used.
Following up on
https://github.com/noniq/Markdown-MathJax.tmbundle/commit/6d003d9c9808acc95…
I created a very simple test script:
#!/usr/bin/env ruby20
require "#{ENV['TM_SUPPORT_PATH']}/lib/ui"
TextMate::UI.alert(:warning, 'Title', 'Message', 'OK')
Running this gives an “ArgumentError: An object in the argument tree
could not be converted” in method to_plist in ui.rb at line 54.
If I change the script to use the `ruby18` shim, it works as intended.
Is this expected behaviour or am I doing something wrong?
Stefan