Sunbeam memo extension and golang script to add, read and edit memo entries via the command line.
- I needed an easy way to save rarely used commands, useful when working from multiple systems (work and personal computer)
- save links/bookmarks or informaion to read later
- add memo entries from clipboard
- add memo entries from the command line
- The cmd filtered entries will only copy the value in the code block. So it can be copied to the clipboard and pasted into a terminal
- Memo server https://www.usememos.com
- Sunbeam https://sunbeam.pomdtr.me
- Golang https://go.dev
- Install the script using go get:
go get github.com/smetroid/memo-scripts- Add function to your shell configuration file (e.g., ~/.bashrc, ~/.zshrc):
function prev() {
~/projects/memo-scripts/memo-scripts -shellCommand
}- Install sunbeam extension
make sunbeam-install- Configure the sunbeam extension by adding the following to your sunbeam config file:
extensions:
memo:
url: https://your-memo-server.com
token: your-memo-tokenor enter the memo url and token when prompted
- To save a cli command to memo:
prev- Enter additional tags to go with the command (not required) eg:
$ prev
content: ./memo-scripts -help
Enter additional tags (comma-separated):- MacOS/Linux
- You must have Sunbeam terminal integration, alacritty or hyper
- Linux - less resources
- Foot terminal with zsh shell
- Use linux to create a shortcut to toggle terminal
- Start hyper or alacritty via the shortcut/hotkey
- You should see an option to create a memo entry from Clipboard
Note: sunbeam does provide a raycast extension, but was not able to get it working so this is a workaround
- alacritty
- Setup a raycast shortcut to run the raycast-alacritty.sh script
- Implement delete memo functionality
- Binary downloads for the scripts
- Need to remove the #cmd tag from a memo entry if it's created via clipboard
- alacritty json config file
- Go routine to get all memo entries, for faster retrieval of memo items
- add creating a new memo via sunbeam (only terminal and clipboard works)

