about summary refs log tree commit diff
path: root/catgirl.1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-03-12 16:19:02 -0500
committerJune McEnroe <june@causal.agency>2022-03-12 16:19:02 -0500
commitfc56a9f8d70579393e66a22a7df15fba2d78c154 (patch)
tree92ce33595da31df07ce93db09d32959a5eae9f5c /catgirl.1
parentReset to vi insert mode on enter (diff)
downloadcatgirl-fc56a9f8d70579393e66a22a7df15fba2d78c154.tar.gz
catgirl-fc56a9f8d70579393e66a22a7df15fba2d78c154.zip
Add edit option to set line editing mode
I'm not super happy with the guessing based on .editrc or .inputrc
because I'm not parsing the files for real, but it's a conservative
guess and should do the right thing in most cases.
Diffstat (limited to '')
-rw-r--r--catgirl.124
1 files changed, 23 insertions, 1 deletions
diff --git a/catgirl.1 b/catgirl.1
index 16a59da..1349f4a 100644
--- a/catgirl.1
+++ b/catgirl.1
@@ -1,4 +1,4 @@
-.Dd February 22, 2022
+.Dd March 12, 2022
 .Dt CATGIRL 1
 .Os
 .
@@ -10,6 +10,7 @@
 .Nm
 .Op Fl KRelqv
 .Op Fl C Ar copy
+.Op Fl E Ar edit
 .Op Fl H Ar hash
 .Op Fl I Ar highlight
 .Op Fl N Ar notify
@@ -108,6 +109,24 @@ The default is the first available of
 .Xr xclip 1 ,
 .Xr xsel 1 .
 .
+.It Fl E Ar mode | Cm edit No = Ar mode
+Set the line editing mode to
+.Cm emacs
+or
+.Cm vi.
+The default is
+.Cm auto ,
+which sets the mode to
+.Cm vi
+if
+.Ql bind -v
+appears in
+.Pa ~/.editrc
+or
+.Ql set editing-mode vi
+appears in
+.Pa ~/.inputrc .
+.
 .It Fl H Ar seed,bound | Cm hash No = Ar seed,bound
 Set the initial seed
 of the nick and channel
@@ -904,6 +923,9 @@ usually
 .Pa /usr/local/share:/usr/share .
 .It Pa ~/.local/share/catgirl
 The most likely location of save files.
+.
+.It Pa ~/.editrc , Pa ~/.inputrc
+Used to guess the default line editing mode.
 .El
 .
 .Sh EXIT STATUS