14 Commits

Author SHA1 Message Date
832c61d707 Add MIT license 2026-02-17 20:39:40 +01:00
487f2caf39 Add pre-commit with ruff, ruff-format, and pyright 2026-02-17 20:33:58 +01:00
d621ebb81e Fix bugs, harden config validation, and clean up codebase
- Guard against empty ROFI_INFO before calling decode_info to prevent IndexError
- Use .get() chain for password field access to prevent KeyError
- Raise ValueError for unknown field names instead of silently returning empty string
- Validate config keybinding values against allowed fields (password, username, totp)
- Warn to stderr when config file exists but has invalid structure
- Set history file permissions to 0o600
- Extract shared prepare_entries() helper to deduplicate selector logic
- Add --version flag
- Delete legacy src/bitwarden.py and src/main.py
- Update CLAUDE.md to reflect pyyaml dependency
2026-02-17 20:27:15 +01:00
5eb53d8b06 Move rofi keybindings from CLI flags to config file
Replace --custom-field, --kb-accept, and --kb-custom CLI flags with a
YAML config file at $XDG_CONFIG_HOME/bw-menu/config.yaml. The config
maps rofi key names to vault fields (e.g. Return: password), making
keybinding configuration simpler and more intuitive.
2026-02-17 20:16:12 +01:00
55861a65b1 Update README for rbw-based rewrite 2026-02-17 19:37:18 +01:00
a316e1b233 Rewrite bw-menu using rbw CLI backend and proper Python packaging
Replace bw-serve/Ansible-based implementation with a clean rewrite:
- rbw CLI wrapper for listing entries and fetching credentials
- Rofi script-mode and fzf selectors with history-first sorting
- JSON-backed frecency history at ~/.cache/bw-menu/
- Clipboard support via wl-copy/xclip auto-detection
- uv + hatchling packaging with bw-menu entry point
2026-02-17 19:32:27 +01:00
8cf7c9e24c update README 2024-05-23 13:43:19 +02:00
50edc11fb7 update README 2024-04-22 11:37:02 +02:00
1070450d8a update README 2024-04-21 18:52:08 +02:00
dbeec547cc update README 2024-04-21 18:51:47 +02:00
b93aee3259 update README 2024-04-21 18:50:54 +02:00
fb3979e758 add bitwarden lib here for now 2024-04-21 18:49:19 +02:00
153a98620c converted from rust to python 2024-04-21 18:46:16 +02:00
7a949bde0e add README 2024-04-21 15:46:47 +02:00