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
This happens randomly. Switching from PHP to CSS files (with several files open in windows/tabs) or opening CSS files, they open with no highlighting even though the bundle is set to CSS automatically. Happens mostly when Command+Option+Arrow between tabs or opening CSS files with several hundred lines. switching to another bundle and back to CSS fixes it.
If Textmate is open for a while (maybe 2 hours +) sometimes the text fields in the Find/Replace window become unresponsive (visually). The text in the search fields won’t update even though they are changing. Closing the search window and opening it again will show the changes but it’s only fixed by quitting and relaunching.
I can't reproduce these things at will, so maybe it’s something on my system and not a bug. Using OS X Mavericks with latest Textmate on Late 2013, 15" Macbook Pro.
Hi,
not sure if "folding" is the correct word here, but, given the following code is it possible to do this in TextMate:
let x = { number: 42 }
1. I want to place the cursor after the { and when I press return, I the closing bracket should too go on a new line
let x = {
number: 42
}
2. If I put the cursor in front of the word something and press backspace, wrap it back to the original line.
Thanks
Fabian
Hi,
I noticed recently that the nightly builds started wrapping non-monospaced long before the line hits the soft wrap column or window frame.
To reproduce:
1. Make a new document
2. Type lorem<tab> to get the lorem ipsum snippet
3. Open View->Font->Show Fonts
4. Select a monospaced font like Courier
5. Select View->Enable Soft Wrap
6. Select View->Wrap Column->Use Window Frame
7. Resize the width of the window and note how the text wraps by the window frame
8. In the font panel, change to a non-monospace font like Helvetica
9. Resize the width of the window and note how the text wraps a good bit before the window frame
Expected result is that step 9 behaves like step 7.
After a little bit of sleuthing I think the relevant commit is https://github.com/textmate/textmate/commit/f487c5d57585f98d16273e0fa63b8a3…
The character used to calculate column width changed from m to n, which doesn’t matter for monospaced fonts, but for non-monospaced fonts it can be quite a difference.
Would it be possible to change back to n?
Although this can have the opposite effect of the line sometimes overshooting the window frame by a tiny bit before soft wrapping. To fully fix this you would have to calculate the soft wrap width of each individual line, but I presume that that is quite a big change and could present speed issues with large files.
Cheers and thank you for TextMate,
Kim
Is it possible to show an NSPopover using a custom nib and the dialog command? Or does the NSPopover require some code to show it?
My use case is a command I’m working on for displaying generated documentation, i.e. JavaDoc, for a given symbol. So far I’ve been using a tooltip, It’s working fine but the problem with the tooltip is that it doesn’t support scrolling, when the content gets too long. Ideally I would like something that also is interactable, like clicking on links. I would like to avoid the HTML window/view because I think it’s bit too heavy.
--
/Jacob Carlborg
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: Weird file not updating problem
> Date: August 21, 2016 at 2:56:20 AM PDT
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 20 Aug 2016, at 8:57, Jack Royal-Gordon wrote:
>
>> I made some changes to a file that was open as part of a Rails project (the whole project was opened) and saved the changes. TextMate showed the file as having no unsaved changes. However, inspecting the file outside of TextMate, I could see that the the changes were not saved.
>
> And even pressing ⌘S did not change that? ⌘S will always save, even if it shows “no changes”.
Did press ⌘S several times, as when I ran the file and it did not work I thought I had forgotten to save.
>
> Also, when you have a file open, you can use Bundles → Diff → Document With Saved Copy. This will run a diff util on the buffer and the file on disk, that should be able to confirm if somehow TM’s buffer is different with the file on disk after ⌘S.
That’s a good idea. Did not know about that.
>
>> I rebooted my computer and when TextMate reopened, there was the file with my changes showing (but which were not saved although again it showed as having no unsaved changes). I had to close the file, reopen it, and re-apply the changes before saving again in order to actually save the changes
>
> So you rebooted, re-opened the file, and while TM found your (unsaved) changes, it would still not save on ⌘S. But closing file (again) and re-opening now did show the file on disk, and you could save?
Correct. When I reopened, it showed the file without the changes that did not save.
>
>> […] I wanted to see if this was a known issue with 2.0-beta.12.
>
> Nothing I have heard of before, but from the description above, it really sounds like TextMate was operating on a different file than what you was inspect on disk, that would explain all of the behavior perfectly, including rebooting and showing the updated file “with no changes”, yet after closing it and opening the (right) file, you now lost the changes, and had to re-do them.
Since I opened a folder in Textmate and was accessing files via the File Browser, I have a hard time imagining how it was accessing a different file. But I agree that that would explain all of the strange behavior.
>
> So what should probably be looked into is, how did it get to operate on this other file, and where on disk was it?
Yes, that would be the question.
>
> Did anything work on the files on disk (TextMate will track renames, hence if you open /path/to/file and then move it to /path/to/other/place, it will update its reference).
>
> Should it ever happen again, you can right-click the proxy icon to see where the file is on dis, or use File Browser → Reveal Document.
I will do that. Thanks for the response.
Hi All,
I made some changes to a file that was open as part of a Rails project (the whole project was opened) and saved the changes. TextMate showed the file as having no unsaved changes. However, inspecting the file outside of TextMate, I could see that the the changes were not saved. I rebooted my computer and when TextMate reopened, there was the file with my changes showing (but which were not saved although again it showed as having no unsaved changes). I had to close the file, reopen it, and re-apply the changes before saving again in order to actually save the changes (I probably could’ve copied the entire file onto the clipboard before I closed and reopened and made the changes that way, but I didn’t expect the changes to be gone).
Before opening an issue on GitHub, I wanted to see if this was a known issue with 2.0-beta.12. I’m running on OS X 10.11.6. Let me know if you need any other configuration information or have any thoughts that might help me to reliably reproduce this problem (I’ve noticed a couple times where files that were left open while changing GIT branches did not recognize that the underlying files had changed as TextMate 1 did. Might this be an issue with capturing directory change events?
Thanks in advance for helping!
Jack
If I have a command with the following Ruby code:
require ENV['TM_SUPPORT_PATH'] + '/lib/ui'
result = [{ 'match' => 'foo', 'display' => 'foo' }]
TextMate::UI.complete(result)
If I type "f" and then invoke the command the completion menu appears as expected, containing "foo". If I type a non-matching character, like "s" then it takes around three seconds for the menu to disappear and the "s" to appear in the editor.
Not sure if it's related, but if I select some other text in the meantime the "s" appears immediately.
—
/Jacob Carlborg
Hi,
When I do a "Find in Project" and click "Replace All", the dialog states "2
replacements made across 1 file(s)".
But when I run the search again, I get the same results. When I open the
concerning file, and click "Replace All", the replace goes just fine.
Also, turns out it's possible to click on "n replacements made ...", which
makes it blue. Does this serve a purpose?
– Koen
Sent from [Nylas N1](https://link.nylas.com/link/33wd9n5m5l3cdcz4d1oikbwcz
/local-58ab6731-da97/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=dGV4
dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=), the extensible, open source mail
client.
I got used to being able to write short documents in Markdown, preview and then print to PDF. However, this seems to be broken now. I can preview fine, but printing to PDF (or opening in preview) causes Textmate to crash. Is this a bug, or something I’ve done wrong?
Thanks
João
I like the new feature in v2.0-beta.11.10 where targeted settings for
untitled files use file patterns that match the file's directory. It does
not, however, seem to pick up the fileType setting.
Would be nice to specify that new files created in various directories in
the project each have a given fileType based on their location.
I just started TextMate and it prompted me to install this new version 2.0
beta 12. That's all great. But I'd like to know what changed from the
previous version. I've looked at the various TextMate places (textmate.org
and github) but can't find any kind of list of "what changed" in the new
version, and not even a list of issues that got closed.
Just curious because TextMate is a great tool that I rely on and I'd like
to know what's going on.
I’m currently working on adding some new features to the D bundle. These are features like code completion, go-to-definition and similar features. These commands are using a parser tool which expects the current cursor position in bytes from the start of the source file. TextMate only provides the cursor position in the form of column and line number. This requires the commands to convert to and from cursor position in bytes to cursor position in column/line number. Is this information something that TextMate already has and can provide or, if not, provide it in a more efficient way then the conversion performed by the command?
I would also need to be able to specify the cursor position in bytes using the “mate” tool. I’ve also looked at the implementation of the Go bundle for the same commands and it has the same issue.
—
/Jacob Carlborg
TM2 does a nice job of formatting Github markdown, and places it in a new
window. Unfortunately, I have yet to figure out how to print or export the
contents of the formatted window. Is this a bug in TM2 or in my head?
Lewy
> This cannot currently be changed.
> Can you tell me what you would like to change it to?
I often a) have a lot of files open that are relevant for some project
(source files, plus several plain text "notes" files), and b) several
of them have long file names.
The long file name tabs take away a lot of tab bar space; as a
workaround, I try to rename them to something shorter, if possible, or
I close/reopen them. It's not my ideal workflow though, where I just
cycle through the open tabs, and the names can be as long they need to
be.
Ideally, I'd *cut down* the file name via some regex, say, stripping
the file ending, and generally, only displaying the last n characters
of the name, so that all tabs would have the same width (and I can
have more of them open without the tab bar overflowing).
I know... bit of a minor/OCD-ish problem, but that would be my ideal
scenario -- it would be similar to what I can already do with the
window title.
> You _can_ give documents a custom display name, but currently only
> via `mate` when they are opened, but this display name is used beyond
> just the tab titles, I assume you want to keep the original display name
> in other locations.
I wouldn't mind it, since I'm more interested in *shortening* the tab
title than I am in displaying permanently the full title (which I can
always get it via tab mouse over).
But to be sure: does the 'mate' solution work together with "open
(recent, favorite) project" at TM startup? Because that's what I do it
now, having set "showFavoritesInsteadOfUntitled" to true (and actually
using a bit of a hack to "bookmark" different projects, consisting of
files across various directories, by abusing that the relevant
information seems to be stored in "RecentProjects.db").
I’m working on a new RuboCop bundle. I want the linting to take place
everytime a Ruby document is saved, with warnings then displayed in the
gutter.
So I implemented a very simple command using
`callback.document.did-save` and `TextMate::Executor.run`, and it works
great so far. However, if I set the command to “Output: Discard”,
TextMate’s UI seems to be blocked (no cursor movement or other editing
possible) while the command is running.
Interestingly this does not happen with “Output: New Window”: In this
case I can continue editing the document even while the command is still
running.
Is this a bug? Or is there are workaround?
(Eventually the bundle will of course also include a command that shows
RuboCop’s output. But I consider this too intrusive to run on every save.)
Stefan
> It would be easy to read this from user defaults instead, though
> you may also need preferences as to how to truncate a title.
Tinkered a bit myself yesterday with the source, it sort of worked, but
I always seemed to break the layout in some subtle way (I guess it
didn't help that I didn't quite understand what 'tabViewSpacing' does
exactly). So when I noticed the brandnew build with the new user default
settings I felt a bit stupid.
Seriously though, thanks!
One last question if you allow: minimumTabSize and maximumTabSize don't
behave exactly like I initially thought they would. For example, setting
minimumTabSize = maximumTabSize = some_value made me expect
all tabs would now be of identical (horizontal) width, at any time, but
that's not the case (long file names still get wider tabs than what is
set in maximumTabSize).
That's by design I assume, as in: maximumTabSize only kicks in when the
tab bar overflows. Did I get that right?
I stumbled upon https://github.com/textmate/textmate/pull/1297. The PR
says it was merged, but I think this was a mistake? What’s the current
state of this? Would be really nice to use this for RuboCop, RSpec and
co :-)
Stefan
If I have a command with the following Ruby code:
require ENV['TM_SUPPORT_PATH'] + '/lib/ui'
icon_plist = "{ tm_small = '/Applications/TextMate.app/Contents/Resources/TextMate Help/images/tm_small.png'; }"
system(ENV['DIALOG'], "images", "--register", icon_plist)
result = [{ 'match' => 'foo', 'display' => '12345', 'image' => 'tm_small' }]
TextMate::UI.complete(result)
If I type "f" and invoke the command the completion menu will appear. But it looks like the menu doesn't take into account the width of the image since the "5" is cut off and there's no margin between the "4" and the edge of the menu.
—
/Jacob Carlborg
This has already been discussed almost two years ago:
http://lists.macromates.com/textmate/2014-October/037962.html
I just realized that since beta 9.3 it is possible to use coloured
images for the gutter, so I decided to give it a try (see attached
screenshot).
I like this look, especially as warning marks stand out much better now
against the SCM status marks.
If you’re interested, here’s the fork:
https://github.com/noniq/scm-diff-gutter.tmbundle/tree/coloured-marks
In the discussion back then Allan mentioned that he considered adding a
dedicated “diff” api:
> I like the mockup; but for the API, there are several parameters that
> set it apart from the single-color scalable shape one can currently
> place to the left of a line, so it would probably be better to make a
> dedicated “diff” API where the command set the status for a line
> range, and then it’s up to TextMate, how to visualize that.
Is this something that will be implemented in the foreseeable future? Or
should I try to polish my current solution to make it ready for merging?
(Open questions are at least: How to adapt for different gutter
background colours? What about colour-blind people [1]?)
[1]: http://lists.macromates.com/textmate/2014-October/037980.html
Stefan
hello all,
I’m having a peculiar problem.
Context: Using the git bundle, when I commit, I get a list of changed files. I can hit the Diff button next to a file to get a diff between staged and the last commit.
Expected: I see a diff results file with coloring (e.g. + lines green, - lines red).
Actual:
- I see no coloring and a prompt to install the Diff bundle.
- Obeying the prompt does not change anything.
- I get a prompt to install again and there is still no coloring.
- On the bottom window popup to select file type, there is no option for a Diff file.
This happens on a newly installed TextMate, 2.0.11.16.
Is anyone else seeing this?
best wishes, Eric
—
Eric Hsu, Professor of Mathematics
Director, Center for Science and Mathematics Education
San Francisco State University
http://math.sfsu.edu/hsu
> On Aug 6, 2016, at 7:01 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. display problem (Kyle Johnson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 6 Aug 2016 10:01:06 -0400
> From: Kyle Johnson <kbj(a)linguist.umass.edu>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] display problem
> Message-ID: <8F38CAF9-12A9-496D-9B6A-80194A475529(a)linguist.umass.edu>
> Content-Type: text/plain; charset="utf-8"
>
> Upon upgrading to 2.11.16, I?ve seen a new behavior from TextMate. When I jump to a new point in a document ? say by using Find ? lines of text overlap. If I resize the window, it sorts itself out, but moving the cursor around or entering text doesn?t cause it to. The following screenshot shows the problem.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.macromates.com/textmate/attachments/20160806/ea5d4ad4/attachme…>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: flow.png
> Type: image/png
> Size: 778002 bytes
> Desc: not available
> URL: <http://lists.macromates.com/textmate/attachments/20160806/ea5d4ad4/attachme…>
>
> ------------------------------
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
> End of textmate Digest, Vol 99, Issue 5
> ***************************************
Upon upgrading to 2.11.16, I’ve seen a new behavior from TextMate. When I jump to a new point in a document — say by using Find — lines of text overlap. If I resize the window, it sorts itself out, but moving the cursor around or entering text doesn’t cause it to. The following screenshot shows the problem.
Hey
I was trying to find out if there's a way to change the title of open tabs
(currently: full file name), similar to how one can change the window
title, as described in detail e.g. here:
http://blog.macromates.com/2011/format-strings/
(great read, by the way).
Since there's not equivalent to the 'windowTitle' variable in
.tm_properties, that path is not an option.
So I thought I'd be clever by manually setting whatever variable it is the
tab title relies on. Any chance that might work out?
I tried already setting static values for the obvious candidate variables
(TM_FILEPATH, TM_DISPLAYNAME), which had the expected effect on the
*window* title, but didn't affect *tab* title, which makes me think I'm on
the wrong track here.
Anyone knows the details and cares to correct my misunderstanding?
Hi there,
I'm a researcher studying software evolution. As part of my current
research, I'm studying the implications of open-sourcing a proprietary
software, for instance, if the project succeed in attracting newcomers.
However, I observed that some projects, like _textmate_, deleted their
software history.
https://github.com/textmate/textmate/commit/9894969e677c39007c2860f09e3f823…
Knowing that software history is indispensable for developers (e.g.,
developers need to refer to history several times a day), I would like to
ask textmate developers the following four brief questions:
1. Why did you decide to not keep the software history?
2. Do the core developers faced any kind of problems, when trying to refer
to the old history? If so, how did they solve these problems?
3. Do the newcomers faced any kind of problems, when trying to refer to the
old history? If so, how did they solve these problems?
4. How does the lack of history impacted on software evolution? Does it
placed any burden in understanding and evolving the software?
Thanks in advance for your collaboration,
Gustavo Pinto, PhD
http://www.gustavopinto.org
When I file drop a .shp file, the cursor jumps to the line below. How can I have the cursor jump to before the <- ?
Also, once I have dropped the file into TextMate, how can I make TextMate the active window (rather than the active window being Finder)?
Attached show the file drop and the code that does the file drop
Ross Ahmed
Ecologist
—
07875533906
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>
Hi guys
I wanted to know if there was a way in Textmate to do a find and replace on text files generated as a youtube transcript. These are text files downloaded containing the closed captioning text.
The time stamp lines are formatted with quasi timecode as start,end: 0:00:10.100,0:00:11.191
So there would be a line of timecode, then 1 or more lines of text, then a blank line, and then it starts over again on a new line with the next timecode start.
Also, if there is a way to remove white space after commas, but keep sentences in tact, that would save heaps of time.
These transcript files are long, and are taken from videos that are 25minutes to 1 hour duration, so doing it manually would be hell. At least if there is an easy way to strip out this stuff, manually separating paragraphs would be pretty fast.
Any advice is welcomed.
thanks
Hello!
A couple of days ago my Emmet Plugin stopped working.
This might not seem like a big deal, but I love Emmet, and so do many of my
web-dev cohorts.
I traced the error down to explicit blacklisting of this plugin in TextMate.
https://github.com/textmate/textmate/commit/4b19e404403c0d237578ecac583796d…https://github.com/textmate/textmate/commit/81d2586ffcfc9385d9bb362febda7c7…
This blacklisting is intentional, and rational. Apparently users have had
the plugin installed and its been crashing for years. I’m not sure if this
is because its crashing in use, or if its because the plugin was installed,
but doesn’t support the OS and therefore it crashes in the background
without issue, or if there are other crashes.
What I do know is that the plugin isn’t really being updated, its sort of
frozen in time, but it does work if you use @pingjiang’s custom built
binary from https://github.com/emmetio/Emmet.tmplugin/issues/10. @pingjiang
Had gone in and updated the plugin, I’m not exactly sure what was required
for him to do, but it was at least partially just a recompilation on a
newer machine (updating the release targets).
Is there any way to know if this custom built plugin is causing crash
reports, or is it just the original?
Given that it takes some effort to get a working version, I totally get if
this plugin remains blacklisted *but *I’d like to see a path to Emmet
becoming easy to get working on TextMate sometime soon.
What I’ve discovered so far is that the blacklisting uses "contains" rather
than "equals" so updating the Bundle identifier to
'io.emmet.EmmetTextmate2' was not enough as it still contained the original
"io.emmet.EmmetTextmate" so in my new bundle i’m using "io.emmet.EmmetTM2"
instead. Could this be changed to equals?
My modified plugin is available here;
https://github.com/loadedsith/emmet-objc/releases/tag/v10.11.1
or more directly
https://github.com/loadedsith/emmet-objc/releases/download/v10.11.1/Emmet.t…
My change;
https://github.com/loadedsith/emmet-objc/commit/4791f1f6b5f5bc286754fed5f9b…
And the original supporting changes;
https://github.com/pingjiang/emmet-objc/commit/d58f30ce40f2a7c07f3af0d4e4b8…
Thanks,
Graham Heath
I’m working on a bundle to support YAML front matter in Markdown (see
https://github.com/noniq/Markdown-Front-Matter.tmbundle/).
The grammar for this is easy, but I also want to strip front matter
blocks (if present) from the document before processing the markdown.
And it would be really cool to have this working with whatever Markdown
bundle (standard, GitHub Markdown, …) the user is currently using.
So in principle I want to implement a preview command that just strips
the frontmatter and then delegates to whatever else preview command
would have been normally used, if this bundle would not be installed
(like calling `super` in an overridden oop method).
Is this possible?
TextMate has a nice behavior when the caret is between curly braces and you press return
{|}
turns into
{
|
}
I'd like to have the same behavior for round and square brackets. And I achieved that by replacing in the grammar the meta.brace.round.js and meta.brace.square.js scopes with pairs of punctuation.section.scope.begin.js and punctuation.section.scope.end.js, but this looks like a hack to me, so I was wondering if there's a correct way to achieve that.
Today I noticed that a bundle command using TextMate::UI.request_item is
no longer working: Instead of opening a dialog window it only gives a
warning:
tm_dialog (async_close): Window '(null)' doesn't exist
Simple command to reproduce:
```
#!/usr/bin/env ruby18 -wKU
require "#{ENV["TM_SUPPORT_PATH"]}/lib/ui"
TextMate::UI.request_item(:items => %w(foo bar baz), :title => 'Title')
```
Known bug?
I've discovered today that the "insert template" command for the LaTeX
bundle doesn't work. It fails silently. I'm using TextMate 2 beta 11.5
on OS 10.11.5.
Kyle
I'm working on adding support for autocomplete to the D bundle. I'm
using the Ruby method "TextMate::UI.complete" to display the completion
result. This UI supports displaying images in the list of the results,
first it took me a while to figure out that the images needs to be
registered using the dialog command.
Now the question is why is this necessary? I looked in the source code
for the dialog command and it looks like the register action/sub command
creates NSImages of the given paths. I was thinking that the "popup"
dialog command could automatically register the images.
As far as I know it's not possible to automatically execute a bundle
command ones, so the completion command needs to register the images
every time because it doesn't know if the images have already been
registered.
--
/Jacob Carlborg
Since a recent update (maybe since
[60180f7](https://link.nylas.com/link/33wd9n5m5l3cdcz4d1oikbwcz/local-
2f068e83-2834/0?redirect=https%3A%2F%2Fgithub.com%2Ftextmate%2Ftextmate%2Fcommit%2F60180f77ec16a4c058c8845ebb9eb41ab6ef227e&r=dGV4dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=)
?) callback.document.will-save isn't working anymore when used as semantic
class in a bundle.
Has this been changed?
Koen
Sent from [Nylas N1](https://link.nylas.com/link/33wd9n5m5l3cdcz4d1oikbwcz
/local-
2f068e83-2834/1?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=dGV4dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=),
the extensible, open source mail client.

Is there some mechanism that is suppressing keyboard events in the
browser that pops up when showing HTML in a new window? Pressing the
tab key does not focus links in the window. When I listen for `keyup`
events on `document`, tabbing is trapped to the body element.
Ryan
Since templates were discontinued I've been using this AppleScript to
make a quick HTML doc:
#!/usr/bin/osascript
tell application "System Events"
keystroke "p"
using {control down, option down, shift down}
keystroke "4"
"<!DOCTYPE html> <html lang=\"da\"> <head> <meta charset=\"utf-8\">
<title>$1</title> <meta name=\"description\" content=\"\"> <style
type=\"text/css\" media=\"screen\"> *{margin:0;padding:0;} $2 </style>
</head> <body> $0 </body> </html>"
end tell
It’s been working fine until now. I’m on beta.11.8, and I’m very sorry,
but I don’t know if the problem arose with this update or one of the
ones from last week.
The problem is rather unusual. It appears that System Events is
reversing the order of the commands.
Instead of simulating the keyboard shortcut for selecting PHP, all of
the template is inserted via keyboard simulation, then 4 for PHP is
pressed and only THEN the shortcut is pressed. But it doesn’t go back to
working, if I reverse the sequence in the command code.
This is what it looks like:
Resultat
Here are the settings for the command:
Settings
Rasmus
Hi,
I really love the simple yet effective autocompletion using [ESC].
However, I just began to dig into Scheme, and it seems the autocompletion doesn't work with functions whose name has dashes.
For example, with the following code :
(define (a-b x) (* x x))
(define c-d 2)
If I try and type a and press [ESC], nothing happens. However, when I try with c, then the completion works.
It might be a problem of the grammar.
How can I fix it ? I don't know how the grammar influences the autocompletion.
Best regards,
Louis
I was on Mavericks this morning, attempting to compile TextMate (latest git
HEAD)
But I suspect its no longer possible since it appears to require a more
recent version of XCode - error in one function due to 'forced copy in
constructor'. It was related to a parents = {} parameter, I didn't dig too
deeply.
Not to worry, it gave me a good reason to upgrade to El Capitan.
So I've done that, and updated all the homebrew packages, aswell as Xcode
The github states that hg (mercurial) is optional, but I installed it
anyway to allow the unit tests to run.
Unfortunately I'm still having problems
----- environment
[carpii@imac:~/dev/textmate]$ clang++ --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
[carpii@imac:~/dev/textmate]$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
[carpii@imac:~/dev/textmate]$ xcodebuild -version
Xcode 7.3.1
Build version 7D1014
[carpii@imac:~/dev/textmate]$ sw_vers -productVersion
10.11.5
------- compilation
[carpii@imac:~/dev/textmate]$ ninja -t clean
Cleaning... 515 files.
[carpii@imac:~/dev/textmate]$ ninja io
[1/1] Generate ‘build.ninja’…
[109/109] Run test ‘/Users/carpii/build/TextMate/Frameworks/io/test_io’…
[carpii@imac:~/dev/textmate]$ ninja TextMate
[229/1107] Run test ‘/Users/carpii/build/TextMate/Frameworks/scm/test_scm’…
FAILED: /Users/carpii/build/TextMate/Frameworks/scm/test_scm && touch
/Users/carpii/build/TextMate/Frameworks/scm/test_scm.run
/bin/sh: line 1: 7210 Segmentation fault: 11
/Users/carpii/build/TextMate/Frameworks/scm/test_scm
[229/1107] Compile ‘Frameworks/file/src/open.cc’…
ninja: build stopped: subcommand failed.
Any ideas please?
I've created a bundle for ESLint and I'd like to find out the requirements for submission to Textmate's bundle list in the preferences pane.
https://github.com/ryanfitzer/eslint.tmbundle
Thanks,
Ryan
I was playing around with the new 'theme' setting in ./.tm_properties.
Given the file: ./webapp/WEB-INF/web.xml
this works:
[ "text.xml" ]
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6
this does not:
[ "*.xml" ]
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6
this works:
[ "webapp/**" ]
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6
this does not:
[ "webapp/WEB-INF/**"]
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6
It was my understanding that all of these selectors should apply the
setting to this file? What am missing?
While testing out per-type themes, I noticed all `.txt` files came up as
Python. I’m sure I did this to myself at some point, but I couldn’t
get it to go back.
It should be just a matter of opening a `.txt` file and selecting
“Plain Text”, right?
I was able to fix it manually by editing `Global.tmProperties`, but
thought I’d report it in case it’s a bug introduced with the new
automatic type detection or something.
On a related note, changing the type of an open document doesn’t
change the theme, but it’s a brand new feature. That’ll work
eventually, right?
--
Rob McBroom
http://www.skurfer.com/
I’m not able to drag tabs to a different position within the same window. I found a workaround where I could drag it to another window and then back to reorder. Anyone else having this problem?
Latest nightly build.
Ed
Posted this in the github bugs repo
(https://github.com/textmate/bugs/issues/21), but was directed here for follow
up.
Anyway, for some reason "Go to Related File" with a custom relatedFilePath
worked in beta 10, but not thereafter.
I've setup a test project, uploaded here:
https://github.com/textmate/bugs/files/349542/textmate-related-file.zip
When you open the project with beta 10, and open the `test.rb` file, `Go to
Related File` will take you to `test_spec.rb` and from there `Go to Related
File` will take you back to `test.rb`.
In any version after that, eg the latest beta, 11.4, this won't work.
Has something changed with the format of `relatedFilePath`?
Thanks,
Koen
Sent from [Nylas N1](https://nylas.com/n1?ref=n1), the extensible, open source
mail client.
Hi all,
On this Monday morning I want to thank all the folks that contribute to the
constantly improvements of TextMate, and its bundles!
As a TM-user I really appreciate all your work!
Regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Just-want-to-thank-tp30144.html
Sent from the textmate users mailing list archive at Nabble.com.
Has anyone else noticed that if you do a project search and get matches in
files (e.g. minified JS) that have very long lines, when you scroll past
those lines the app gets super bogged down, sometimes to the point of
needing to be force-closed?
I would have figured this would have been fixed by now but maybe it's
something peculiar to my setup. Please advise.
Thanks.
--
Tom Smyth
Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change
sassafras.coop *·* @sassafrastech
Resident, Touchstone Cohousing
touchstonecohousing.org
Is there a 'defaults' option to disable atomic saves in TM2?
I host all my code on linux VM's on an ESXI server
Usually I mount them via AFP, but Im ditching this now in favour of Samba
Since moving to SMB/CIFS, I'm finding TM2 is now frequently complaining
that it cannot save a file due to 'Resource Busy'
When this happens, even restarting TM2 doesn't fix it, I have to restart
the Samba service on the server (which isn't a great solution)
I think it may be somehow related to atomic saves, so Id like to disable
those (given that I still have git to protect any aborted writes)
Thanks