Skip to content

Add Bookmarks plugin to Web#2174

Open
ZukkyBaig wants to merge 1 commit into
matryer:mainfrom
ZukkyBaig:add-bookmarks-plugin
Open

Add Bookmarks plugin to Web#2174
ZukkyBaig wants to merge 1 commit into
matryer:mainfrom
ZukkyBaig:add-bookmarks-plugin

Conversation

@ZukkyBaig

Copy link
Copy Markdown

Summary

Adds Web/bookmarks.1d.sh, a small bash plugin that lets users store and click through to favourite URLs from the menubar.

  • Open: click any bookmark to launch its URL.
  • Add: Add bookmark… opens an AppleScript prompt for name + URL (auto-prepends https:// if missing).
  • Remove: a submenu of stored bookmarks; click to delete.
  • Edit manually: Edit file… opens the storage file in the default editor.
  • Storage: $HOME/.xbar-bookmarks.txt, one entry per line as Name | URL.

Refresh interval is 1d because the menu contents only change on user action; all action items use refresh=true to re-render after they run.

Compliance

  • Filename matches {name}.{time}.{ext} format.
  • Shebang #!/usr/bin/env bash.
  • Executable (chmod +x).
  • All required metadata present: xbar.title, xbar.version, xbar.author, xbar.author.github, xbar.desc, xbar.image, xbar.dependencies (bash,osascript), xbar.abouturl.

Test plan

  • Smoke-tested locally on macOS.
  • Add / open / remove flows verified through the menubar.

Stores URL bookmarks in $HOME/.xbar-bookmarks.txt. Click an entry
to open it, add via an AppleScript prompt, remove from a submenu.
Pure bash with osascript, no external dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant