diff --git a/Examples-(fish).md b/Examples-(fish).md index d672ad0..da6384a 100644 --- a/Examples-(fish).md +++ b/Examples-(fish).md @@ -135,3 +135,17 @@ function fpass -d "Fuzzy-find a Lastpass entry and copy the password" lpass ls | fzf | string replace -r -a '.+\[id: (\d+)\]' '$1' | read -l result; and lpass show -c --password "$result" end ``` + +### Vscode +``` +set -gx vscode_path "$HOME/.config/VScodium" +set -gx vscode_command "codium" + +function vsr -d "List recently opened files with vscode" + codium (\ + rg -o --no-line-number '"path": "/.*[^/]"' "$vscode_path/storage.json" \ + | string replace -a '"path": ' '' \ + | string trim -c '"'\ + | fzf ) +end +```