~skiqqy/bin

c7a50174c85e6fda1769a4051fdacd5f31e95027 — Stephen Cochrane 2 months ago 0fe85e1
Abstracted so other users may use the script
1 files changed, 7 insertions(+), 1 deletions(-)

M todo
M todo => todo +7 -1
@@ 25,7 25,11 @@ main()
				return
				;;
			s)
				term='st -e' # Run in new terminal
				# Set the default term
				term=
				command -v st && term='st -e' # Run in new terminal
				[ -z "$term" ] && command -v gnome-terminal && \
					term='gnome-terminal --' # Run in new terminal
				;;
			*)
				echo 'TODO. usage()'


@@ 46,6 50,8 @@ main()
				done
				;;
			''|pdf)
				open=
				! command -v pdf && open='xdg-open' || open=pdf
				open=${1:-"$EDITOR"} # What to open the file with.
				run="select open in *.${1:-md}; do $open \"\$open\"; done" # Funky eval string
				if [ -n "$term" ]