Просмотр исходного кода

~/.bin/suggest: Quickfind links/info out of a file

You can call this, do a fuzzy search, and it will output the last
space-separated element of the matching line.  I use it (a bit) to
collect useful links with custom shortcuts.
Lu Stadler лет назад: 7
Родитель
Сommit
1410dabbe9
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      .bin/suggest

+ 12 - 0
.bin/suggest

@ -0,0 +1,12 @@
1
#!/bin/bash
2
3
window=$(xdotool getactivewindow)
4
run="xdotool type --delay 0 --window $window"
5
6
case "$1" in
7
	-b|--browse)
8
		run="xdg-open"
9
		;;
10
esac
11
12
$run "$(rofi -dmenu -matching normal -sort -i -markup-rows < ~/suggest.txt | sed -E 's/.*\s(.*)$/\1/')"