HackerTrans
TopNewTrendsCommentsPastAskShowJobs

pneto

no profile record

comments

pneto
·há 4 anos·discuss
I made this shell script to save them in a text file with title and tags and I can search with fzf. The nice thing is that I can open urls in specific software. A video in mpv, a gemini url in amfora and so on. It's not really well written but it serves my needs. But I still need a way to import my browser bookmarks. https://github.com/paulobtn/cli-bookmarker
pneto
·há 5 anos·discuss
there's also lite.duckduckgo.com if you want to go even more minimal
pneto
·há 5 anos·discuss
It's just a joke. Dvorak was supposed to be ergonomic but it is painful for programmers because our most common shortcuts are designed for qwerty.
pneto
·há 5 anos·discuss
wiby.me is an interesting one.
pneto
·há 5 anos·discuss
I've been playing around with the tool FZF recently. It's speeding up my command line workflow quite a lot. I made a small script that allows me to open a fuzzy search for any command, so I can write the command f followed by something like vim, evince, cd, mpv... I can optionally give a starting directory and a first query but I rarely do it. I have it in my .bashrc, but should work in any posix compliant shell. It needs fzf and fd:

  # fuzzy search any command
  f(){
    ROOT_DIR="."
    [ -n "$2" ] && ROOT_DIR="$2"
    FZF_OUT=`fd . -H --color=always "$ROOT_DIR" --exclude "Software/"| fzf --query="$3"`
    [ -n "$FZF_OUT" ] && "$1" "$FZF_OUT"
  }
in my case Software/ is a directory with lots of files I don't need so I exclude it from my searches. I also like using ranger, it has very nice bookmarking and launcher features.