| Crates.io | codep |
| lib.rs | codep |
| version | 0.6.8 |
| created_at | 2025-05-23 16:04:52.913562+00 |
| updated_at | 2025-05-23 18:13:21.209808+00 |
| description | CLI for getting a list of recently used VSCode files and workspaces. |
| homepage | |
| repository | https://github.com/Relacibo/code-pick-rs |
| max_upload_size | |
| id | 1686466 |
| size | 41,080 |
Input for e.g. rofi for selecting an entry from a list of recently opened folders/files or a list of workspaces to be opened in vscode. The recent folders/files are extracted from ~/.config/Code/User/globalStorage/storage.json and the workspaces from ~/.config/Code/User/workspaceStorage. Please feel free to write an issue, if something doesn't output as expected...
cargo install codep
or
cargo install --path .
I use it as a bind in my hyperland.conf with rofi:
bind = $mainMod SHIFT, C, exec, ~/.cargo/bin/codep -a recent \
| rofi -dmenu \
| xargs -r -I {} code --new-window "{}"
bindr = $mainMod&CTRL&SHIFT, C, exec, \
~/.cargo/bin/codep -ap workspaces -D -M 365 \
| rofi -dmenu -markup-rows -display-columns 2 \
| awk -F '\t' '{print $1}' \
| xargs -r -I {} code --folder-uri "{}"
codep --help for more info!
CODEP_CONFIG_ROOT (default: ~/.config/Code) - Alternative config root