You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.
I recently switched to vi keymap for Zsh. Here are some useful remapping to make it feels smoother:
bindkey -M vicmd '~' vi-swap-case
bindkey -M vicmd 'u' undo
bindkey -M vicmd 'U' redo
bindkey -M vicmd "?" history-incremental-pattern-search-backward
bindkey -M vicmd "/" history-incremental-pattern-search-forward
bindkey -M viins '^?' backward-delete-char # backspace
bindkey -M viins '^[[Z' reverse-menu-complete # shift-tab
bindkey -M viins '^a' beginning-of-line
bindkey -M viins '^e' end-of-line
bindkey -M viins '^h' backward-delete-char
bindkey -M viins '^k' kill-line
bindkey -M viins '^n' down-history
bindkey -M viins '^p' up-history
bindkey -M viins '^u' backward-kill-line
bindkey -M viins '^w' backward-delete-word
bindkey -M viins '^y' yank
autoload -U edit-command-line
zle -N edit-command-line
bindkey '^f' edit-command-line
I don’t use ^r
for backward search since it is managed by Fzf directly.
And in Tmux:
bind -T copy-mode-vi u send-keys -X halfpage-up
bind -T copy-mode-vi d send-keys -X halfpage-down
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi C-l send-keys -X clear-selection
bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind -T copy-mode-vi 'C-v' send-keys -X rectangle-toggle \; send -X begin-selection
bind -T copy-mode-vi n send-keys -X search-forward "» "
bind -T copy-mode-vi p send-keys -X search-backward "» "
bind -T copy-mode-vi / command-prompt -i -I "#{pane_search_string}" -p "(search down)" { send -X search-forward-incremental '%%%' }
bind -T copy-mode-vi ? command-prompt -i -I "#{pane_search_string}" -p "(search up)" { send -X search-backward-incremental '%%%' }
%if "#{!=:$EDITOR,}"
set editor $EDITOR
bind -T copy-mode-vi C-f send-keys -X pipe-and-cancel 'xargs -I% tmux send-keys $EDITOR Space % Enter'
%endif
Which means in both case you can edit a command or a visual selection in your $EDITOR
using ^f
.
/me is listening to “Facility Girls” by Soft Cell
I tried them all (recently, Ghostty, for a day). My preferred terminal emulator was probably foot, back when I was on Linux.
» ls .config/archived
alacritty/ ghostty/ kitty/ matterbridge.toml tig/ zed/
foot/ helix/ lazygit/ psql/ wezterm/
TIL we can open multiple PDF files as tabs in Preview.app (h/t Burkhard Schmidt). On Sequoia, the corresponding setting is now in the Desktop and Dock panel. #apple
Are you looking for an online NBT editor for minecraft? https://offroaders123.github.io/Dovetail/
TIL about Doppler. Drag’n drop and just press play. #apple
TIL about doxx, which is a MS docx viewer for the terminal that preserves formatting and provides an interactive experience.
Apparently, external evaluation cells in Wolfram 14.3 are in trouble with personal .Renviron
file. If I remove mine, everything goes well, otherwise I get a permission issue with renv. My $HOME/.Renviron
only modifies the path for renv cache:
R_LIBS_USER="~/.local/lib/R/library"
R_PROFILE="~/.config/R/Rprofile"
RENV_CONFIG_USER_PROFILE=TRUE
RENV_PATHS_ROOT="~/.cache/org.R-project.R/R/renv"
Once R virtual environment is created, I can reinstate my personal config file, and everything is okay, but I guess next time if an R expression that requires to install external dependencies I will face a similar issue. Otherwise, external evaluation cell and the whole ExternalEvaluate
stuff looks pretty interesting.
/me is listening to “There is a light that never goes out” by The Smiths