blob: 1aff1d28944dfa51c3f2043973bb637135916d82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# poe
My very own [acme](http://acme.cat-v.org/)-inspired terminal text editor.
Because everything else is Not Invented Here.
![poe](./poe.png)
## Install
You need [Go](https://golang.org/). 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` (Right-click or Shift+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` (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.
`^Z` undo, `^Y` redo. If you go back and change something, the future is lost. Like proper time travel.
`^W` deletes word backwards.
`^U` deletes to beginning of line.
`^C` copies selection.
`^V` pastes into selection or place of cursor.
### 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.
|