Edward Loveall

@edward@indieweb.social
382 Followers
93 Following
1.4K Posts
shit fuck i accidentally installed garfana instead of grafana
Sorry everyone, I remembered I turned a PC off before it was safe in 2001 and I think the current mess is my fault :€
I would like to subscribe to an ebook in my feed reader and have it show up like 500-1000 words at a time.

delighted to announce that my new zine "The Secret Rules of the Terminal" is out today!!

You can get it for $12 USD here: https://wizardzines.com/zines/terminal

SISYPHUS FM
NON STOP CLASSIC ROCK'N'ROLL

i have disabled every possible “artificial intelligence” setting in my account

every team or org i work with has disabled every “artificial intelligence” setting in their accounts

and yet,

I’m delighted to announce that Hotline Webring has reopened! We were never really “closed” but we weren’t accepting new sites for about a year.

Come join a surprisingly large webring—over 600 sites.

https://hotlinewebring.club/

Hotline Webring

A friendly ring of cool websites. Join today!

Lots of smart, reasonable people writing thoughtful, measured posts on genAI. But they’re often so focused on debating if genAI will enhance someone’s productivity and they miss the ethics piece entirely.

I’m glad @agentultra wrote “Why I Won’t Use AI” so I can link to that next time: https://agentultra.com/blog/why-i-wont-use-ai/index.html

Agentultra - Why I Won't Use AI

I've still never gotten into `fzf` (and maybe I never will!) but I think it's really cool that you can use a fzf 1-liner to make things like this little UI for reviewing git commits

(fzf stands for "fuzzy finder" but I think it's interesting that you can use it for many things that do not involve searching or finding at all!)

https://jvns.ca/til/fzf-preview-git-commits/

i heard there was a secret ooze
that turned four reptiles into dudes
but you don't really care for turtles do ya

they battle crime throughout the night
as splinter taught them how to fight
and from the sewers came a cowabunga

cowabunga, cowabunga
cowabunga, cowa-buuu-ngaaa ~🎵

×

I've still never gotten into `fzf` (and maybe I never will!) but I think it's really cool that you can use a fzf 1-liner to make things like this little UI for reviewing git commits

(fzf stands for "fuzzy finder" but I think it's interesting that you can use it for many things that do not involve searching or finding at all!)

https://jvns.ca/til/fzf-preview-git-commits/

also I have been reminded that "I don't use fzf" is not true, I use fzf.vim every single day and I cannot imagine life without it https://github.com/junegunn/fzf.vim

(it's just such a integral part of my editor experience that I forget that it's even there)

@b0rk In case you haven't seen it before: fzf-git.sh (https://github.com/junegunn/fzf-git.sh) - it has a similar design ethos as fzf.vim (perhaps unsurprisingly, as it's by the same author) and exposes git resources (I mostly use it for commits and branches) in an fzf interface.
@alpha @b0rk Ooh, I’ve got a wrapper to quickly jump between repos under https://github.com/x-motemen/ghq with fzf, this sounds like a lovely addition to the toolbox.
GitHub - x-motemen/ghq: Remote repository management made easy

Remote repository management made easy. Contribute to x-motemen/ghq development by creating an account on GitHub.

GitHub
@b0rk If you find yourself using neovim with language servers, I must recommend fzf-lua as an alternative to fzf.vim. The basics (files, grep, git stuff, etc.) are more or less the same, but it integrates well with neovim's LSP capabilities, so you can suddenly fzf through all the symbols in your file/project, browse through all references of the current function/variable, and probably a million other things I haven't discovered yet.
@b0rk same – i never got into using it much, but i have a little shell function to navigate directories of a git repo using fzf's fuzzy matching :-)
@b0rk
I've literally only ever used it for `vim $(fzf)` because I can't be bothered to go back learning a new tool that I won't find on many systems I need it to be on. Big thing with the new tool problem — the tool needs to be available. Nice for people ricing their own dev system, fairly unfeasible for sysops
@b0rk I switched to fzf, in Vim, from ctrlp, about two weeks ago. I am barely using any of the features, but it was massively worth it for the huge speedup on our large work repo. I've played with it for other stuff, and it's way cool, but I might not ever do more. But for Vim, it was a great move and worth a few hours of faff.
@rjbs oh man when I say that I don't use fzf I always forget that I use it every single day in vim. it's great.
@b0rk It really does become just part of the editor, doesn't it? It makes work better.
@b0rk Only thing I ever use fzf for is the shell history integration, where it lets me find commands by e.g. what file I was operating on instead of just the first chars in the line
@b0rk Ooh, I need to add a preview like this to my git worktree switcher fzf script…

@b0rk

Very nice! I haven't used those preview windows, I'm going to take a look at them.
I use fzf a few times every day, like `vim $(fzf)` to open a specific file in a large branching directory.

Also, in my .zshrc:

alias fcd='cd $(find * -type d | fzf)'

alias fp='flatpak list --app | fzf | cut -f 2 | parallel flatpak run'

alias chezedit='(cd ~ && (for f in $(chezmoi managed); test -f $f && echo $f) | fzf | xargs chezmoi edit)'

> `fzf` is a tool that you can use to select items from a list. I think it’s most popularly used to search your shell history (as a `Ctrl+R` replacement in bash).

*That's* why my history search looks different now! Thank you, you've answered a question I've had for a while!

@b0rk Nice. For some reason that I don't understand, your git-show isn't working for me. There's something going wrong with the xargs -I% -- if I add in an echo before that git show then everything looks completely right (the command in the preview window), but with the echo gone, the preview is blank. If I change the xargs to use -n1, no -I%, and remove the trailing % then it works for me. I can't think what's upsetting it for me, but 🤷
@hylomorphism i wonder if it's a bsd xargs vs GNU xargs thing (I only tested it on a mac)
@b0rk It's trailing space. If I add -t to xargs, I can see the filename is being 'quoted' and has a bunch of 'trailing '.
So changing your sed to sed 's/ *|.*//' fixes it.
@b0rk fzf with @atuin is the only thing my apparently vast CLI knowledge relies on. 😅
@b0rk seems like `tig`
@zeenix probably yeah! I think tig has too many features and it stresses me out, I've never been able to really internalize how to use anything other than the standard `git` cli tool
@b0rk I use it to power a few git related aliases, e.g. `loot` (visual stash popper): https://github.com/knowler/dotfiles/blob/c7251db7249c063348fa7876a9f6e9e6abffaf08/.local/bin/loot
dotfiles/.local/bin/loot at c7251db7249c063348fa7876a9f6e9e6abffaf08 · knowler/dotfiles

Personal dotfiles for macOS and Manjaro. Contribute to knowler/dotfiles development by creating an account on GitHub.

GitHub
@b0rk the beauty of fzf isn't just the excellent fuzzy filtering and ctrl-r, it's slowly realizing how fun it is to build little interactive selectors for all kinds of workflows with it
@b0rk serie (https://github.com/lusingander/serie) is a good tool for just browsing the commit graph, and I use it for projects that I do not plan to work on. For those I do, I almost exclusively use Jujutsu 🤔.
GitHub - lusingander/serie: A rich git commit graph in your terminal, like magic 📚

A rich git commit graph in your terminal, like magic 📚 - lusingander/serie

GitHub

@b0rk The only consistent use I've found for it is that I made a function called `cdf` that combines it with `find` (or `fd`, when available) to help me change directly to deeply nested subdirectories from the root directory of a project, which is something I find myself doing a lot:

https://github.com/Fitzsimmons/term/blob/18730fd021e636d115ad47907200e9f8cb3b1843/zshrc#L63

The preview pane contains a listing of the contents of the highlighted directory.

@smn @b0rk Just FYI, `fzf` ships with a default shell binding that's similar to this, it's `ALT-C` referenced here https://github.com/junegunn/fzf?tab=readme-ov-file#setting-up-shell-integration

(You might have to tweak it slightly to get the same behavior, e.g., `export FZF_ALT_C_COMMAND='fd --type d’`)

@b0rk I urgently need an alias for that interactive jq hack. 😬
That is amazing!!! 🔥
@b0rk the ctrl-r shell integration changed my life
@b0rk @voyd I'm using atuin for that already. 😇
@b0rk That jq snippet is brilliant, definitely will be using that in future. I had no idea you could so usefully combine two tools I frequently use. Thanks!
@b0rk oh that's cool!
I need to look into using fzf, i know it's good, I just don't know how to use it 🤣

@b0rk using cheat.sh website as console helper

curl -sSL cheat.sh/$(curl -sSL cheat.sh/:list | fzf --preview "curl -sSL cheat.sh/{}")

- pipe cheat.sh/:list into fzf
- find command (eg. git-commit) and view in fzf preview window
- after selecting command (ie. Enter key) show preview on the console output

@b0rk I've been using it to solve "this is almost always just one thing, but what if it's not...?" scenarios in a lot of my scripts, and I *love* it. I just chuck it into almost every pipeline with a `-1` and I slowly learn what assumptions were wrong and what they look like, and deal with them later (or just keep punting to humans).

@b0rk it’s a wonderful little utility!

I’ve got it looking up my most recent Git branches to swap between them: https://github.com/radar/dot-files/blob/master/gitaliases#L42

dot-files/gitaliases at master · radar/dot-files

everyone has one... Contribute to radar/dot-files development by creating an account on GitHub.

GitHub

@b0rk

I frequently do

fd | fzf -e

When I've lost something. Used to "find | grep" but this is way faster and interactive.

@b0rk one of my #1 most common bash aliases I use is this:

alias bb="git branch --sort=-committerdate| fzf |xargs git checkout "

it let's you see most recently changed git branches, and then pick from that list with a simple 'fuzzy finder' typer

@b0rk Such a nice generalisation of a UI pattern.
@b0rk I really love fzf for shell history search. If that was all it did, I'd still consider it a must have 😄
@dbrckmn yeah it seems really popular! i like fish’s built in history search better but if i didn’t use fish i might use it
it's very nice really! I use even for small login manager :)