News for hackers. Stuff that matters.
Re:TextMate 2.0 (rc 10) by ronnier on Tuesday June 19, 2018 @11:06AM (#17347331)
For a general GUI text editor, I just want notepad++ for Mac. I've yet to find one as good as n++.
Re:TextMate 2.0 (rc 10) by lallysingh on Tuesday June 19, 2018 @11:14AM (#17347402)
I was quite happy with BBEdit. Happier than I ever was with n++, but I never really got into n++ very much
Re:TextMate 2.0 (rc 10) by msisk6 on Tuesday June 19, 2018 @11:51AM (#17347781)
Same here. I've been using BBEdit on the Mac for 20 years now. I suspect BBEdit on the Mac and vi(m) in the terminal will be the only editors I'll ever need.
Re:TextMate 2.0 (rc 10) by ubermonkey on Tuesday June 19, 2018 @11:18AM (#17347442)
What does Notepad++ do for you that TextMate or Sublime doesn't?
Re:TextMate 2.0 (rc 10) by ronnier on Tuesday June 19, 2018 @11:25AM (#17347535)
* The search and replace is a lot better. I can double click a word, CTRL+f, and the search box will contain the word that was clicked. Textmate doesn't auto fill the search box.

* n++ has good replacing when using new lines like \n. And regex.

* n++ column select is very good

* n++ makes it easier to create a new tab

* In n++ when I double click a word, all instances of that are highlighted. Not so in TextMate

Re:TextMate 2.0 (rc 10) by clord on Tuesday June 19, 2018 @11:49AM (#17347759)
* MacOS has a system-wide feature that does this better than N++: Select a word, command-e, and the selected word goes to the "search pasteboard" or whatever it's called. It fills the search box, and also primes command-g (find next/prev) It works with other search features really well, and is cross-app.

* TextMate has amazing regex support. I replace multi-line stuff all the time. Best i've found.

* TM column select is most likely just as good, and it has multi-select (non-column based multi-selection). (I don't know the in's and outs of n++ to comment)

* TM uses the usual command-t for something else, but command-option-n isn't too bad for a new tab.

* command-e to prime selection, then option-command-f to selects all. These are real multi-selections not just highlights, so you can edit-all, copy-paste, etc.

Re:TextMate 2.0 (rc 10) by netcraft on Tuesday June 19, 2018 @12:05PM (#17347914)
ive been using macos for decades and have never heard of command-e - super nice, thank you for mentioning it.
Re:TextMate 2.0 (rc 10) by luikore on Tuesday June 19, 2018 @11:45AM (#17347715)
Seems you are not very familiar with TextMate.

For TextMate, cmd+E, cmd+F then the selection is in the search box. Or, you don't even have to open the search box with cmd+F, just cmd+G to next selection or cmd+opt+F to multi-cursor edit all occurrences.

The regex in TextMate is also very powerful (the unicode support is more powerful). New lines can be matched with \n. Another way is to select new line and repeat the cmd+E trick.

TextMate column selection is even better: you can enter column select mode simply by pressing opt. It is in fact multi-cursor editing, many editing commands like completion / copy / paste can work for each row individually.

Cmd+N or ctrl+cmd+N in TextMate.

The last one, not in TextMate. Though cmd+E then cmd+opt+F can highlight and start multi-edit on all instances of the word.

Re:TextMate 2.0 (rc 10) by donarb on Tuesday June 19, 2018 @11:57AM (#17347839)
> Textmate doesn't auto fill the search box

Not sure how it works exactly with Textmate, but for most Mac editors, you double click a word, cmd-E to place the word in the search box, then cmd-G to find again. This saves time because you never see the find dialog and can start searching immediately. I only use cmd-F if I need to fiddle with the find settings. Replacing is just as simple, shift-cmd-E to place selected word in the replace field, cmd-T to replace and find again.

Re:TextMate 2.0 (rc 10) by pier25 on Tuesday June 19, 2018 @11:28AM (#17347561)
Add this to Sublime's preferences:

    "find_selected_text": true
Re:TextMate 2.0 (rc 10) by alexrage on Tuesday June 19, 2018 @11:29AM (#17347573)
I believe all of this is present in SublimeText
Re:TextMate 2.0 (rc 10) by ronnier on Tuesday June 19, 2018 @11:45AM (#17347721)
Yes, but I find it a lot more difficult to use. n++ seems very natural for me.
Re:TextMate 2.0 (rc 10) by shrikant on Tuesday June 19, 2018 @12:09PM (#17347933)
I'm in a similar camp to yours. I've used tonnes of text editors across Windows / Mac / Linux, and Notepad++ was simply the best amongst all of them.

TextMate comes closest on the Mac which is why it's my primary GUI editor, but I still miss being able to do all the stuff that just came "naturally" in Notepad++.

Also, running Notepad++ in Wine just doesn't feel the same.

Re:TextMate 2.0 (rc 10) by ubermonkey on Tuesday June 19, 2018 @11:36AM (#17347631)
TextMate has always had regexp support in find/replace, FYI.