Hi,
On Tue, 30 Jan 2007 11:51:21 +0200, Karoliina.T.Salminen wrote:
Hi,
But I must say that the first thing that prevent to use the
device to
do programm is the lack of a good editor adatpted to it.
Slightly off-topic and maybe? a little bit flamebait, but I
have never found an editor adapted for programming that wasn't
a pain to use in UN*X.
You mean graphical editor or text mode editor?
I guess you dislike vi like I do, so here is a list of other editors:
Modern graphical UI:
- kate (KDE text editor, works fine on Gnome, this is my favourite, very
similar to UltraEdit editor on Windows)
After reading your post, I must try that as soon as possible :)
[...]
- emacs (the traditional editor for linux etc., some people love it,
some hate
it because of the commands being CTRL+X+CTRL+...+..., in my opinion
still a lot more
user friendly and intuitive than vi).
Well, even the author of vi admits that most of the weird stuff is in vi
because terminals back in the day were just too darn broken (losing/repeating
characters, 10bps slow, ...) ;-)
As for emacs, I guess with some major hacking on the configuration lisp code, I
could get it to drop the Ctrl-K stuck key thing. As I'm naturally lazy, I'd
like to avoid that ;-)
- then there is the vi and vim for those who have different modes in their
brain for typing and moving the cursor. You can play Kraftwerk-robot with
this one.
heh ;-)
- command line option to jump to line/column number on load
Well Kate don't have this most likely. However, when you load the text, you
can CTRL+G and type the line number where you want to go.
Well, if it only misses that, I'm not against just adding it myself :-)
I automated most of the build and it's nice when the build system will
automagically fire up an editor at the exact line of mistake (which I
inevitable make lots of :)).
- interface for filling extra columns like:
- line number
kate has this
- breakpoint (modifyable)
you should check out some IDEs if you need breakpoints
I think you missed the part interface to. All I ask it to support is giving
it another file with data for an extra column that I fill however I want (and
which is not saved into the original file).
I do see that the UNIX lots-of-small-tools philosophy is kinda outmoded and I
should just jump on the IDE bandwagon, creating/using an app that does
everything (and nothing of it well) :-
[...]
- misc user-defined flag
[...]
- line the other people viewing this file are currently on
nope
I put this line in just to show what a simple extra column file could be used
for ;-)
- and so on...
- folding of blocks
kate has this
Really? Nice :)
Installing it as we speak...
- virtual concatenation of files (I'd really prefer the
_filesystem_ to support that, but...)
??
Hmm. If you have lots of small files, it _could_ (ideally, I know, never going
to happen) concatenate them all into one large buffer, separated by a line
stating file name. Later when saving, it could split them again.
So you could do like kate source/ (note: directory(!) path) and it would show
a great concatenated view of all the files in the directory (in one window, one
view, one buffer - making reading to get an overview and searchreplace
straightforward):
+---+
| 1 a.c: ^|
| 2 #include stdio.h ||
| 3 #include a.h ||
| 4 ||
| 5 int a() ||
| 6 {||
| 7 }||
| 8 ||
| 9 a.h: ||
| 10 #ifndef _A_H ||
| 11 #define _A_H ||
| 12 int a(void); ||
| 13 #endif /* _A_H */||
| 14 ||
| 15 main.c: ||
| 16 #include a.h ||
| 17 ||
| 18 int main(int argc, char* argv[]) ||
| 19 {||
| 20 return a(); ||
| 21 }v|
+---+
Yeah ok, so it's kinda sick ;-)
- every time someone writes . and then pauses for 1 second,
call external tool (with all the text on stdin?) (Intellisense :))
???
Hehe, I am way too accustomed to think in tools, I fear. The editor would call
an external tool to implement intellisense with (which would do whatever magic
and return the result to the editor, which would just display it in a combo
box).
- every time I press the Newline key in order to create a new
line, repeat the leading whitespace from the line I came from
on the new line (and I mean, exactly, not expanding tabs, not
grouping spaces into tabs, not trying to backstab me, ...)
kate puts indent characters there, which means spaces