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
Hello,
when I am in a situation where I have identically named files in different directories open in TextMate, then the displayed path in the title bar doesn’t update to reflect the currently selected tab. Is this intended?
For example
> mkdir t
> cd t
> mkdir foo bar
> echo foo > foo/baz.txt
> echo bar > bar/baz.txt
> mate */baz.txt
leads to a situation where it is impossible to see whether I’m currently editing baz.txt in foo or bar, see http://www.maven.de/pics/tm2_path_bar.png vs http://www.maven.de/pics/tm2_path_foo.png .
I would have expected the title bar to reflect my currently active tab.
Thanks,
Daniel.
Is it possible with snippets to make a first option selection determine the choices displayed for a subsequent option?
An example would be with choosing version numbers, choose a major version number, then constraining minor version number based on the major version number selected.
So ${1|2,3,4|}.${2|<list here should be dependent upon first selection|}
Thanks,
John Joyce
I'm assuming somebody else has noticed.
But calling it out anyway.
Saving via command s no longer works in the bundle editor window.
Saving does work via the File menu.
When I've got a lot of tabs open, I sometimes want to go from the file whose contents I'm editing to the listing of that file in the file browser. Didn't there used to be a way to do this? I can't find it. What I want is that the outline in the file browser should open the triangles as necessary to reveal the file listing and select it and scroll to it.
Xcode does this with Navigate > Reveal in Project Navigator.
If TM doesn't do this, could this be a feature request? If it already does, could you remind me how?
Thx - 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
I have two displays. If I have two TextMate projects open, one in each
display. When opening a file from the Terminal using the "mate" command
in the project located in the secondary display TextMate will correctly
open that file but set the focus on the project in the first display.
I'm not sure if this is a problem with TextMate or the OS X window
management but it can be quite annoying.
--
/Jacob Carlborg
I am working in a Rails project, and one of the files in the project tree is a catalog of books, exported from another system as a 1MB single-line file. When I engage multi-file search, I will end up in spinning-pizza-of-death until I force-quit the app. As a work-around, I have had to keep search from looking inside it by declaring it to be one of the non-text files (right after jpeg) in the preferences in order to be able to search for anything at all across files.
Is there a better way that I can handle this? It's non-ideal to never be able to look in a JSON file within TM. I can use BBEdit, which does not have any issue at all opening this file, but I'd like to keep it all together.
How else could I globally keep multi-file search from trying to read this file?
Thanks,
Walter
The new feature: mate --project $(uuidgen|tr -C $'\n-' 0) file.txt
is broken as it echoes:
$ mate --project 00000000-0000-0000-0000-0000000000000 xcrash.C
uuid_t: error parsing ‘00000000-0000-0000-0000-0000000000000’
and does not open in a new window. Also the alternative:
$ TM_PROJECT_UUID=00000000-0000-0000-0000-000000000000 mate xcrash.C
uuid_t: error parsing ‘00000000-0000-0000-0000-0000000000000’
does not work anymore.
In addition the —-project option is not documented in mate --help, where it still
is documented as —uuid.
Please fix as my workflow pretty much depends on it.
Cheers, Fons.
--------------------------------------------------------------------------
Dr. Fons Rademakers CERN - European Organization for Nuclear Research
Chief Research Officer 1211 Geneve 23, Switzerland
CERN openlab Tel: +41227679248 Mobile: +41754113742
--------------------------------------------------------------------------
Thanks. The recommendations worked. Adding L:(…) around all the injections selector does the trick. I don’t know why it didn’t work for me then, but probably because of the second problem. Simplifying the other selectors and not trying to follow the ERB syntax makes everything a little bit easier to understand (and correctly syntax highlight both languages in the same file).
Thanks a lot for the help!
El lunes, 30 de mayo de 2016 a las 14:36, textmate-request(a)lists.macromates.com (mailto:textmate-request@lists.macromates.com) escribió:
> On 16 May 2016, at 17:29, Daniel Rodr?guez Troiti?o wrote:
>
> > A simple version of my grammar looks like this:
> > [?]
> > 'source.swift.gyb - (meta.embedded.block.gyb)' = {
> The injection scope selector should use L:(?) so your injected rules
> go before Swift?s (as you also write yourself).
>
> > { begin = '(^|\s*)(?=%\{(?![^\}]*\}%))';
> This seems to be the problem, this rule doesn?t actually match
> anything as it?s a ?begin of line? assertion and then a ?look
> ahead? assertion.
>
> So while the rule ?matches? when you have `%{` at the beginning of a
> line, no characters are consumed, so we descend into the rule?s
> patterns, but here we also have the Swift rules, and the L:(?) only
> affects the priority of the root rules injected (not their children), so
> the Swift rule will consume the `%` character because it was not
> consumed by the parent rule?s begin pattern.
>
> A minimal version of your grammar that works would be this:
>
> { injections = {
> 'L:(source.swift.gyb - meta.embedded.block.gyb)' = {
> patterns = (
> { name = 'meta.embedded.block.gyb';
> begin = '%\{';
> end = '\}%';
> contentName = 'source.python';
> patterns = ( { include = 'source.python'; } );
> },
> );
> };
> };
> patterns = ( { include = 'source.swift'; } );
> }
>
> I understand you wanted to scope the leading/trailing whitespace and
> then re-use the actual matching of %{ and %}, but I don?t think this
> is possible, though I think it will be simpler to add optional matches
> like this:
>
> begin = '(^\s*)?%\{';
> end = '\}%(\s*$)?';
>
> Then name these captures for
> `punctuation.whitespace.embedded.[leading|trailing].gyb`.
I tried to open a folder in TextMate today (one I open often) and it
crashed. (It was already running, as always.) Ever since, I’ve been
unable to get it to launch.
It detects the crash and asks about restoring open documents. It crashes
no matter what I choose there.
I haven’t changed any preferences or bundles or installed any updates
today.
I’ve tried:
* `defaults delete com.macromates.TextMate.preview.LSSharedFileList`
* `defaults delete com.macromates.TextMate.preview`
* `mv ~/.tm_properties ~/foo`
* trashed `~/Library/Saved Application
State/com.macromates.TextMate.preview.savedState`
* trashed `~/Library/Caches/com.macromates.TextMate.preview`
* restored `~/Library/Applicaiton Support/Avian` and `TextMate` from
a backup taken this morning
* downloaded the app again from the web site
* tried an older version (beta 7.3)
* rebooting, like a poor beleaguered Windows user
The only thing that *did* work was launching it as a different user, so
it’s something with my account, but what’s left?
I haven’t tried deleting all my bundles, but from the dates, I don’t
think any have changed since March.
From the crash log:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_platform.dylib 0x00007fff94e40331
_platform_memmove$VARIANT$Ivybridge + 49
1 com.macromates.TextMate.OakTextView 0x000000010f92dfe1
oak::callbacks_t<ng::callback_t, false>::remove(ng::callback_t*) + 105
2 com.macromates.TextMate.OakTextView 0x000000010f8feeea
-[OakTextView setDocument:] + 437
3 com.macromates.TextMate.OakTextView 0x000000010f8f0584
-[OakDocumentView setDocument:] + 643
4 com.macromates.TextMate.OakTextView 0x000000010f8f01f4
-[OakDocumentView dealloc] + 457
5 libobjc.A.dylib 0x00007fff9676389c
objc_object::sidetable_release(bool) + 236
6 libobjc.A.dylib 0x00007fff96749e8f (anonymous
namespace)::AutoreleasePoolPage::pop(void*) + 575
7 com.apple.CoreFoundation 0x00007fff93a6b6f2
_CFAutoreleasePoolPop + 50
8 com.apple.Foundation 0x00007fff89f13762
-[NSAutoreleasePool drain] + 153
9 com.apple.Foundation 0x00007fff89f2d5cc
_NSAppleEventManagerGenericHandler + 121
10 com.apple.AE 0x00007fff8d45934c
aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned
char*) + 531
11 com.apple.AE 0x00007fff8d4590c9
dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 31
12 com.apple.AE 0x00007fff8d458fd3
aeProcessAppleEvent + 295
13 com.apple.HIToolbox 0x00007fff90935c6e
AEProcessAppleEvent + 56
14 com.apple.AppKit 0x00007fff8e357da2 _DPSNextEvent
+ 2249
15 com.apple.AppKit 0x00007fff8e356e58
-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
16 com.apple.AppKit 0x00007fff8e34caf3
-[NSApplication run] + 594
17 com.apple.AppKit 0x00007fff8e2c9244
NSApplicationMain + 1832
18 com.macromates.TextMate.preview 0x000000010f533f19 main + 840
19 com.macromates.TextMate.preview 0x000000010f51e914 start + 52
Thanks!
--
Rob McBroom
http://www.skurfer.com/
Hello,
I have a few questions about the gutter and status bar:
Is there a way to fully turn off the gutter?
Is there a way to theme the gutter?
Is there a way to customize the gutter and only show the line numbers but not the fold markers, for example.
Is there a way to customize what is shown in the status bar, for example, to remove the record button? (I know the full status bar can be turned off with a ‘default’ command.)
Is there a way to fully turn off the “control bar” at the bottom of the file browser?
If the above are not currently possible, are there any plans to add support for such? Also, is the application architected in a way that (some of) the above would be straight forward to implement? If so, I would be willing to do it.
Thank you,
Erik
Hi,
I was trying to create a composed grammar for Gyb (https://github.com/apple/swift/blob/master/utils/gyb.py). Gyb is mostly Swift code, with some snippets of Python embedded. For embedding the Python code you surround the code with `%{ }%` or start the lines with `%`.
For parsing Swift or Python code I’m using the official bundles (https://github.com/textmate/swift.tmbundle and https://github.com/textmate/python.tmbundle). For the injection I based my grammar on HTML (Rails) (https://github.com/textmate/ruby-on-rails-tmbundle/blob/master/Syntaxes/HTM…) which is mostly the same idea.
The grammar almost works. The embedded blocks are marked and the syntax highlight works, but I need to include a space before the percent signs for it to work, which is not ideal. It looks like the percent sign are interpreted as keyword.operator.remainder.swift (https://github.com/textmate/swift.tmbundle/blob/master/Syntaxes/Swift.tmLan…) before being able to be part of the injected grammar.
I found some references that “left scope match” (L:) might be able to help, but I cannot find a way to get it working.
A simple version of my grammar looks like this:
```
{ injections = {
'source.swift.gyb - (meta.embedded.block.gyb)' = {
patterns = (
{ begin = '(^|\s*)(?=%\{(?![^\}]*\}%))';
end = '(?!\G)(\s*$\n)?';
beginCaptures = { 0 = { name = 'punctuation.whitespace.embedded.leading.gyb'; }; };
endCaptures = { 0 = { name = 'punctuation.whitespace.embedded.trailing.gyb'; }; };
patterns = ( { include = '#tags'; } );
},
{ include = '#tags'; },
);
};
};
patterns = ( { include = 'source.swift'; } );
repository = {
tags = {
patterns = (
{ name = 'meta.embedded.block.gyb';
begin = '%\{';
end = '(\})%';
beginCaptures = { 0 = { name = 'punctuation.section.embedded.begin.gyb'; }; };
endCaptures = {
0 = { name = 'punctuation.section.embedded.end.gyb'; };
1 = { name = 'source.python'; };
};
contentName = 'source.python';
patterns = ( { include = 'source.python'; } );
},
},
},
}
```
A text like this will work:
```
class MyClass {
%{
a = 1
}%
}
```
If I remove the space before the first percent sign, the grammar will not create the embedded block at all.
I tried using several scope selectors with `L:` to see if they work:
- `L:(source.swift.gyb - (meta.embedded.block.gyb))`
- `source.swift.gyb - (meta.embedded.block.gyb), L:source.swift.gyb`
- `source.swift.gyb - (meta.embedded.block.gyb), L:source.swift`
- `source.swift.gyb - (meta.embedded.block.gyb), L:source.swift keyword.operator.remainder.swift`
- `source.swift.gyb - (meta.embedded.block.gyb), L:keyword.operator.remainder.swift`
None of them seem to work.
Does someone has any tips about what should I try next?
Thanks!
Hello,
I am working around in the code, and I was trying to determine where the row iterator object used in layout.cc is defined so I might study it’s properties? Could anyone point me in the right direction? Much appreciated.
Josh
I just tried the new indent guides. I think it looks pretty ugly that
the indent guides are render over the full width of the document. In
most editors I've used which support this feature the indent guides are
rendered up to the start of the text on a given line.
--
/Jacob Carlborg
Hi -
For the last week or so, the contents of the Go to Symbol window have been totally scrambled for me in all the languages I’ve tried. Sometimes (After restarting TM) the Go to Symbol window contains the entire file on one line without linebreaks. Other times there are many lines, each with several lines worth of source in them, but no clear relation to any of the function definitions in the file.
I suspect this is a corrupted settings file somewhere; I’ve got my TM settings synced to Dropbox so when two different machines are open at the same time a number of things go screwy. I wasn’t sure how to start debugging this one though short of going spelunking in the source.
Is anybody familiar enough with the inner workings of this command to point me to what settings might be corrupted?
Cheers,
Evan
Example:
In the C code at the bottom, I would usually expect to see 4 lines in the list of symbols:
```
#include <stdio.h>
void other();
int main(){
void other(){
```
Instead, I get the entire contents of the file on one line:
```#include <stdio.h>void other();int main(){printf("line 1 after 'main' symbol\n");printf("line 2 after 'main' symbol\n");other();}void other(){printf("line 1 after 'other' symbol\n");printf("line 2 after 'other' symbol\n");}```
Source file:
```
#include <stdio.h>
void other();
int main(){
printf("line 1 after 'main' symbol\n");
printf("line 2 after 'main' symbol\n");
other();
}
void other(){
printf("line 1 after 'other' symbol\n");
printf("line 2 after 'other' symbol\n");
}
```
Hi,
what is the best way to share snippets or entire plugins, so that they can easily be installed and updated automatically by TextMate?
I still do not completely understand the Avian / Bundles mechanism and having to check manually for updates and “git pull” them is not very user friendly…
Fabian
Hi,
Am I right refresh running browser CMD-R does not work in 10.11.5
(HTML-bundle)?
After updating this morning to 10.10.5 and it does not work anymore on both
updated Macs.
version 2.0-beta.9.1. and version 2.0-beta.9.0
Regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Refresh-running-browser-CMD-R-does-no…
Sent from the textmate users mailing list archive at Nabble.com.
Cap’n Proto is now available in MacPorts (capnproto). It would be nice
if TextMate automatically could identify Cap’n Proto when it's installed
in MacPorts.
--
/Jacob Carlborg
I have a bundle item I would like to use by pressing a keyboard
shortcut. The problem is that there is another bundle item that is
invoked instead. Is there a way to find out which bundle item is invoked?
--
/Jacob Carlborg
Is there a way to change or remove the added/removed/modified backgrounds in Git Commit Message?
Looks like predefined colors don't play nicely with every theme out there.
Hi all,
I try to make a bundle command in order to find a php-function definition
within project folder.
What I want to do is a "macro/snippet/command" that do the following:
- with the TM_CURRENT_WORD or TM_CURRENT_SELECTION
- search the current project (like CMD-SHIFT-F) with a regex search
(something like: (function)(.*)($TM_CURRENT_WORD)(/s+\() )
- open the CMD-SHIFT-F window with the search-results so you can select the
found result.
So is there a way to 'call' the search window, with the values filled in and
run the search?
It would be even better if one result is present, directly via a simple
popup:
- if found one result goto file / and function
- if multiple functions / files are found => selection box in order to
select the file
Or does are there other suggestions?
Regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Call-Find-in-Project-window-in-a-bund…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
I was wondering what php-debug workflow you use in combination with our
favorite texteditor TextMate.
I do not want to use a massive and expensive IDE (like phpStorm), just TM.
Now I've setup Xdebug (MAMP-PRO), with xdebug.file_link_format set in
php.ini. So on a error in the browser I can click on the link, and the
related file is opening in TM on the good position!
I did not found any TM-bundles for Xdebug in order to set breakpoints (via
markers?).
Maybe a suggestion is Codebug (http://codebugapp.com). But there is no
integration with TM like they have for Sublime Text
(http://codebugapp.com/using-codebug-sublime-text/ and
https://nateofnine.com/2014/05/30/sublime-text-xdebug-client/)
Do you have better suggestions for debugging PHP using TM and Xdebug?
Have a nice weekend,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/PHP-debug-workflow-suggestions-tp2994…
Sent from the textmate users mailing list archive at Nabble.com.
I've accidentally deleted the R bundle (which contained several of my own custom commands). Is it possible to reinstall bundle & my own custom commands?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
In the File Browser sidebar when I open a "project" (a directory), TextMate
always shows the same state where some directories are expanded (to
multiple levels) and others are not. Is there any rhyme or reason about why
TextMate remembers this particular state?
It's a bother to have to close things up each time I open a project.
I would even be happy with the File Browser starting with no directories
open.
I've tried doing
defaults write com.macromates.TextMate.preview disableFolderStateRestore
-bool YES
but that seems to have no effect.
I've tried opening or closing some "tabs" (open files) and then closing the
project. That has no effect.
I'm on Mac OS X 10.11.4. TextMate version 2.0-beta.9.
BTW, after recently upgrading to the above version of TextMate (from
previous beta version), the problem was solved for a while, but now it is
happening again.
Thanks,
--ErikN
How does one go about debugging values and the like in TextMate?I’m trying to iterate through rows and see the values associated with my iteration. Is there a special output area that code prints to, like a console or something?
Hi,
seems odd, but I really do not know what marks are and how to set them (and
how many)? It seems related to the keybinding setMark.
In the latest release version 2.0-beta.9.1 the jump to next/previous mark
shortcuts have been changed to F3/⇧F3. So I was wondering how to set them ;)
and what is the difference with bookmarks?
regards,
feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/What-are-marks-an-how-to-set-tp29938.…
Sent from the textmate users mailing list archive at Nabble.com.
Ah, thank you very much for that input. I will resend there.
On 4/18/16, 3:21 PM, "Jacob Carlborg" <textmate-dev-bounces+jjbernitt=gmail.com(a)lists.macromates.com on behalf of doob(a)me.com> wrote:
>On 2016-04-18 12:12, Joshua Bernitt wrote:
>> Hey all!
>>
>> I think this is the correct mailing list for this question;
>
>I recommend the general mailing list instead. There's barely any traffic
>at all in this mailing list.
>
>--
>/Jacob Carlborg
>
>_______________________________________________
>textmate-dev mailing list
>textmate-dev(a)lists.macromates.com
>http://lists.macromates.com/listinfo/textmate-dev
Hello
I use a lot of variables with @ in their names like
\rput@temp but a double-click on \rput@temp selects only
rput or temp. With TM1 I had the possibilities to
change but how can I do with TM2?
Thanks,
Best Regards,
Alain
Hi everyone,
I want to fold the following 'code'
# Section 1 ----
for (i in 1:30) {
y = i+1
}
# Section 2 ----
# a comment
x = y + 1
y = y^2
if (foo) {
a = b
for (j in 1:3) {
b = b + 1
}
}
# Section 3 ----
b = c
to fold in the following way:
- "sections" in the code are defined by #something----, everything
between two section titles should fold when the folding marker of the
title line is clicked
- blocks are defined with { (and a few other markers) and should fold
as expected.
With the following rules I can almost make it work
{
foldingStartMarker = '\{';
foldingStopMarker = '\}';
foldingIndentedBlockStart = '^#(.*?)\-{4,}';
foldingIndentedBlockIgnore = '^(?!#(.*?)\-{4,})';
}
the blocks fold, respecting nesting, the sections fold up to the next
section, *except* for section 1; there, the `for` block is not
indented and is at the same level as the section, therefore folding at
section 1 only folds until the start of the for block, not all the way
down to section 2.
It looks like I am searching for a way to the `foldingIndentedBlock`
rule to take precedence over the `foldingStartMarker` rule. Is it
possible?
To make it easy to take a stab at it, I created a new bundle and a
test file (the language is "testing") which you can get there:
https://dl.dropboxusercontent.com/u/1047321/Test.zip
PS: having comments which define sections in the code seems like a
general use case. The syntax is in that particular example is defined
in the R language by the RStudio IDE. This IDE is becoming common
enough that I am receiving code formatted this way a lot.
Thanks in advance for your help!
Good day,
I am interested in assisting with TextMate development. I really like the editor, and want to contribute to make it better! I want to help add newer and more modern actions to it similar to Sublime Text. I was wondering if you had any links for getting started? I’ve downloaded the source code and set up a dev environment and can compile it successfully. I’m reading through the source code and testing things; I was just wondering if you have any information on the Oak framework and the general layout of the application structure. Thank you for your help!
--
Josh Bernitt
Sent with Airmail
I was thinking that the context menu that shows up when you press
keyboard shortcut for a bundle command that is overloaded (multiple
commands for a single keyboard shortcut) can be quite long, especially
for the git commands.
What if we (I or someone) adds a text input field to the menu which
filters the menu items. And example of this can be found in Xcode [1].
Would that be a good idea?
[1] http://blog.manbolo.com/2012/05/24/filtered1.png
--
/Jacob Carlborg
I've been working for quite a while with trying to rewrite the grammar
for the D bundle to be more accurate to the official grammar. The
grammar for D is quite complex, that in the combination with the syntax
for grammars in TextMate doesn't allow any good ways to reuse or compose
rules making it very difficult to describe a grammar. I know it's
possible to reuse rules with the repository, but that seems to be mostly
useful when matching with "begin" and "end".
For example, this is the grammar for a function declaration from the
official D grammar:
FuncDeclaration:
StorageClasses(opt) BasicType FuncDeclarator FunctionBody
AutoFuncDeclaration
AutoFuncDeclaration:
StorageClasses Identifier FuncDeclaratorSuffix FunctionBody
FuncDeclarator:
BasicType2(opt) Identifier FuncDeclaratorSuffix
FuncDeclaratorSuffix:
Parameters MemberFunctionAttributes(opt)
TemplateParameters Parameters MemberFunctionAttributes(opt)
Constraint(opt)
Each of these parts/rules of the grammar consists of several other
rules, many levels deep.
It would be really nice if the TextMate grammar syntax allowed, somehow,
to define rules, or parts of a rule, which the other rules can be
composed of, similar to above.
Or is there a way to already do something similar with the current syntax?
--
/Jacob Carlborg
Hi,
I am a PhD student in final year and using Latex in TextMate for last 5-6
months to write my work, and I really like Textmate. I recently graduated
to use Sweave to include R elements into my Latex document.
However, I am unable to setup Sweave to compile and I get error : pdf file
not written to disk. I have tried advice on
http://article.gmane.org/gmane.comp.lang.r.mac/3953/match=sweave+pdf+file+n…
but no luck.
I am using Textmate 2.0-beta.9, with Texlive 2015 distribution and R 3.2.3
Please can anyone guide me to setup Sweave for Textmate. Yes, I have
installed Sweave Bundle.
Thank you.
Sri
I’m trying to integrate ternjs [0] into Textmate and am running into problems:
* if I use #!/usr/bin/env ruby18 -wKU I can’t
require(‘json’)
in my script, it gives me a loadError
* if I use #!/usr/bin/env ruby
then the lib/ui.rb message dialog won’t work because it utilises an old osx-plist function [1].
I even managed to recompile the old plist thing and made it work, but it won’t work when forked [2] with an error
dyld: lazy symbol binding failed: Symbol not found: _rb_gc_writebarrier_unprotect
Expected in: flat namespace
Can anyone give me pointers into a direction?
Textmate Bundle development is so frustrating :(
Thanks
Fabian
[0] ternjs.net/doc/manual.html
[1] https://stackoverflow.com/questions/6869463/in-textmate-i-cant-create-parti…
[2] https://github.com/textmate/bundle-support.tmbundle/blob/master/Support/sha…
Hi,
i would like to display popup / hints / overlays at certain position in code, so I can show the error where the occur.
Is that somehow possible with the current plugin API? Maybe with dialog2 and custom nibs?
Thank you
Fabian
Hello Everyone,
This has probably been discussed before when Apple's "El Capitan" came
out. I have only recently upgraded to this OS. I am using Textmate for
writing Latex documents. With the upgrade I loste the functionality of
having .sty-files stored in a dedicated folders (texmf in pre-capitan
times). Where do I put these files now? and more importantly: How to I
tell Textmate (or the Latex Bundle) where to find them?
Best,
Christian
I generally hate Microsoft Word, but I like the way it handles comments i.e. comments are in boxes in the right margin, separated from text. Is it possible to have TextMate handle comments in the same way i.e. hidden or somehow separated from text?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
When I go to Bundles > R Console (Rdaemon) > General Control > Start Rdaemon, the blue line goes right to the end put Rdaemon doesn't start up. Why is Rdaemon not starting up?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
Hi,
Today I wanted to try a new theme and noticed that the theme menu only
lists the theme's name, so I had to try them all, which is expected.
My issue is that I already knew I wanted a light theme, because I like
them better. I just asked around and at least with the small sample
of people around me, they already know if they prefer light themes or
dark themes.
It looks like themes are already identified as light or dark via their
Semantic Class, so my suggestion is to include this distinction in the
UI somehow. I know this is not something the user will do frequently,
but I think this improvement will cut the time to select a new theme
roughly by half.
--
:: dip
--
Hi all,
I've some strange issues with a shell script for a bundle command. Caused by
a "*" (Asterisk) at the end of the line.
Description:
In a folder I've the following files:
test.md
AAA-some-text.md
The content of test.md is:
In my bundle script I do a lot with the file. One of the things is that I
want to grep the first Header. In this case "# A header with star AAA*".
The shell code is (only the code causing the issue):
#!/bin/bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && .
"${TM_SUPPORT_PATH}/lib/bash_init.sh"
cd ~/Desktop
contenttitle=`grep -m 1 '^#\{1\}' test.md`
echo $contenttitle
When running "grep -m 1 '^#\{1\}' test.md" in Terminal I get as expected the
first header "# A header with star AAA*", but running the script in TextMate
I get "# A header with star AAA-some-text.md". Really strange..... there is
a replacement of "AAA*" by the filename "AAA-some-text.md" (from the current
folder). And even when more files with "AAA" exist, they also come in the
result of the script. It seems like there is a listing of the directory
performed like "ls AAA*".
Is this a TextMate issue? Or do I something wrong?
Regards,
Feek
NB1: when escaping the * in the markdown file (like \*), the script is
performed right.
NB2: when the AAA* text is in the middle of the line (some text on the
right), the error persists.
--
View this message in context: http://textmate.1073791.n5.nabble.com/Strange-issues-with-a-shell-script-fo…
Sent from the textmate users mailing list archive at Nabble.com.
I’ve never gotten the watch command to work in the LaTeX bundle, and I’d like to see if I can’t troubleshoot it. I’m running OS 10.11.3 and TextMate 2 beta .9. I typeset through the ps->dvips route. When I run the Watch Document command I get this error:
The command `osascript -e tell application "XQuartz" to launch' failed (error code 1).
Can someone point me to the next step?
Thanks,
Kyle
I had to reinstall OS X when upgrading to El Capitan I used to be able to use option-R to run an R script. It no longer works.
I’ve searched and tried various things but nothing works. The interface has changed and I can’t figure out the bundle process.
I need help. How do I fix this?
————————
Pete Versteegen
pitiur(a)gmail.com
I purchased STATA 14 yesterday and noticed that the Textmate 2 bundle no longer works as well with it. When I go to run (COMMAND-R) a program from within Textmate 2, it brings up a temporary file to run from within STATA (as opposed to just running it entirely). I don’t see a lot of options to change anything, so I’m unsure how to proceed. Any help would be appreciated.
Hi,
Is there a way to break, speed up or otherwise avoid Textmate from (temporary) hanging when opening a large file without line breaks (for example a large xml or json file without line breaks)?
It would’ve been nice if each window or tab ran independently from eachother, at least the one hanging window wouldn’t stop me from working… I’m waiting on a beachballing Textmate right now trying to open a 4,5MB xml file…
In comparison, the finder preview (cmd-I) opens and shows the file in under a second… syntax coloured and all…
Best regards,
Bas
Hello,
I’m working on textmate 2 command that will process data from a file and insert some some information into the activate textmate document
I’ve got the bulk of the job working pretty well except I’d like to ensure the data is allows added to the top of the file. Can anyone tell me how to ensure the cursor is at the top of the document before I insert my data?
Thanks for any help
Gary
Related to my other question:
http://textmate.1073791.n5.nabble.com/Bundle-editor-does-not-update-name-co…
Formerly I tried to sync my bundles via a symlinks to a Dropbox location,
but that was not reliable causing FSEvents to not always work. Wouldn't it
be nice that TextMate, when in a bundle a .git folder with remote is
present, makes automatically a git pull when there are changes in the
remote. In the same way it is done for the build in bundles! So you can
sync/update your (private / non build in) bundles in a proper way.
Regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Suggestion-git-pull-for-private-perso…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Came in yesterday to find that pdflatex had written a 256GB .log file (only stopped because that filled the space on my ssd… and dropbox was studiously uploading to my shared pals folders :-) ).
I had closed the typesetting window, saying yes to the resulting “kill processes dialog” (pdflatex was in an endless loop trying to process an errant latex script), but that doesn’t kill pdflatex (as can be seen in the activity monitor). You can end up with multiple pdflatex instances all ownerless, and only killing them manually works to end them.
Textmate obviously can’t kill processes spawned by bundles in case they are supposed to be continuing, but perhaps shutting the latex TypeSetting bundle could ensure that closing the typesetting window/ending watching could send a kill/quit signal to pdflatex?
Best, tim
Hi,
I'am updating/ organizing all my snippets and commands, because I want to
use git in order to "sync" my bundles between my Macs.
Digging into the Package Content, it seems that the Bundle Editor does not
update the [name].tmSnippet or [name].tmCommand when changing it's name! It
keeps the initial name (so sometimes untitled).
I assume this is not intended to be! Am I right this is a bug?
Can I for the time being change the name via Finder without any
consequences?
Regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Bundle-editor-does-not-update-name-co…
Sent from the textmate users mailing list archive at Nabble.com.
Tweets can give the link to another site, for example, the wiki.
Greg
>
> From: fukurokujo <fukurokujoe(a)googlemail.com>
>
> we could make some kind of wiki or repository for TextMate tips and a bot for twitter that tweets them once in a while.
> That way everyone could look at the whole list, contribute and gets informed about new or random ones.
>
>
>> On 13 Feb 2016, at 12:32, Elia Schito <elia(a)schito.me> wrote:
>>
>> Just for the record I still have access to the tm2tips Twitter account if anyone's interested in reviving it.
>>
>> Elia Schito
>>
>> On 12 Feb 2016, at 13:18, George McGinley Smith <george(a)gsgd.co.uk <mailto:george@gsgd.co.uk>> wrote:
>>
>>> There was this tumblr a while back, but seems to have fallen by the wayside ? http://tm2tips.tumblr.com/ <http://tm2tips.tumblr.com/>
>>>
>>> On 12 February 2016 at 02:33, Carpii UK <carpii.uk(a)gmail.com <mailto:carpii.uk@gmail.com>> wrote:
>>> For me, the problem with tweets is they're too short to provide anything useful, at l least in terms of TextMate tips
>>> Likewise the mailing list isn't really an appropriate arena for them.
>>>
>>> New TM users are very unlikely to search the mailing list archive to find tips, so it would only be helping the userbase who were subscribed at the time of posting
>>>
>>> I'd much rather see a wiki, which everyone can contribute to, and develop it into a good TM guide.
>>> Right now the docs are a little outdated and ambiguous, with many articles referencing TextMate 1 (but not always making this clear)
>>>
>>>
>>> On 12 February 2016 at 00:16, Music <akakie(a)gmail.com <mailto:akakie@gmail.com>> wrote:
>>> If you go for tweets, please announce that on the list. I'm not a great fan of tweets, but a daily hint sounds interesting.
>>>
>>> --Lewy
>>>
>>>> On Feb 11, 2016, at 8:54 AM, Phil Schumm <pschumm(a)uchicago.edu <mailto:pschumm@uchicago.edu>> wrote:
>>>>
>>>> On Feb 11, 2016, at 10:34 AM, Tim Bates <timothy.c.bates(a)gmail.com <mailto:timothy.c.bates@gmail.com>> wrote:
>>>>> why not tweet it? That way it?s discoverable by many more people, will help promote Textmate, and won?t take over this list
>>>>
>>>
>>> Kind regards,
>>> George.
** Steps to Reproduce: **
1. Open a directory/project with one or more files
2. Rename any file from inside TextMate
3. Click on "Go > Go to File" or press CMD-T
4. Search for the old filename
5. Search for the new filename
** Expected Result: **
The old filename should not appear in the "Go to File" box, when searched.
The new filename should appear in the "Go to File" box, when searched.
** Actual Result: **
The old filename appears in the "Go to File" box, when searched.
The new filename does not appear in the "Go to File", when searched.
** Environment: **
- OSX 10.11.12 (El Capitán)
- TextMate 2.0-beta.8.5
- Code working in: PHP (tested with php files)
Would someone like to put out a Hint of the Day on this list? I’d appreciate it. Could include changes and improvements too. I know it would be some work, and wold require tracking old hints, but they could be accumulated in a web page for our reading.
Or maybe the others on the list would hate it.
Greg
Thanks to all the help from this list: my GitHub Markdown bundle now supports (in some form) all the functionality in GitHub Flavoured Markdown and has a preview feature that displays them all. Check it out:
https://github.com/mikemcquaid/GitHub-Markdown.tmbundle
I’m interested in working on what’s required to get this as an “official” bundle; what would that require? I’m happy to make changes and fix issues that may block this being changed.
Cheers!
Mike McQuaid
http://mikemcquaid.com
Hi,
When pressing CMD-SHIFT-D in a PHP-file (Jump to Included File), only files
with an absolute path to the file are recognized:
Tooltip error: file not found.
Also when pressing ESC when the CMD-SHIFT-D pop-up tooltip is active, the
following error occurs:
Failure running "Jump to include File"
Command return status code 1
I'am using TM 2.0 beta 8.6 and OSX 10.11.3n (also happens with TM beta 8.5)
regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Jump-to-included-file-does-not-work-f…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I've just upgraded by Mac to El Capitan, using a clean install.
Now when pressing CMD-R (refresh running browser(s)) in a HTML-document,
TextMate keeps asking via a popup for the Google Crome and Camino App (both
not installed). See image.
<http://textmate.1073791.n5.nabble.com/file/n29767/textmate.jpg>
TM should not ask for this, because the Apps are not installed (and so not
running ;) ).
Is there a way to prevent the popup is showing?
I'am using TM 2.0 beta 8.6 and OSX 10.11.3
regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/HTML-refresh-running-browsers-issue-o…
Sent from the textmate users mailing list archive at Nabble.com.
Hi All-
TextMate looks terrific! Thanks Allan for making it available under the
GNU General Public License! I installed the binary and it works for me,
but I'd like to build it from source, and I'm having a bit of trouble
with that.
At https://github.com/textmate/textmate I see the following instructions:
==============
In the simplest case you would run:
$ git clone https://github.com/textmate/textmate.git
$ cd textmate
$ git submodule update --init
$ ./configure && ninja
==============
I did all the prerequisites using homebrew without apparent problems:
==============
$ brew install ragel boost multimarkdown hg ninja capnp
google-sparsehash libressl
$ brew install proctools
==============
But the last step in building TextMate (./configure && ninja) fails for
me with:
==============
...
[445/1150] Compile ‘Applications/commit/src/commit.mm’…
FAILED: xcrun clang++ -include
/Users/alpha/build/TextMate/Shared/PCH/prelude.mm -c -pipe -fPIC
-gdwarf-2 -m64 -mmacosx-version-min=10.7 -funsigned-char
-D'NULL_STR="\uFFFF"' -DREST_API='"https://api.textmate.org"' -Wall
-Wwrite-strings -Wformat -Winit-self -Wmissing-include-dirs
-Wno-parentheses -Wno-sign-compare -Wno-switch -IShared/include
-fcolor-diagnostics -DNDEBUG -Os -DCOMPILE_DATE=\"`date +%Y-%m-%d`\"
-fvisibility=hidden -std=c++1y -stdlib=libc++ -fobjc-abi-version=3
-fobjc-arc -fobjc-call-cxx-cdtors -o
/Users/alpha/build/TextMate/Applications/commit/src/commit.o -MMD -MF
/Users/alpha/build/TextMate/Applications/commit/src/commit.o.d
-I/Users/alpha/build/TextMate/include Applications/commit/src/commit.mm
Applications/commit/src/commit.mm:1:10: fatal error:
'CommitWindow/CommitWindow.h' file not found
#include <CommitWindow/CommitWindow.h>
^
1 error generated.
[445/1150] Run test ‘/Users/alpha/bu...TextMate/Frameworks/scm/test_scm’…
ninja: build stopped: subcommand failed.
==============
It's strange because the reportedly missing file is apparently present
(if not exactly where ninja seems to be looking for it):
==============
$ pwd
/Users/alpha/sources/textmate
$ find . -name "CommitWindow.h"
./Frameworks/CommitWindow/src/CommitWindow.h
==============
I didn't think I would need to set any of the variables:
=================
builddir — location of built files. Defaults to ~/build/TextMate.
identity — for Apple’s codesign. Defaults to ad-hoc signing, which
does not use an identity at all.
boostdir — location of boost includes. By default it will search
various locations including MacPorts and Homebrew.
sparsedir — location of sparsehash includes. By default it will
search various locations including MacPorts and Homebrew.
CC and CXX — C and C++ compiler.
=================
so I didn't, but maybe I need to set boostdir manually?
Any advice on this, or is this a bona fide bug in the build process
(seems unlikely)? I've never filed an issue in github. Is that how I
would go about reporting a bug?
Thanks!
Best,
Kevin
A couple of ideas here:
Simulate a command + up arrow keypress, with Applescript or other.
or
open a url; txmt://open/?url=file://[YOUR PATH HERE]&line=0
From the command line its just
open txmt://open/?url=file://[YOUR PATH HERE]&line=0
Thanks,
Graham Heath
On February 10, 2016 at 8:59:41 AM, Gary Ash (gary.ash(a)icloud.com ) wrote:
Hello,
I’m working on textmate 2 command that will process data from a file and insert some some information into the activate textmate document
I’ve got the bulk of the job working pretty well except I’d like to ensure the data is allows added to the top of the file. Can anyone tell me how to ensure the cursor is at the top of the document before I insert my data?
Thanks for any help
Gary
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
Hello. Quicksilver is able to get the selected text and the currently
open document from TextMate using standard Cocoa stuff, but I’ve
always wanted a way to grab the file(s) selected in the File Browser.
This will require a new Quicksilver plug-in, but I can handle that end
of it.
Is there any way to ask TextMate for the selected file(s) when the
browser has focus?
And once I tell Quicksilver to use some app-specific selection behavior,
the currently working text selection is going to break, so I need a way
to get any selected text in the editor when it has focus as well.
If this isn’t currently possible, could it be added?
Thanks!
--
Rob McBroom
http://www.skurfer.com/
When using Command-R in the LaTeX bundle to typeset a document, the pdf opens at the page corresponding to the position of the cursor in the source. Watch Document, however, has the pdf open on the first page of the document, not the page corresponding to the position of the cursor in the source, and without the red dot on the precise passage. One needs to use Command-Option-Control-O to sync. Is it possible to have the Watch command sync the pdf right from the outset?
--Gildas
Hi,
thanks for the tip!
Command + [1-9] does the job, I wonder if that could be done
programmatically though.
I'm building a bundle to interact with Extempore, an environment used
(among other things) for audiovisual livecoding. More info here:
http://benswift.me/2012/09/26/interacting-with-the-extempore-compiler/
Essentially, the bundle [1] reads a scheme expression then sends its to the
Extempore server via TCP. The server returns some results which get printed
out to the HTML window (with some bells and whistles - that's why I'm not
using a simple tooltip).
The links you've suggested look very interesting but maybe a bit too
complex for my usecase? *Livereload* does not seem to be free though. I
should look more into *Browsersync*..
Thanks,
Michele
[1]
https://github.com/lambdamusic/xtm-utils/tree/master/textmate-bundle/Extemp…
(still a work in progress!)
----
Michele Pasin
http://www.michelepasin.org
On 4 February 2016 at 00:50, Graham Heath <heathg(a)google.com> wrote:
> You could use Command + [1-9] to reselect a tab.
>
> I don’t know what you’re building, but if you wanted to, you could add
> LiveReload <http://livereload.com/> or BrowserSync
> <https://www.browsersync.io/>, this would take care of auto refresh for
> you. This way you would only open the HTML output once, and refreshes would
> be triggered automatically on save.
>
> Graham Heath
>
> On February 3, 2016 at 3:42:44 PM, michele.pasin(a)gmail.com (
> michele.pasin(a)gmail.com) wrote:
>
> Ps: apologies for the email subject - sent too soon!
>
> Michele
>
>
> > On 3 Feb 2016, at 18:23, Michele Pasin <michele.pasin(a)gmail.com> wrote:
> >
> > Hi folks,
> >
> > I have a bundle command that generates some text and sends it to the
> 'HTML output' panel.
> >
> > That works wonderfully, however each time I do that the focus (cursor)
> switches to the 'HTML output' panel too.
> >
> > So I was wondering if there's a way to keep the focus on the main editor
> window (so to use the panel just as a nice 'feedback' window) and keep
> coding without interruptions.
> >
> > Any ideas?
> >
> > cheers
> > Michele
> >
> >
> >
> >
> >
> > <Screen Shot 2016-02-03 at 18.11.39.png>
> >
> >
> >
> >
> >
> >
> >
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
>
Hi,
I'm using TextMate 2.0-beta.8 on OS X 10.11.1 with v3.2.1 of the Go bundle
from:
https://github.com/syscrusher/golang.tmbundle
When I type "fmt." and press Option+Escape for code completion, it
uses TextMate::UI.complete with the :case_insensitive => false option.
That didn't seem ideal to me. All exported identifiers in Go begin with a
capital letter, but in terms of filtering, I would expect lowercase "p" to
filter to Print just as well as an uppercase "P".
So I modified the bundle, and then I saw why it is set the way it is.
In the completeAndInsertSnippet method of TMDIncrementalPopUpMenu.mm there
is a line that inserts the text being used for filtering rather than the
text from the choices.
insert_text([candidateMatch substringFromIndex:[[self filterString] length
]]);
The result is that fmt. [option+esc] [p] and pressing [Enter] gives me:
fmt.print
rather than the desired:
fmt.Print
I'm not really sure why it's done this way? Are there situations where
people want their filtering keys over the text present in the menu?
While I'm talking about code completion, and to drive the point home, I
noticed that TMDIncrementalPopUpMenu uses a BEGINSWITH predicate. Ideally
it would use a fuzzy match with similar logic to Go To File... That would
allow typing something like:
fmt. [option+esc] [p] [l]
to get Println from the list of candidates. In this case it becomes obvious
that "pl" is only for filtering and should not be inserted.
Finally, it would be great if it was possible to set an (additional) Key
Equivalent with a delay so that the popup menu came up when pressing ".",
or perhaps something more sophisticated based on the language grammar. I
realize that not everyone likes code completion popups automatically
appearing, but it would be nice to at least have the option.
Thanks,
Nathan.
--
Nathan Youngman
https://www.nathany.com
Hi folks,
I have a bundle command that generates some text and sends it to the 'HTML
output' panel.
That works wonderfully, however each time I do that the focus (cursor)
switches to the 'HTML output' panel too.
So I was wondering if there's a way to keep the focus on the main editor
window (so to use the panel just as a nice 'feedback' window) and keep
coding without interruptions.
Any ideas?
cheers
Michele
[image: Inline images 1]
Can see no templates in Textmate 2. Am I missing something?
How can I convert some Textmate 1 bundle templates (AS3) to work in TextMate 2?
Thank-you. Simon Lucas
My 2 cents. I’m not taking sides because I don’t use MD that much, but I noticed that the Michael Sheets version has more options, so we would need to have both of them installed which isn’t a big deal, but still. What are the differences between your version and his?
Greg
> On Jan 31, 2016, at 6:08 PM, textmate-request(a)lists.macromates.com wrote:
>
> GitHub Markdown Bundle (and making it official) (Mike McQuaid)
how to convert multiple lines into ordered or un-ordered list in TextMate2.
I have tried the funcitons under "Lists" submenu, but didn't work.
Any suggestion about the MarkDown bundle, or any other alternatives?
[image: 内嵌图片 1]
====================
*with best regards,*
Jacky Wu
*jacky.wucheng(a)gmail.com <jacky.wucheng(a)gmail.com>*
weibo: @object
====================
Hi,
Sometimes the scroll bar at the bottom of the window indicates that there is a very long line somewhere, but a visual scan scrolling from top to bottom of the file doesn't show any line going beyond (or even near) the right edge of the window. This isn't a show stopper of course, but it would be nice to have a command of the form "select the longest line in the file and scroll to show it". Is there such a thing? If not, is there an easy way to add on a user tool to do the trick?
Thanks,
Bill
Hello!
I notice that if I hit Cmd-S TextMate is smart about not saving files when that’s not necessary. There are some situations where this behaviour is not desired e.g. triggering a filesystem event for `guard`. Is it configurable at all or either a project or global level?
Thanks!
Mike McQuaid
http://mikemcquaid.com
Hi!
I’m trying to match the triple-backticks raw block Markdown extension e.g.:
```
this is a raw block
```
I’m using the following pattern:
{ name = 'markup.raw.block.markdown';
begin = '(^|\G)([`~]{3,})';
end = '(^|\G)([`~]{3,})';
beginCaptures = { 2 = { name = 'punctuation.definition.raw.markdown'; }; };
},
Unfortunately this just seems to never “end” and just matches the “begin” repeatedly.
Does anyone have any suggestions here?
Thanks!
Mike McQuaid
http://mikemcquaid.com
After the latest update, whenever I run ‘mate' from the command line, I get this message: 'Can’t launch TextMate.app (error -10810)’. Once I start Textmate, if I uninstall the command line support, and re-enable it, ‘mate’ works until the next reboot.
Anyone know why that might be?
Hi!
Another question about my GitHub Markdown bundle (which I’d like to propose become official when it’s good enough).
The underscore handling in GitHub Flavoured Markdown (https://help.github.com/articles/github-flavored-markdown/#multiple-undersc…) basically means I need to disable/override all of the existing underscore handling in the GitHub Markdown bundle. Is that possible somehow?
Thanks!
Mike McQuaid
http://mikemcquaid.com
Is there a way to highlight (or flash) the line the cursor is on
programmatically?
Something like this:
===+===
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
highlight(os.environ.get('TM_CURRENT_LINE', ""))
# ..do something else..
===+===
Many thanks in advance,
Michele
The current behavior of pasting each line in a different caret is a very
nice default, but sometimes I would need to paste a selection with multiple
lines and have it replicated into each caret. Is it possible to do this
right now?
Thanks in advance
--
José Manuel.
I have a 100+ files that were saved with "ISO-8851-1 Western” encoding. I need to convert and save them to “UTF-8”encoding. I can easily open all of them but when I attempt so perform a “Save as” it only saves the first document. Is there save all of them in a single step?
Thanks.
Another possible injection selection weirdness:
I’m injecting my text.html.markdown.github grammar into text.html.markdown using the (text.html.markdown) injection selector (was (L:text.html.markdown) until the fix in the last thread) and hidden from the user with hideFromUser in the tmLanguage file. I’m wanting to override the “Preview” menu action so that my GitHub Markdown bundle’s “Preview” menu action can take priority using the same shortcut. I’ve found a few possible options that I expected to work but don’t:
- setting the scope to text.html.markdown.github doesn’t seem to match the document scope so never actually matches and the Preview runs the old Markdown one
- setting the scope to text.html.markdown pops up a little menu to let me choose between the two
This may well not be possible in TextMate 2 as-is. Any thoughts on how to do this (beyond just using another shortcut, my current solution)?
Thanks!
Mike McQuaid
http://mikemcquaid.com
Can rmate be persuaded not to return focus to the terminal window when a tab/window it has opened closes?
I often open multiple tabs and windows over ssh using rmate. Whenever I close any of them focus reverts (after a short delay - probably the closing of the ssh tunnel after confirming a write or something) to the terminal window. If I also want to close the tab revealed by closing the first I hit Cmd+w, but the terminal gets the command because focus has switched! It's very annoying to have to get my terminals back in order so often.
Is this rmate's fault, or textmate? And can this behaviour be altered somehow?
--
Justin C, by the sea.
Hello,
I have a local mysql database that I try to connect to from Textmate 2.0.
When I define the connection setting in configuration dialog, and try to
submit to query, I get this error message:
undefined method `force_encoding' for #
I am on Mac OS X 10.11 and I installed the latest sql bundle from Github.
All that I have found are about Ruby and nothing specifically about SQL
bundle. Any suggestion on how to fix this problem?
Best,
Hooman
I’m working on a bundle to add Markdown Extra to the stock Markdown language grammar with an injection. I have some of it working, but can’t seem to build the right regex to find the added classes syntax.
Here’s the Markdown Extra in question:
{.image-right .image-33}When developing web sites on the Mac, we have a number of choices for serving the content and design we're working on.
I’m after the {.image-right .image-33} part and I’ve tried:
{ patterns = (
{ name = 'source.yaml.front-matter';
begin = '\A-{3}';
end = '-{3}';
patterns = ( { include = 'source.yaml'; } );
},
{ name = 'text.html.markdown.classes';
begin = '\{';
end = '\}';
},
{ name = 'markup.raw.block.markdown';
begin = '^`{3}';
end = '^`{3}';
},
);
}
and
{ patterns = (
{ name = 'source.yaml.front-matter';
begin = '\A-{3}';
end = '-{3}';
patterns = ( { include = 'source.yaml'; } );
},
{ name = 'text.html.markdown.classes';
begin = '\)\{';
end = '\}';
},
{ name = 'markup.raw.block.markdown';
begin = '^`{3}';
end = '^`{3}';
},
);
}
What did I get wrong?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
Hi all,
I'm trying to develop a bundle for communicating with a TCP server, and
would like to create 1) a bundle command that opens the connection, and 2)
other commands that use that connection object (eg via grabbing text
selection in the editor window).
In Python, I've created a bundle command like this:
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
HOST = "127.0.0.1"
PORT = 7098
sock.connect((HOST, PORT))
sock.send("some command...")
print sock.recv(512)
That sets up the socket correctly, in fact you can send messages to the TCP
server.
However each time I send a command, the socket is obviously re-created; I
wondered if I TextMate provides a mechanism to save the 'sock' binding in
the current environment - so that I can reuse it later within other
commands.
Hope this makes sense - thanks in advance for any help.
Mike