Skip to content

SellswordSoftware/justpeek

Repository files navigation

JustPeek

Contextual quick-reference utility for desktop apps.

JustPeek runs in the system tray, listens for a global hotkey, detects the active window, and shows a floating panel with relevant reference data. Keyboard shortcuts are a first-class use case, but the same YAML format also works for command syntax, people references, notes, and other compact lookup data.

Features

  • Tray-first desktop app built with Tauri
  • Global hotkey to toggle the reference panel
  • Active-window matching by process name and optional title pattern
  • YAML-based grouped reference files
  • Fuzzy filtering across keys, label, value, and notes
  • Dedicated floating panel window with drag and resize support
  • Filesystem watching for live reference reloads
  • Settings window for hotkey, theme, and references directory

Run

Install dependencies and start the app:

npm install
npm run dev

Build a desktop bundle:

npm run build

First-Time Setup

Seed the default references directory with example files:

./setup.sh

That copies the sample YAML files from shortcuts-example/ into:

~/.config/justpeek/references

If XDG_CONFIG_HOME is set, JustPeek uses:

$XDG_CONFIG_HOME/justpeek/references

Configuration

JustPeek stores config at:

~/.config/justpeek/config.yaml

Example:

hotkey: CommandOrControl+Alt+Slash
theme: dark
references_dir: null

Notes:

  • references_dir: null uses the default JustPeek references directory.
  • On Wayland, the desktop portal may prompt you to approve the global shortcut the first time the app starts.
  • Hotkey changes made in settings currently apply after restarting the app.

Reference File Format

Example:

name: VS Code
process:
  - code
  - Code
references:
  - group: Navigation
    items:
      - keys: Ctrl+P
        label: Quick Open
        notes: Opens a file by name
      - keys: Ctrl+Shift+P
        label: Command Palette
  - group: Git
    items:
      - label: Revert a commit
        value: git revert <commit>
        notes: Safe for shared history

Supported fields:

  • name: display name for the matched reference set
  • process: list of process names that should match
  • title_pattern: optional regex for window-title matching
  • references: list of groups
  • group: section title
  • items: list of entries inside the group
  • keys: optional key chord rendered with <kbd>
  • label: primary text
  • value: optional secondary value such as a command
  • notes: optional descriptive text

Example Files

The repo includes sample reference packs in:

  • shortcuts-example/vscode.yaml
  • shortcuts-example/git.yaml
  • shortcuts-example/people.yaml

Current Platform Notes

  • Linux X11 active-window detection is implemented.
  • Windows active-window detection is implemented.
  • Wayland Sway detection is still stubbed.
  • Wayland global hotkeys are handled through the desktop portal.

License

MIT

About

Quick reference / shortcuts for the apps you are using

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors