开发者

Are these NotePad++ features available in TextMate?

I'm a 开发者_运维技巧NotePad++ user, new to TextMate.

There are some features that I really like in NP++ but couldn't figure out if TextMate support them.

Double click on a variable and have all instances highlighted

Are these NotePad++ features available in TextMate?

View 2 text windows side by side

Are these NotePad++ features available in TextMate?

Drag a file onto another opened Window

For this one, I don't know how to generate a screenshot ;-p. Basically, you can drag a file from Windows Explorer and drop it into NP++ to have it opened.


A lot of long time TextMate users are leaving TextMate land, actually. So, I'm not sure it's the right time to move to TextMate.

Emacs and Vim both do what you want and more. If you can afford the learning curve it's definitely worth it.

As for your question:

View 2 text windows side by side

You can have two or more windows for the same document. Assuming you are in a "project" right-click your file in the drawer and choose Open "foo.ext" in New Window. The two "views" contents are more or less in sync but doing cool things like columnar editing tends to break the syncing.

Due to how Mac OS X manages windows, the new window will probably be too large/too small and/or placed in a less than useful place. I use ShiftIt system wide to manage my windows and in such a case have them the same size side by side.

Double click on a variable and have all instances highlighted

What do you use this for? Is this visual highlight or non-contiguous selection?

Type ctrlw to select the word, then e to make the word your search term, then f or Edit > Find > Find in Project… It will show all instances of the search term in another window. You can then "jump" to any occurence and do whatever you want.

If you only want to jump from occurence to occurence, select the word then type e then g to jump to the next occurence.

Another way is to type ctrls, a little text field appears at the bottom of your window where you can type a word and see its first occurence selected in real time. Repeatly typing ctrls will cycle through the occurences.

Drag a file onto another opened Window

You can drag & drop a file on TextMate's icon in the Dock. You can also right-click the file and choose Open with TextMate *or Open with…*. If you are in a "project" you can right-click and choose Add Existing Files…. Opening multiple files in TextMate will automatically create a "project" for you.


View 2 text windows side by side

I just tried this and it doesn't seem to recognize this functionality. the only time any sort of "add" icon came up was when I dragged the file into an open document and then released, but that resulted in adding the contents of the file into the document.

I just did a quick google search for "textmate split view" and it still doesn't seem to be supported according to some of the answers i found (one from macromates wiki).

Double click on a variable and have all instances highlighted

This also doesn't seem to be supported. This post suggests using the command + f (find), put the word into find, then command + g to jump to the next instance of that word.

There are definitely some things that can be added to textmate to make it more robust. If you are looking for something similar and are on a windows machine, you should check out e text editor. I loved that editor when I was working on a windows machine - split view is supported, but not sure about the highlighting. One thing that e also beats out textmate is the real time regular expression highlighting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜