collab/focustab
extension/plugin for fuzzy finding browser tabs
git clone https://git.julia.blue/collab/focustab
7e4fb0e
main
files
| extension/ | |
| src/ | |
| .envrc | 10 B |
| .gitignore | 51 B |
| Cargo.lock | 22.4 KiB |
| Cargo.toml | 439 B |
| README.md | 3.6 KiB |
| dev.sh | 1.4 KiB |
| flake.lock | 1.5 KiB |
| flake.nix | 526 B |
| native_manifest.json | 172 B |
| rustfmt.toml | 65 B |
| switch.sh | 350 B |
Focustab
A browser extension with a native daemon to enable fuzzy searching and focusing of your (way too many) open tabs.
links:
- native messaging
- native manifests
- extension manifest
- installing extensions (local development)
- similar project, wox+arc+macos
- another similar project, alfred+chrome+macos, and firefox version
components:
- extension(s)?
- for now: just firefox
- eventually? chrome
- native extension
- just one, for now just: linux binary
- eventually? macOS?
- "frontend" integrations:
- terminal CLI guy with fzf/skim
- rofi/rofi-wayland
- gnome search thing
- spotlight (flashlight? deprecated 😢) on macOS? see this list of macos launchers, maybe pick an open source one like sol
- ^ means, window switcher support for:
- no special handling (i.e. just call browser focus) — sufficient for X (and macOS?)
- note: on
i3, requiresfocus-on-activationto be set appropriately
- note: on
- wayland via
wlr-foreign-toplevel-managementprotocol (see here)- TODO(julia): what do other switchers like anyrun, tofi, wofi, bemenu, fuzzel... use?
- for GNOME: special GNOME extension via
window-calls-extended - macOS windowserver? does it just work automatically like in X?
- no special handling (i.e. just call browser focus) — sufficient for X (and macOS?)
TODOs
-
multiple instances of the browser extension; have the "client" ask all of them for info? (i.e. chrome, firefox; multiple firefox profiles, etc.)
-
support story for gnome...
window-calls-extended- plugin for gnome's search functionality? like:
just-another-search-barsearch-light- this is instead of rofi...
-
current plan for favicon support:
- have the daemon keep a content-addressed store for favicons
- native extension should:
- for b64 blobs:
- figure out file ext from mime-type
- hash content and store in XDG_CACHE_DIR (CAS)
- for URLs: TBD
- should just fetch; may need to keep a URL->hash mapping w/TTLs?
- for b64 blobs:
- clients should handle rendering, different filetypes, resizing, etc.
- we will provide the abs path to the icon's image file
-
for tab -> window mapping:
- query from extension on demand
- rationale is that
FocusWindowinfo is rather big; would be noisy to keep up to date in the native extension
- rationale is that
- maybe try using something like wlrctl to be more general
- query from extension on demand
-
try different message passing that'd work on macos like
- http
- varlink
- raw unix socket with some rust serialization framework