doing 2.0.20 → 2.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/doing.rdoc +1 -1
- data/lib/doing/log_adapter.rb +3 -1
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +19 -8
- data/lib/helpers/fzf/.goreleaser.yml +119 -0
- data/lib/helpers/fzf/.rubocop.yml +28 -0
- data/lib/helpers/fzf/ADVANCED.md +565 -0
- data/lib/helpers/fzf/BUILD.md +49 -0
- data/lib/helpers/fzf/CHANGELOG.md +1193 -0
- data/lib/helpers/fzf/Dockerfile +11 -0
- data/lib/helpers/fzf/LICENSE +21 -0
- data/lib/helpers/fzf/Makefile +166 -0
- data/lib/helpers/fzf/README-VIM.md +486 -0
- data/lib/helpers/fzf/README.md +712 -0
- data/lib/helpers/fzf/bin/fzf-tmux +233 -0
- data/lib/helpers/fzf/doc/fzf.txt +512 -0
- data/lib/helpers/fzf/go.mod +17 -0
- data/lib/helpers/fzf/go.sum +31 -0
- data/lib/helpers/fzf/install +382 -0
- data/lib/helpers/fzf/install.ps1 +65 -0
- data/lib/helpers/fzf/main.go +14 -0
- data/lib/helpers/fzf/man/man1/fzf-tmux.1 +68 -0
- data/lib/helpers/fzf/man/man1/fzf.1 +1001 -0
- data/lib/helpers/fzf/plugin/fzf.vim +1048 -0
- data/lib/helpers/fzf/shell/completion.bash +381 -0
- data/lib/helpers/fzf/shell/completion.zsh +329 -0
- data/lib/helpers/fzf/shell/key-bindings.bash +96 -0
- data/lib/helpers/fzf/shell/key-bindings.fish +172 -0
- data/lib/helpers/fzf/shell/key-bindings.zsh +114 -0
- data/lib/helpers/fzf/src/LICENSE +21 -0
- data/lib/helpers/fzf/src/algo/algo.go +884 -0
- data/lib/helpers/fzf/src/algo/algo_test.go +197 -0
- data/lib/helpers/fzf/src/algo/normalize.go +492 -0
- data/lib/helpers/fzf/src/ansi.go +409 -0
- data/lib/helpers/fzf/src/ansi_test.go +427 -0
- data/lib/helpers/fzf/src/cache.go +81 -0
- data/lib/helpers/fzf/src/cache_test.go +39 -0
- data/lib/helpers/fzf/src/chunklist.go +89 -0
- data/lib/helpers/fzf/src/chunklist_test.go +80 -0
- data/lib/helpers/fzf/src/constants.go +85 -0
- data/lib/helpers/fzf/src/core.go +351 -0
- data/lib/helpers/fzf/src/history.go +96 -0
- data/lib/helpers/fzf/src/history_test.go +68 -0
- data/lib/helpers/fzf/src/item.go +44 -0
- data/lib/helpers/fzf/src/item_test.go +23 -0
- data/lib/helpers/fzf/src/matcher.go +235 -0
- data/lib/helpers/fzf/src/merger.go +120 -0
- data/lib/helpers/fzf/src/merger_test.go +88 -0
- data/lib/helpers/fzf/src/options.go +1691 -0
- data/lib/helpers/fzf/src/options_test.go +457 -0
- data/lib/helpers/fzf/src/pattern.go +425 -0
- data/lib/helpers/fzf/src/pattern_test.go +209 -0
- data/lib/helpers/fzf/src/protector/protector.go +8 -0
- data/lib/helpers/fzf/src/protector/protector_openbsd.go +10 -0
- data/lib/helpers/fzf/src/reader.go +201 -0
- data/lib/helpers/fzf/src/reader_test.go +63 -0
- data/lib/helpers/fzf/src/result.go +243 -0
- data/lib/helpers/fzf/src/result_others.go +16 -0
- data/lib/helpers/fzf/src/result_test.go +159 -0
- data/lib/helpers/fzf/src/result_x86.go +16 -0
- data/lib/helpers/fzf/src/terminal.go +2832 -0
- data/lib/helpers/fzf/src/terminal_test.go +638 -0
- data/lib/helpers/fzf/src/terminal_unix.go +26 -0
- data/lib/helpers/fzf/src/terminal_windows.go +45 -0
- data/lib/helpers/fzf/src/tokenizer.go +253 -0
- data/lib/helpers/fzf/src/tokenizer_test.go +112 -0
- data/lib/helpers/fzf/src/tui/dummy.go +46 -0
- data/lib/helpers/fzf/src/tui/light.go +987 -0
- data/lib/helpers/fzf/src/tui/light_unix.go +110 -0
- data/lib/helpers/fzf/src/tui/light_windows.go +145 -0
- data/lib/helpers/fzf/src/tui/tcell.go +721 -0
- data/lib/helpers/fzf/src/tui/tcell_test.go +392 -0
- data/lib/helpers/fzf/src/tui/ttyname_unix.go +47 -0
- data/lib/helpers/fzf/src/tui/ttyname_windows.go +14 -0
- data/lib/helpers/fzf/src/tui/tui.go +625 -0
- data/lib/helpers/fzf/src/tui/tui_test.go +20 -0
- data/lib/helpers/fzf/src/util/atomicbool.go +34 -0
- data/lib/helpers/fzf/src/util/atomicbool_test.go +17 -0
- data/lib/helpers/fzf/src/util/chars.go +198 -0
- data/lib/helpers/fzf/src/util/chars_test.go +46 -0
- data/lib/helpers/fzf/src/util/eventbox.go +96 -0
- data/lib/helpers/fzf/src/util/eventbox_test.go +61 -0
- data/lib/helpers/fzf/src/util/slab.go +12 -0
- data/lib/helpers/fzf/src/util/util.go +138 -0
- data/lib/helpers/fzf/src/util/util_test.go +40 -0
- data/lib/helpers/fzf/src/util/util_unix.go +47 -0
- data/lib/helpers/fzf/src/util/util_windows.go +83 -0
- data/lib/helpers/fzf/test/fzf.vader +175 -0
- data/lib/helpers/fzf/test/test_go.rb +2626 -0
- data/lib/helpers/fzf/uninstall +117 -0
- metadata +88 -2
@@ -0,0 +1,117 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
xdg=0
|
4
|
+
prefix='~/.fzf'
|
5
|
+
prefix_expand=~/.fzf
|
6
|
+
fish_dir=${XDG_CONFIG_HOME:-$HOME/.config}/fish
|
7
|
+
|
8
|
+
help() {
|
9
|
+
cat << EOF
|
10
|
+
usage: $0 [OPTIONS]
|
11
|
+
|
12
|
+
--help Show this message
|
13
|
+
--xdg Remove files generated under \$XDG_CONFIG_HOME/fzf
|
14
|
+
EOF
|
15
|
+
}
|
16
|
+
|
17
|
+
for opt in "$@"; do
|
18
|
+
case $opt in
|
19
|
+
--help)
|
20
|
+
help
|
21
|
+
exit 0
|
22
|
+
;;
|
23
|
+
--xdg)
|
24
|
+
xdg=1
|
25
|
+
prefix='"${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf'
|
26
|
+
prefix_expand=${XDG_CONFIG_HOME:-$HOME/.config}/fzf/fzf
|
27
|
+
;;
|
28
|
+
*)
|
29
|
+
echo "unknown option: $opt"
|
30
|
+
help
|
31
|
+
exit 1
|
32
|
+
;;
|
33
|
+
esac
|
34
|
+
done
|
35
|
+
|
36
|
+
ask() {
|
37
|
+
while true; do
|
38
|
+
read -p "$1 ([y]/n) " -r
|
39
|
+
REPLY=${REPLY:-"y"}
|
40
|
+
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
41
|
+
return 0
|
42
|
+
elif [[ $REPLY =~ ^[Nn]$ ]]; then
|
43
|
+
return 1
|
44
|
+
fi
|
45
|
+
done
|
46
|
+
}
|
47
|
+
|
48
|
+
remove() {
|
49
|
+
echo "Remove $1"
|
50
|
+
rm -f "$1"
|
51
|
+
}
|
52
|
+
|
53
|
+
remove_line() {
|
54
|
+
src=$(readlink "$1")
|
55
|
+
if [ $? -eq 0 ]; then
|
56
|
+
echo "Remove from $1 ($src):"
|
57
|
+
else
|
58
|
+
src=$1
|
59
|
+
echo "Remove from $1:"
|
60
|
+
fi
|
61
|
+
|
62
|
+
shift
|
63
|
+
line_no=1
|
64
|
+
match=0
|
65
|
+
while [ -n "$1" ]; do
|
66
|
+
line=$(sed -n "$line_no,\$p" "$src" | \grep -m1 -nF "$1")
|
67
|
+
if [ $? -ne 0 ]; then
|
68
|
+
shift
|
69
|
+
line_no=1
|
70
|
+
continue
|
71
|
+
fi
|
72
|
+
line_no=$(( $(sed 's/:.*//' <<< "$line") + line_no - 1 ))
|
73
|
+
content=$(sed 's/^[0-9]*://' <<< "$line")
|
74
|
+
match=1
|
75
|
+
echo " - Line #$line_no: $content"
|
76
|
+
[ "$content" = "$1" ] || ask " - Remove?"
|
77
|
+
if [ $? -eq 0 ]; then
|
78
|
+
awk -v n=$line_no 'NR == n {next} {print}' "$src" > "$src.bak" &&
|
79
|
+
mv "$src.bak" "$src" || break
|
80
|
+
echo " - Removed"
|
81
|
+
else
|
82
|
+
echo " - Skipped"
|
83
|
+
line_no=$(( line_no + 1 ))
|
84
|
+
fi
|
85
|
+
done
|
86
|
+
[ $match -eq 0 ] && echo " - Nothing found"
|
87
|
+
echo
|
88
|
+
}
|
89
|
+
|
90
|
+
for shell in bash zsh; do
|
91
|
+
shell_config=${prefix_expand}.${shell}
|
92
|
+
remove "${shell_config}"
|
93
|
+
remove_line ~/.${shell}rc \
|
94
|
+
"[ -f ${prefix}.${shell} ] && source ${prefix}.${shell}" \
|
95
|
+
"source ${prefix}.${shell}"
|
96
|
+
done
|
97
|
+
|
98
|
+
bind_file="${fish_dir}/functions/fish_user_key_bindings.fish"
|
99
|
+
if [ -f "$bind_file" ]; then
|
100
|
+
remove_line "$bind_file" "fzf_key_bindings"
|
101
|
+
fi
|
102
|
+
|
103
|
+
if [ -d "${fish_dir}/functions" ]; then
|
104
|
+
remove "${fish_dir}/functions/fzf.fish"
|
105
|
+
remove "${fish_dir}/functions/fzf_key_bindings.fish"
|
106
|
+
|
107
|
+
if [ -z "$(ls -A "${fish_dir}/functions")" ]; then
|
108
|
+
rmdir "${fish_dir}/functions"
|
109
|
+
else
|
110
|
+
echo "Can't delete non-empty directory: \"${fish_dir}/functions\""
|
111
|
+
fi
|
112
|
+
fi
|
113
|
+
|
114
|
+
config_dir=$(dirname "$prefix_expand")
|
115
|
+
if [[ "$xdg" = 1 ]] && [[ "$config_dir" = */fzf ]] && [[ -d "$config_dir" ]]; then
|
116
|
+
rmdir "$config_dir"
|
117
|
+
fi
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Terpstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: safe_yaml
|
@@ -391,6 +391,92 @@ files:
|
|
391
391
|
- lib/examples/plugins/wiki_export/templates/wiki_index.haml
|
392
392
|
- lib/examples/plugins/wiki_export/wiki_export.rb
|
393
393
|
- lib/helpers/fuzzyfilefinder
|
394
|
+
- lib/helpers/fzf/.goreleaser.yml
|
395
|
+
- lib/helpers/fzf/.rubocop.yml
|
396
|
+
- lib/helpers/fzf/ADVANCED.md
|
397
|
+
- lib/helpers/fzf/BUILD.md
|
398
|
+
- lib/helpers/fzf/CHANGELOG.md
|
399
|
+
- lib/helpers/fzf/Dockerfile
|
400
|
+
- lib/helpers/fzf/LICENSE
|
401
|
+
- lib/helpers/fzf/Makefile
|
402
|
+
- lib/helpers/fzf/README-VIM.md
|
403
|
+
- lib/helpers/fzf/README.md
|
404
|
+
- lib/helpers/fzf/bin/fzf-tmux
|
405
|
+
- lib/helpers/fzf/doc/fzf.txt
|
406
|
+
- lib/helpers/fzf/go.mod
|
407
|
+
- lib/helpers/fzf/go.sum
|
408
|
+
- lib/helpers/fzf/install
|
409
|
+
- lib/helpers/fzf/install.ps1
|
410
|
+
- lib/helpers/fzf/main.go
|
411
|
+
- lib/helpers/fzf/man/man1/fzf-tmux.1
|
412
|
+
- lib/helpers/fzf/man/man1/fzf.1
|
413
|
+
- lib/helpers/fzf/plugin/fzf.vim
|
414
|
+
- lib/helpers/fzf/shell/completion.bash
|
415
|
+
- lib/helpers/fzf/shell/completion.zsh
|
416
|
+
- lib/helpers/fzf/shell/key-bindings.bash
|
417
|
+
- lib/helpers/fzf/shell/key-bindings.fish
|
418
|
+
- lib/helpers/fzf/shell/key-bindings.zsh
|
419
|
+
- lib/helpers/fzf/src/LICENSE
|
420
|
+
- lib/helpers/fzf/src/algo/algo.go
|
421
|
+
- lib/helpers/fzf/src/algo/algo_test.go
|
422
|
+
- lib/helpers/fzf/src/algo/normalize.go
|
423
|
+
- lib/helpers/fzf/src/ansi.go
|
424
|
+
- lib/helpers/fzf/src/ansi_test.go
|
425
|
+
- lib/helpers/fzf/src/cache.go
|
426
|
+
- lib/helpers/fzf/src/cache_test.go
|
427
|
+
- lib/helpers/fzf/src/chunklist.go
|
428
|
+
- lib/helpers/fzf/src/chunklist_test.go
|
429
|
+
- lib/helpers/fzf/src/constants.go
|
430
|
+
- lib/helpers/fzf/src/core.go
|
431
|
+
- lib/helpers/fzf/src/history.go
|
432
|
+
- lib/helpers/fzf/src/history_test.go
|
433
|
+
- lib/helpers/fzf/src/item.go
|
434
|
+
- lib/helpers/fzf/src/item_test.go
|
435
|
+
- lib/helpers/fzf/src/matcher.go
|
436
|
+
- lib/helpers/fzf/src/merger.go
|
437
|
+
- lib/helpers/fzf/src/merger_test.go
|
438
|
+
- lib/helpers/fzf/src/options.go
|
439
|
+
- lib/helpers/fzf/src/options_test.go
|
440
|
+
- lib/helpers/fzf/src/pattern.go
|
441
|
+
- lib/helpers/fzf/src/pattern_test.go
|
442
|
+
- lib/helpers/fzf/src/protector/protector.go
|
443
|
+
- lib/helpers/fzf/src/protector/protector_openbsd.go
|
444
|
+
- lib/helpers/fzf/src/reader.go
|
445
|
+
- lib/helpers/fzf/src/reader_test.go
|
446
|
+
- lib/helpers/fzf/src/result.go
|
447
|
+
- lib/helpers/fzf/src/result_others.go
|
448
|
+
- lib/helpers/fzf/src/result_test.go
|
449
|
+
- lib/helpers/fzf/src/result_x86.go
|
450
|
+
- lib/helpers/fzf/src/terminal.go
|
451
|
+
- lib/helpers/fzf/src/terminal_test.go
|
452
|
+
- lib/helpers/fzf/src/terminal_unix.go
|
453
|
+
- lib/helpers/fzf/src/terminal_windows.go
|
454
|
+
- lib/helpers/fzf/src/tokenizer.go
|
455
|
+
- lib/helpers/fzf/src/tokenizer_test.go
|
456
|
+
- lib/helpers/fzf/src/tui/dummy.go
|
457
|
+
- lib/helpers/fzf/src/tui/light.go
|
458
|
+
- lib/helpers/fzf/src/tui/light_unix.go
|
459
|
+
- lib/helpers/fzf/src/tui/light_windows.go
|
460
|
+
- lib/helpers/fzf/src/tui/tcell.go
|
461
|
+
- lib/helpers/fzf/src/tui/tcell_test.go
|
462
|
+
- lib/helpers/fzf/src/tui/ttyname_unix.go
|
463
|
+
- lib/helpers/fzf/src/tui/ttyname_windows.go
|
464
|
+
- lib/helpers/fzf/src/tui/tui.go
|
465
|
+
- lib/helpers/fzf/src/tui/tui_test.go
|
466
|
+
- lib/helpers/fzf/src/util/atomicbool.go
|
467
|
+
- lib/helpers/fzf/src/util/atomicbool_test.go
|
468
|
+
- lib/helpers/fzf/src/util/chars.go
|
469
|
+
- lib/helpers/fzf/src/util/chars_test.go
|
470
|
+
- lib/helpers/fzf/src/util/eventbox.go
|
471
|
+
- lib/helpers/fzf/src/util/eventbox_test.go
|
472
|
+
- lib/helpers/fzf/src/util/slab.go
|
473
|
+
- lib/helpers/fzf/src/util/util.go
|
474
|
+
- lib/helpers/fzf/src/util/util_test.go
|
475
|
+
- lib/helpers/fzf/src/util/util_unix.go
|
476
|
+
- lib/helpers/fzf/src/util/util_windows.go
|
477
|
+
- lib/helpers/fzf/test/fzf.vader
|
478
|
+
- lib/helpers/fzf/test/test_go.rb
|
479
|
+
- lib/helpers/fzf/uninstall
|
394
480
|
- lib/templates/doing-markdown.erb
|
395
481
|
- lib/templates/doing.css
|
396
482
|
- lib/templates/doing.haml
|