sd -- a drop-in replacement for `cd'

Check-in [13f16da74f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:manpage fix (bring back into sync with version on other branches).
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 13f16da74fa95a93179adfd8c483e3f7223b1dc5
User & Date: vdh 2019-12-13 15:01:02
Context
2019-12-22 16:55
replace piping of `print' output into commands by `<<<' here strings whereever possible. some other minor edits. check-in: eed377262a user: vdh tags: trunk
2019-12-13 15:01
manpage fix (bring back into sync with version on other branches). check-in: 13f16da74f user: vdh tags: trunk
2019-12-13 14:28
typo. check-in: 263d448eac user: vdh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to sd.ksh.

110
111
112
113
114
115
116
117

118
119
120
121
122
123
124
.B ksh
functions enabling rapid navigation between recently visited
directories.
.B sd
keeps track of all recent
.B cd
activities with the help of a logfile. This logfile is analyzed
to generate a "frecency distribution" of the visits to different

directories. The directory stack can be queried by
further
.B sd
commands using pattern matching. A sliding window (containing
a limited number of trailing entries from the logfile) is used.
This leads to a dynamically changing stack which is updated
after each







|
>







110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
.B ksh
functions enabling rapid navigation between recently visited
directories.
.B sd
keeps track of all recent
.B cd
activities with the help of a logfile. This logfile is analyzed
to generate a "frecency" distribution
(combining frequency and recency) of the visits to different
directories. The directory stack can be queried by
further
.B sd
commands using pattern matching. A sliding window (containing
a limited number of trailing entries from the logfile) is used.
This leads to a dynamically changing stack which is updated
after each

Changes to www/man.md.

1
2
3
4
5
6
7
8
9
10
11

man page
========
Below follows  a transcript of the **sd** man page. 
See also the [quickstart guide](quick.md).

NAME
====

sd - switch between directories using a dynamic directory stack




|







1
2
3
4
5
6
7
8
9
10
11

man page
========
Below follows a transcript of the **sd** man page. 
See also the [quickstart guide](quick.md).

NAME
====

sd - switch between directories using a dynamic directory stack

Changes to www/mkman.sh.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
' |\
pandoc -f man -t markdown_strict |\
(
# add a preamble
print "
man page
========
Below follows  a transcript of the **sd** man page. 
See also the [quickstart guide](quick.md).
"
# post process the result to remove residual formatting errors
sed -E '
   s/(^[1-9]\. )/\\\1/g
   s/\*\*\*([^*]+)\*\*\*/\1/g
   s/"\*\*([^*]+)\*\*/ \1 /g
   s/\*"/*/g
   s/"([^*]+[^!]\*)/ \1/g
   # this escapes more general patterns:
   s/\*\* sdcmd\*\*/ **sdcmd**/g
'
) >| man.md







|













26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
' |\
pandoc -f man -t markdown_strict |\
(
# add a preamble
print "
man page
========
Below follows a transcript of the **sd** man page. 
See also the [quickstart guide](quick.md).
"
# post process the result to remove residual formatting errors
sed -E '
   s/(^[1-9]\. )/\\\1/g
   s/\*\*\*([^*]+)\*\*\*/\1/g
   s/"\*\*([^*]+)\*\*/ \1 /g
   s/\*"/*/g
   s/"([^*]+[^!]\*)/ \1/g
   # this escapes more general patterns:
   s/\*\* sdcmd\*\*/ **sdcmd**/g
'
) >| man.md