On Fri, 29 Apr 2011, Benjamin Johnson wrote:
On Fri, 29 Apr 2011 09:54:02 -0400, Duke Normandin <dukeofperl@ml1.net> wrote:
How hard would it be to add a button or menu items that would allow for the editing of a page being currently viewed, the the option to declare an external editor in ~/.dillo/dillorc?
Fairly easy -- there's only two things to consider:
[snip the good stuff] :) It always looks "so easy" when you know what you're doing - doesn't it! I don't know C or C++ at all - just Perl, PHP, newLISP and some Ruby - but I'm willing to learn.
There are a couple other small details -- picking a reasonable default editor (or maybe just internal "view source" if none specified?), and starting a terminal emulator for console editors like vi, nano, emacs, etc.
I would simply set up an "editor" option in "dillorc". If it's empty then "view source"; otherwise send the file to the preferred editor.
Besides that, you'd just need to write the code or get one of the developers interested. As it happens, I've been thinking of implementing that feature for a while now... :-)
I pulled the source code to my system using mercurial (for the first time). If someone would point out the files that I need to hack, I sure could try. Might be a way to learn C and the required tool-chain. -- Duke