poe - acme for cli
source link: https://www.tuicool.com/articles/hit/rM7vQne
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
poe
My very own acme -inspired terminal text editor.
Because everything else is Not Invented Here.
Install
You need Go . Then:
go get -u github.com/prodhe/poe
Binary distribution may or not be available. As of now, the source should do just fine.
Usage
Use the mouse. ^Q
exits.
Everything is text and everything is editable. There are two ways to interact with text, Run
or Open
.
Open
( ^O
, right-click or Ctrl+Click) will assume the selected text is a file or a directory and will open a new window listing its content. If none is found, it does nothing.
Run
( ^R
, middle-click or Alt+Click) interprets the text as a command, which can be an internal poe command like New
or Del
. If none is found, it does nothing.
^S
saves current buffer to disk. You can change the name by edit the tagline.
^Z
undo, ^Y
redo.
^W
deletes word backwards.
^U
deletes to beginning of line.
Commands
New
opens an empty window.
Newcol
creates a new column with a new window.
Del
closes current window. If it is the last window, the program will exit.
Exit
closes all windows and exits the program.
Run command on date
executes date
as a shell command and presents its output in the message window named +poe
. Or pwd
, or ls -l
, or curl google.se
, or... you get the idea.
Bugs
Endless. As of now, it is in constant development and things may (and will) break unannounced. Do not use for production.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK