-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtodo.txt
75 lines (70 loc) · 3.82 KB
/
todo.txt
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
Not actually documentation, just a todo/random ideas list..
d:
- also git add in case of new file
- move short usage list to top of d.txt
Things to add or YOU KNOW to COPY FROM CHEATSHEETS:
- man: where are man pages? what are the numbers about? mandb, manpath
- locale
- wget/curl
- cut? this needs to be a chapter thing in bash or ... w/e
- apt, probably
- atop
- yum
- irssi
- configure/make stuff, check old C notes & kilo editor
- shopt???
- visudo
- certinfo?
* jq
* composer
* ansi codes
* grep: ?exclude file/dir patterns with examples
* tmux
v git
v bat install instructions o.o;
Colors:
- yellow: paths, maybe \e[38;5;226m38;5;226\e[0m
- white (default color): example commands, outside the blue comments
inside blue comments, maybe \e[38;5;208morange (38;5;208)\e[0m for commands?
- \e[32;1mbright green (32;1)\e[0m: something exciting in a command like a placeholder
- \e[38;5;201mbright pink (38;5;201)\e[0m for some newly introduced concept
- \e[34;1mbright blue\e[0m (34;1) for key strokes? maybe something with bg color to suggest a key cap
Random ideas:
Search:
- should also check for files with the query as substring
- should not search the symlinks (optionally check they link to something in that directory, otherwise still search?)
- if the shown command is a symlink to another command, prepend a message stating that
* bash_completion is a good start, but for incomplete input..
√ if there is a single match, d can load that. It shows the filename in red.
√ this needs tweaking: the red filename should end up in the same data that goes to `less`, and ls should be command ls
because sometimes shit ends up executable/symlink and the filename gains a '*' with some .bashrcs (or something), which
then breaks the file-exists check
- for multiple matches, probably just yell at the user?
?? for multiple matches, prepend a message but show the first one (or all, if that is even possible?).
? -l to list entries with last-modified date, and/or commit message
- support multiple random-order options o.o https://stackoverflow.com/a/14203146/126584
* d now supresses color (well, the git version does, I keep overwriting the version in use) when outputting to other process;
v added a flag to force color output
? also for search result and other non-interactive output (is this needed?)
- should probably prefix more things (like grep) with 'command'
- `d foo :bar` to get only chapter bar from foo (what in the frick is 'chapter notation')
- could even fetch and store data from some server. or local database. not sure what the advantage of this is, or if there is one..
- if <entry> not found, offer to grep for it? or do that automatically? or count the results and decide on that? flip a coin?
Done/discarded:
√ placeholder for comment color, to finish different-color strings inside comments.
> how about simply "\e[0m" but only in comment lines! this would need to go Before the sed that colors
> this even worked, shiv'd the new sed on the same line before the current one, but using \\e instead of ${esc} and somehow it
works..
√ some type of apropos, "d -s blaat" where it simply greps for blaat in all doc files and prints a pretty result table
√ config? things? somewhere in $D_DOCS
√ color to use for comments
x first line '#d ...' can be flags on how to print the rest of the file, eg
x interpret ansi escape codes (like color)
x attempt syntax highlighting (maybe use bat if available?)
x there should then also be some sane - optionally configurable - defaults
> No.
v bash_completion
v maybe add color support for emphasis or the commands in a description
x example entry using this
* bash_completion is a good start, but for incomplete input..
x for bonus points prepend a different message if only a substring match was found ('zip' for gzip)