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.