From f264bbcdf6da8ea784cf1342b9583d34944fef0c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 6 Jan 2020 15:26:25 -0500 Subject: acme(1): update man page to note -a trimming trailing spaces on Put --- man/man1/acme.1 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'man/man1') diff --git a/man/man1/acme.1 b/man/man1/acme.1 index b3266595..182bcc7b 100644 --- a/man/man1/acme.1 +++ b/man/man1/acme.1 @@ -129,7 +129,7 @@ hold button 3 down near the top of the scroll bar. Moving the mouse down the scroll bar speeds up the rate of scrolling. (The experimental option .B -r -reverses the scrolling behavior of buttons 1 and 3, to behave +reverses the scrolling behavior of buttons 1 and 3, to behave more like .IR xterm (1).) .SS Layout @@ -193,10 +193,15 @@ When a window is in autoindent mode (see the .B Indent command below) and a newline character is typed, -acme copies leading white space on the current line to the new line. +.I acme +copies leading white space on the current line to the new line, +and when a window is +.BR Put , +.I acme +removes all trailing end-of-line white space before writing the file. The option .B -a -causes each window to start in +causes each window to start in autoindent mode. .SS "Directory context Each window's tag names a directory: explicitly if the window @@ -406,7 +411,7 @@ command. .B Local In the Plan 9 .IR acme , -this prefix causes a command to be run in +this prefix causes a command to be run in .IR acme 's own file name space and environment variable group. On Unix this is impossible. @@ -540,7 +545,7 @@ The environment variable .B $acmeshell determines which shell is used to execute such commands; the .IR rc (1) -shell is used by default. +shell is used by default. .SS "Mouse button 3 Pointing at text with button 3 instructs .I acme @@ -658,7 +663,7 @@ button and then typing Option without letting go of the button will cause a 1-2 chord, cutting the selection. On Mac systems, the usual keyboard shortcuts Command-C, -V, -X, and -Z invoke -copy, paste, cut, and undo, +copy, paste, cut, and undo, and Command-Shift-Z invokes redo, as in other programs. Especially on Mac laptops, these keyboard shortcuts are -- cgit v1.2.3 From a4e59b37021326e304c311825ba52a52b02bd9c0 Mon Sep 17 00:00:00 2001 From: Fazlul Shahriar Date: Tue, 7 Jan 2020 15:02:01 -0500 Subject: 9term: add a "look" menu item (#299) Add a menu item which functions similar to acme's `Look` command. This is copied from 9front. See: https://code.9front.org/hg/plan9front/rev/1f1596dbca51 https://code.9front.org/hg/plan9front/rev/d2de1d2f7b48 --- man/man1/9term.1 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'man/man1') diff --git a/man/man1/9term.1 b/man/man1/9term.1 index e0e5aad7..b0706139 100644 --- a/man/man1/9term.1 +++ b/man/man1/9term.1 @@ -285,6 +285,13 @@ containing the selection (typing cursor). A typical use of this feature is to tell the editor to find the source of an error by plumbing the file and line information in a compiler's diagnostic. .PP +The +.B look +menu item searches forward for the contents of the selection within +the window. If a match is found, it becomes the new selection and the +window scrolls to display it. The search wraps around to the beginning +of the windows if the end of the window is reached. +.PP For systems without a three-button mouse, the keyboard modifier keys can be used to modify the effect of the main mouse button. On Unix systems, the Control key changes the main button to button 2, -- cgit v1.2.3 From fa7fecff33769e27653a51d1d15909d2b538194b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 13 Jan 2020 11:04:53 -0500 Subject: wintext: add tmux support, use in ", "" Fixes #223. --- man/man1/wintext.1 | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'man/man1') diff --git a/man/man1/wintext.1 b/man/man1/wintext.1 index 12859f25..966b307b 100644 --- a/man/man1/wintext.1 +++ b/man/man1/wintext.1 @@ -3,17 +3,17 @@ wintext, ", "" \- access text in current window .ds x \C'"' .ds xx \C'"'\^\^\^\^\C'"' -.ds y \*x\ -.ds yy \*(xx\ +.ds y \*x\^ +.ds yy \*(xx\^ .SH SYNOPSIS .B wintext .br -.B \*x\ +.B \*y [ .I prefix ] .br -.B \*(xx\ +.B \*(yy [ .I prefix ] @@ -22,9 +22,11 @@ wintext, ", "" \- access text in current window prints the text of the current .I win (see -.IR acme (1)) +.IR acme (1)), +.IR 9term (1), or -.IR 9term (1) +(Unix's) +.IR tmux (1) window to standard output. .PP .I \*y @@ -40,7 +42,7 @@ prints the last command executed. .I \*(yy prints the last command that .I \*y -would print and then executes it by piping it into +would print and then executes it by piping it into .IR rc (1). .PP Both @@ -82,7 +84,7 @@ command again: % \*(xx lc % lc r* ramfs rc read rio rm -% +% .EE .SH SEE ALSO .IR 9term (1), -- cgit v1.2.3 From ac6456a0cc67ca33c7b9c64cf7a4598961de8911 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 13 Jan 2020 16:53:30 -0500 Subject: clock: import from plan 9 Fixes #250. --- man/man1/date.1 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'man/man1') diff --git a/man/man1/date.1 b/man/man1/date.1 index 1ce96f38..10db8dfe 100644 --- a/man/man1/date.1 +++ b/man/man1/date.1 @@ -1,6 +1,6 @@ .TH DATE 1 .SH NAME -date \- date and time +date, clock \- date and time .SH SYNOPSIS .B date [ @@ -8,8 +8,8 @@ date \- date and time ] [ .I seconds ] -.\" .br -.\" .B clock +.br +.B clock .SH DESCRIPTION Print the date, in the format .PP @@ -34,6 +34,9 @@ If the optional argument .I seconds is present, it is used as the time to convert rather than the real time. +.PP +.I Clock +draws a simple analog clock in its window. .\" .SH FILES .\" .TF /adm/timezone/local .\" .TP @@ -54,5 +57,5 @@ the real time. .\" draws a simple analog clock in its window. .SH SOURCE .B \*9/src/cmd/date.c -.\" .br -.\" .B \*9/src/cmd/draw/clock.c +.br +.B \*9/src/cmd/draw/clock.c -- cgit v1.2.3