# Focustab A browser extension with a native daemon to enable fuzzy searching and focusing of your (way too many) open tabs. links: - [native messaging](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging) - [native manifests](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_manifests) - [extension manifest](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json) - [installing extensions](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension#installing) (local development) - [similar project](https://github.com/Wox-launcher/Wox.Plugin.Arc), wox+arc+macos - [another similar project](https://github.com/epilande/alfred-browser-tabs), alfred+chrome+macos, and [firefox version](https://github.com/deanishe/alfred-firefox) 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](https://github.com/phmullins/awesome-macos?tab=readme-ov-file#application-launchers) 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`, requires [`focus-on-activation`](https://i3wm.org/docs/userguide.html#focus_on_window_activation) to be set appropriately + wayland via [`wlr-foreign-toplevel-management`](https://wayland.app/protocols/wlr-foreign-toplevel-management-unstable-v1) protocol (see [here](https://github.com/lbonn/rofi/blob/5df2d3a13725a3c7ee3fdb9d2dcd6bdca19115fd/source/modes/wayland-window.c)) * TODO(julia): what do other switchers like anyrun, tofi, wofi, bemenu, fuzzel... use? + for GNOME: special GNOME extension via [`window-calls-extended`](https://github.com/hseliger/window-calls-extended) + macOS windowserver? does it just work automatically like in X? ## 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`](https://github.com/hseliger/window-calls-extended) + plugin for gnome's search functionality? like: * [`just-another-search-bar`](https://github.com/xelad0m/just-another-search-bar) * [`search-light`](https://github.com/icedman/search-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? + 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 `FocusWindow` info is rather big; would be noisy to keep up to date in the native extension + maybe try using something like [wlrctl](https://git.sr.ht/~brocellous/wlrctl) to be more general - try different message passing that'd work on macos like + http + varlink + raw unix socket with some rust serialization framework