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.
![](https://link.nylas.com/open/33wd9n5m5l3cdcz4d1oikbwcz/local-
2f068e83-2834?r=dGV4dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=)
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