Not to restart the editor wars or anything, but... - Livre d'Or








Miscellaneous. Eclectic. Random. Perhaps markedly literate, or at least suffering from the compulsion to read any text that presents itself, including cereal boxes. * Blogroll * Strange words * More links * Bookies * Microblog * Recent comments * Humans only * Second degree * By topic * Cool posts * Writing * New post

Tags

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



livredor
Not to restart the editor wars or anything, but...
Saturday, 18 April 2009 at 07:49 pm
Tags:

Previous Entry Next Entry


I'm working on some journal layouts for Dreamwidth, and it's getting to the point where it's mildly annoying to work in a non-specialist text editor. In specific, I want to be able to do the split screen thing that you can do in Word, so that I can simultaneously see where I set up properties at the top of the several thousand line code, and where I use the properties in the body. (I do know enough not to write code in Word itself!) Also, if I had a widget that would automatically colour in my brackets for me so I can see at a glance if they match, that would be kind of nice too.

Does anyone have any suggestions for an editor with both those features? It would be ideal if it runs under Windows, but DOS or in a browser will do at a pinch.

(When this is done, the same property is going to have the same name no matter what layout you use, and most except a few very specialist features are going to be common to all layouts. The guiding principle is that you shouldn't have to choose between form and function. The next pass is going to do the same for CSS classes, making them consistent across all site-provided layouts. Did I mention I love Dreamwidth?)


Whereaboooots: Älvsjö, Stockholm, Sweden
Moooood: productiveproductive
Tuuuuune: Indigo Girls: Virginia Wolf
Discussion: 23 contributions | Contribute something
Tags:

Previous Entry Next Entry




Contribute something
View all comments chronologically



mathcathy: default
From:mathcathy
Date:April 18th, 2009 10:23 pm (UTC)
4 hours after journal entry, 10:23 pm (mathcathy's time)
(Link)
Can you configure windows to use emacs keystrokes, though?
(Reply to this comment) (Up thread) (Parent) (Thread)
syllopsium: default
From:syllopsium
Date:April 19th, 2009 01:18 am (UTC)
7 hours after journal entry
(Link)
What, hooking the Wordstar-esque sequences? Not without difficulty..

There's also the CUA sequences which make a lot more sense than windows but are more OS/2-esque :

instead of Ctrl-C - Ctrl insert
instead of Ctrl-V - Shift insert
instead of Ctrl-X - Shift Delete
instead of Ctrl Z - ctrl backspace (if I remember correctly)

Some of these also work in Windows, but not in all apps, which is a pity.
(Reply to this comment) (Up thread) (Parent) (Thread)
mathcathy: default
From:mathcathy
Date:April 19th, 2009 08:17 am (UTC)
14 hours after journal entry, 08:17 am (mathcathy's time)
(Link)
I meant exactly what lethargic_man has suggested!
(Reply to this comment) (Up thread) (Parent) (Thread)
lethargic_man: default
From:lethargic_man
Date:April 19th, 2009 06:53 am (UTC)
12 hours after journal entry, 06:53 am (lethargic_man's time)
(Link)
The alternative recommendation to Emacs, which is probably a bit overkill for livredor's purposes, is Eclipse, which you can configure to use Emacs keystrokes.
(Reply to this comment) (Up thread) (Parent) (Thread)
mathcathy: default
From:mathcathy
Date:April 19th, 2009 07:17 am (UTC)
13 hours after journal entry, 07:17 am (mathcathy's time)
(Link)
Oooh! I have Eclipse at work, but have very little idea about its functionality.

The keystrokes I miss most are CTRL-K, CTRL-Y, various of the navigational commands and the ability to put lines into the copy buffer just by highlighting them. I've lost count of the number of times I've highlighted a piece of text, scrolled to wherever I want to paste it and then realised my mistake.
If I figure out how to configure Eclipse to work like Emacs, will I get all of those functions too?
(Reply to this comment) (Up thread) (Parent) (Thread)
lethargic_man: default
From:lethargic_man
Date:April 19th, 2009 07:28 am (UTC)
13 hours after journal entry, 07:28 am (lethargic_man's time)

Emacs keybindings in Eclipse

(Link)
Windows -> Preferences -> General -> Keys is your friend.

You won't get all of Emacs key functionality, but you will get a lot, including not just cut, paste and copy, but also iterative search (C-s), and editor switching (C-x C-b) and loading (C-x C-f) functionality. I'm not sure about auto-highlighting; I suspect that may be a Windows vs X-Window thing rather than Emacs vs Eclipse.

Note: if you do switch to using Emacs keystrokes, you're going to find that if you use other people's machines, you'll be forever trying to cut text and closing the editor instead. As I've just done now here and had to retype the lot of this. :-S

(I need a computer geek icon, I think.)
(Reply to this comment) (Up thread) (Parent) (Thread)
mathcathy: default
From:mathcathy
Date:April 19th, 2009 08:16 am (UTC)
14 hours after journal entry, 08:16 am (mathcathy's time)

Re: Emacs keybindings in Eclipse

(Link)
I tried it!

Thank you. It will help so much.

No one else that I work with uses Eclipse, and since my default keystrokes when I'm coding tend to be Emacs ones, I've made all those mistakes several times. The worst one for me has been CTRL-X-S to save, which cut whatever text happened to be highlighted, then saved, thereby removing Microsoft's ability to Undo. (Of course, I've realised now that CTRL-X first meant that whatever text I'd removed was still in the buffer, but I didn't catch on to that straight away, and I didn't always notice that I'd used the wrong save command.)

You're right, that text highlighting to copy doesn't work this way in Eclipse, but it does work in Emacs running in Windows - my home computer has that set up.
(Reply to this comment) (Up thread) (Parent) (Thread)



Contribute something
View all comments chronologically