HackerTrans
トップ新着トレンドコメント過去質問紹介求人

pneto

no profile record

コメント

pneto
·4 年前·議論
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
·5 年前·議論
there's also lite.duckduckgo.com if you want to go even more minimal
pneto
·5 年前·議論
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
·5 年前·議論
wiby.me is an interesting one.
pneto
·5 年前·議論
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.