Hi All,
Thanks so much for textmate. It has been my happy coding home since I
switched to OSX about 8 years ago.
I've been trying out textmate 2, and I really like it with the exception
of two glitches that I haven't been able to figure out.
The first is that I can't get cmd-t to work happily with expandrive.
cmd-t seems not to find files in a given folder until I open that
particular folder in the file browser sidebar. I can option-click the
main folder to get it to open every folder, and this works initially,
but it the files disappear from cmd-t after some period, so I have to
repeat the option-click or manually browse through the file interface to
open the file. I'm a keyboard guy, and I really miss just being to hit
cmd-t and type in a file name to open a file.
Any ideas for how to fix this? I don't mind much something a little
kludgy like having to option-click the parent folder each time I sit
down to a coding session, but having to do so every 20 minutes or,
worse, having to manually navigate the file browser interface for files,
is harshing my happy coding juju.
Secondly, I retain a habit of searching using ctl-s from my previous
long run with emacs. In Textmate 2, ctl-s is difficult to use because
it does not wrap by default. I can just use cmd-f instead, but I mostly
using the find function to navigate around source files, and I
aesthetically dislike popping up the giant find and replace box just to
do basic quick navigation. Is there any way to change ctl-s back to
doing a wrapped search?
Thanks again for a great tool!
-hal
--
Hal Roberts
Fellow
Berkman Center for Internet & Society
Harvard University
>Could you please change `refresh_viewer.scpt` by adding a `display alert`
Ren,
I actually did some checking along those lines before I got your message.
I used a notification instead of a display alert, but the result is that
the "TeXShop" block of code is definitely not being executed. Never the
less, deleting the tell block from that code will still stop TeXShop from
opening. I noticed you had to delete the tell block and not just the code
within the tell block. Some online searching led me to the following which
seems likely to be the root of the problem:
http://stackoverflow.com/questions/12431811/how-to-make-applescript-not-aut…
Apparently the script should be compiled so that Skim and TeXShop are not
both automatically opened. I am not sure why Angelo and I seem to be the
only ones having this issue. If the above is correct then this behavior
should happen to everyone.
-Jim
I notice this long time ago but I though that it will be fixed at some point,
but looks like it won’t.
Most of the shortcuts are not working when I have Russian keyboard layout active.
Some of them do work though. For example ⌃W selects the word but it won’t select
the next occurrence of the word.
⌃⇧K and ⌃⇧D and many others though don’t work at all.
I think that everything that resides in the upper menu works with any layout,
everything else works only when using English layout for me.
Hi,
I guess this question has already been answered, but I cannot find the
answer, and Google does not help:
How to enable these alternative edition modes in Textmate 2.0?
Thanks,
Manu
I like to use Soft Wrap. I also like to Use Window Frame as the Wrap Column. In other words, I like to wrap the text to the window.
How can we, completely independent of this, display a vertical line at a given column?
I can't do this with "Show Wrap Column" because it is connected to my Wrap Column setting. If I set that to 80, my Use Window Frame goes away.
Hiya Everybody,
I’m trying to group commands in a bundle, and to create directions for others on how to do so. Unfortunately I’ve been unable to successfully move a single bundle item.
I feel like I’m very close, and I wonder if anyone could tweak these steps to make it work.
Please and thanks!
How to move, order or group bundle items in a TextMate 2 Bundle?
** Disclaimer: This does not work**
It seems that it is a manual process of editing a info.plist, using uuidgen on you script to generate the correct uuid for the info.plist.
http://textmate.1073791.n5.nabble.com/Submenus-in-bundles-and-the-info-plis…
But others indicate this is less than successful.
http://superuser.com/questions/405782/is-it-possible-to-rearrange-commands-…
This is what is suggested by all the research I could find (Linked below). I'm leaving it here in hopes that someone can more easily find the missing piece and improve it. I've even sent a copy along to the TextMate Mailing List to see if they can find the flaws.
First back up your bundle. Then using XCode's plist editor, open your bundle's info.plist.
Creat this structure if you dont already have it.
1. Right click -> Add Row -> "mainMenu".
2. Change "mainMenu"'s type to Dictionary.
3. Create nested items "submenus", "items", and "excludedItems", changing "submenus" and "excludedItems" to "Dictionary" and "items" to Array as you go
4. Open Terminal.app and run the command `uuidgen`
5. Copy the output. (from now on called [UUID#1])
6. Create a new item under "submenus", naming it by pasting [UUID#1]
7. Change [UUID#1]'s type to Dictionary.
8. Add a child to [UUID#1] named "name", set its value to "Network Scripts" (or whatever)
9. Add a child to [UUID#1] named "items", set its type to Array
10. Add items using the (+) button, each item is a UUID from your commands. To get this UUID, open the command's file in TextMate. If you try to Open the .tmCommand file directly TextMate will complain, "The bundle item [Bundle Item]; is already installed".
a) You can simply open the Commands folder, and textmate won't mind opening the files from the file drawer.
or
b) or `mate ~/Library/Application Support/Avian/Bundles/[Your Bundle]/Commands/[Your Command].
11. When the file is open find these lines. You're string will be different but formatted the same.
<key>uuid</key>
<string>8E9BA0D3-E282-4516-8565-E920EA98C898</string>
This is the UUID for your command. Now known as [UUID#2]
12. Go back to the info.plist, in step 9 you created a "items" array, add [UUID#2] to the array.
13. Add [UUID#2] to a “ordering" (type Array) object on the root of the xml.
14. Repeat 10 - 13 to add multiple items.
15. Save.
Graham P Heath
Hi All,
While writing a grammar for programs written in the Racket language, I
have stumbled upon a problem.
In Racket #| starts a multiline comment and |# ends it.
The problem is that multiline comments can be nested:
#| a comment #| still a comment |# even
more comment |#
Here is my non-working attempt:
repository:
multilinecomment:
begin: \#\|
end: \|\#
name: comment
contentName: comment
patterns:
- include: "#multilinecomment"
name: comment
- match: ([^\|]|\|(?=[^#]))*
name: comment
The intent of the match patterns are:
"#multilinecomment" A multiline comment can contain another multiline comment.
([^\|]|\|(?=[^#]))*
The meaning of the subexpressions:
[^\|] any characters not an `|`
\|(?=[^#]) an `|` followed by a non-`#`
The entire expression thus matches a string not containg |#
Is it possible to match nested multiline comments correctly?
--
Jens Axel Søgaard