make claude code ctrl+v works on linux to let claude see your current image (or any other ai cli really)
assuming you have tmp/ in the root of your repository added to your gitgnore
put that shell function to your .zshrc or .bashrc. make sure you have wl-paste, wtype and notify-send packages installed (should be std in any standard distro).
and add this to kitty
map ctrl+alt+v launch --type=background --cwd=current -- zsh -ic "pasteimage -g"
or when using bash
map ctrl+alt+v launch --type=background --cwd=current -- bash -ilc "pasteimage -g"
just press ctrl+alt+v when you are in claude code and it would show the [Image #1] thing:
▐▛███▜▌ Claude Code v2.0.33
▝▜█████▛▘ Sonnet 4.5 · API Usage Billing
▘▘ ▝▝ /home/chmouel/git/perso/stuff
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> [Image #1]
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⏵⏵ accept edits on (shift+tab to cycle)