Open
Conversation
Implements multiple profile support allowing quick switching between different GNG configurations. Features: - Save/load named profiles with all settings - Quick shortcuts (:1, :2, :3, :4) for default profiles (roam, work, assistant, guest) - Automatic backup before profile switching - List, view current, and delete profiles - Profile init command to set up defaults Use cases: - Switch between personal/work note-taking systems - Different assistant configurations - Guest mode with safe settings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Instead of hardcoding profile names (roam, work, assistant, guest),
profiles now store their name and shortcut as metadata. This makes
the feature work for any GNG user, not just David-specific configs.
Changes:
- Profiles now store: {name, shortcut, settings}
- Shortcuts mapped dynamically in Redis (GoNoteGo:profile_shortcuts)
- New command: `profile save <name> <number>` to set shortcuts
- `profile list` shows shortcuts: "roam (:1)"
- Numeric shortcuts (`:1`, `:2`) look up mapping dynamically
- Backward compatible with old profile format
Example usage:
:profile save roam 1 # Save as "roam" with shortcut :1
:1 # Load roam profile
:profile list # Shows: roam (:1), work (:2), backup
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements multiple profile support allowing quick switching between different GNG configurations.
Features
Use Cases
Commands
:1,:2,:3,:4- Quick load default profiles:profile save <name>- Save current settings as profile:profile load <name>- Load profile (auto-backups current first):profile list- Show all profiles:profile current- Show active profile:profile delete <name>- Delete a profile:profile init- Initialize default profilesImplementation
profiles.pymodule handles profile storage/retrievalprofile_commands.pywith command definitionsGoNoteGo:profiles:<name>secure_settings.pycan be stored per-profileSee PROFILES.md for full documentation.
🤖 Generated with Claude Code