aboutsummaryrefslogtreecommitdiff
path: root/remembering.1
blob: 545c4a8dc7e5d5ca17e80eed2cd332978e5e1cc1 (plain) (blame)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.TH REMEMBERING 1 @DATE@ "remembering @VERSION@"
.
.
.SH NAME
remembering - sort list using previous choices as weight
.
.
.SH SYNOPSYS
.B remembering
.RB -p
.IR profile
.RB -c
.IR command
.
.
.SH DESCRIPTION
.B remembering
takes a command that chooses an option as its behaviour, such as
.B fzf
or
.B dmenu
and
.IR remembers
what option is chosen, and as it is used, will put the most used choices at the beginning of the list.
.
.
.SH OPTIONS
.
.TP
.B -c
The
.IR command
to be executed, reading from standard input (STDIN).
.
.TP
.B -p
The name of the
.IR profile
where to look up and store raking data.
.
.
.SH EXAMPLES
.P
List current directory and feed it to
.IR fzf
via
.B remembering:
.RS
.EX

$ ls | remembering -p fzf-ls -c fzf
.EE
.RE
.
.P 
Lists all executables available in
.B $PATH,
and feed those to 
.IR dmenu
via
.B remembering, 
and execute with
.B sh
the choice picked:
.RS
.EX

$ dmenu_path | remembering -p dmenu-exe -c 'dmenu' | sh
.EE
.RE
.
.P
Successive invocations will put the frequent choices at the beginning.
.
.
.SH SEE ALSO
.IR remembering (5)
.
.
.SH AUTHORS
EuAndreh <eu@euandre.org>
.
.
.SH BUGS
Report bugs to: ~euandreh/public-inbox@lists.sr.ht
.br
Home page: https://remembering.euandreh.xyz