Software >
Text editors >
https://github.com/Pistos/diakonos 1
A Ruby text editor.
Unbelievably cumbersome.
- forum archive seems to have just been for random conversation.
-
irc://irc.freenode.net:6667#mathetes seems to be abandoned.
--
- 2009-04-25 - 0.8.8 on PCLinuxOS 2007
Notes ∞
Redefine all the hotkeys the way I want.
-
alt-m
to begin/end macro recording. Then f6 to replay it. kindof neat.- it would be nice if I could easily save / manage a macros database.
-
save the file, start a shell and run the script
- not quite pasteShellResult
- saveFile,
alt-k
to learn the next keystrokecontrol-space
to highlight. Then sensible cut/paste hotkeys.-
The shell, execute and pasteShellResult commands can take variables:
$f
current buffer's filepath$F
all current buffer filepaths, space-separated$i
get a string from user input$c
temp file containing current clipboard text$s
temp file containing currently selected text
key f2 shell key esc O Q shell key esc [ 1 2 ~ shell key esc [ [ B shell key f8;execute key esc F;execute "glark '$i' $F | less" key esc d shell "diff -U 5 -w -b $c $s" #key esc F;shell "grep -n '$i' $F" #key esc F;execute "grep -n '$i' $F | less" key f14 evaluate key esc O 2 Q evaluate esc [ 2 6 ~ evaluate key ctrl+alt+c;shell "ruby -c $f" key ctrl+alt+d;shell "php -l $f" # To use the following: # 1) Copy to the clipboard some Ruby code which operates on stdin text and outputs to stdout. # 2) Select (highlight) some text to operate on. # 3) Activate this pasteShellResult command. # 4) The selected text should now be replaced with the script's results. key ctrl+alt+p;pasteShellResult "cat $s | ruby $c" #key ctrl+alt+p;pasteShellResult "cat $s | perl $c" #key ctrl+alt+p;pasteShellResult "cat $s | python $c" #key ctrl+alt+p;pasteShellResult "cat $s | sed -f $c" #key ctrl+alt+p;pasteShellResult "cat $s | awk -f $c"
2009-04-25 - 0.8.8 ∞
Oh, I noticed it got updated. I'll check it out again.
Locks up with the hard drive grinding away, when I update the Gem source index for gems.rubyforge.org
gem install diakonos
As of 0.8.8, it's no longer installed by RubyGems. Sigh.
Simple to get and install though. Download, unpack,
ruby install.rb
-
control-o
should automatically list the files in the current directory without needing to wait for tab- And it should not display the path except at the very top line.
- Trying to open a path just explodes. It should show that directory's files.
home
/end
don't workshift-cursor
doesn't work to highlight.-
Is there a dropdown menu?
ungh, it's just too clumsy.
I don't even see a way to uninstall it. Sigh.
2007-07-25 - 0.8.3 ∞
It's just SO UNBELIEVABLY CUMBERSOME. Sigh. It took me a while to figure things out..
Configuration ∞
My preferences. Press F12
. At the bottom, I add this new line and press control-s
to save:
include ~/.diakonos/mine.conf
# proper scrolling view.jump.y 1 # detect if a file is readable before reading it. Why isn't this a default? use_magic_file true # convert tabs to spaces. convert_tabs true # 'home' goes to the beginning of the line. *gasp* # became default. bol_behaviour zero # -- # -- hotkeys # -- # control-home goes to the top of the file. key esc [ 1 ; 5 H cursorBOF # control-end goes to the bottom of the file. key esc [ 1 ; 5 F cursorEOF key ctrl+space;toggleSelection # nano/pico preferences key ctrl+u;paste # TODO - control-left goes back a word # keycode544 # TODO - control-right goes ahead a word # keycode559 # If I ever use diakonos again, implement this list of other possibly-user-implementable stuff # ctrl+w to search # ctrl+x to quit the current buffer # ctrl-backspace delete a word # I can't figure out control-[ # I think control-] is: key keycode29;switchToNextBuffer # control-shift-z should redo
Ideas ∞
- Allow
#
to be in a setting. Use#
and the following stuff as a content. - It would be nice if I could easily save / manage a macros database.
- Auto-save a backup, like what Nano does.
-
Include a minimal default configuration, because people don't always have a net connection when they run diakonos for the first time.
Issues ∞
-
Can't I shift-cursor to highlight and do useful things with highlighting?
- I can't implement anything myself..
-
If I load a script and then just press enter, diakonos should detect if no filename was added, without exploding.
- idea: If no filename was added, maybe just run the current script.
- I should not have to double-tap escape to abort various commands. One tap should work.
-
control-s
should remember my last search, and let me press enter on a blank line to repeat it.- advanced search history matching
control-f
and search for something, then presspagedown
, it highlights from the search result to the cursor.- There should be a feature to end selection.
toggleSelection
isn't appropriate sometimes. -
control-k
deleteAndStoreLine
should not delete the last line of the file..
Questions ∞
-
Is there a feature to re-load the preferences, without having to quit and re-start diakonos?
Last updated 2022-11-23 at 18:23:23
ported, and also included my old configuration file since I probably won't use this again any time soon.