From fc56a9f8d70579393e66a22a7df15fba2d78c154 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 12 Mar 2022 16:19:02 -0500 Subject: 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. --- catgirl.1 | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'catgirl.1') 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 -- cgit 1.4.1