Skip to content

Conversation

@K-NRS
Copy link
Member

@K-NRS K-NRS commented Sep 13, 2025

Summary

This PR adds visual session indicators to help users know when they're inside an NDS session. The implementation is completely automatic and non-invasive.

Features Added

  • Terminal Title: Shows NDS: session-name in terminal window title
  • Prompt Indicators: Configurable visual prefix for shell prompts
  • Multiple Styles: Support for different indicator styles via NDS_PROMPT_STYLE
  • Shell Agnostic: Works with bash, zsh, and other common shells
  • Zero Configuration: Works out of the box, no user config modification required

Indicator Styles

Users can control the appearance with the NDS_PROMPT_STYLE environment variable:

  • subtle (default): ⬢ symbol prefix
  • full: [nds:session-name] prefix
  • minimal: [nds] prefix
  • none: completely disabled

Implementation Details

  • Automatic setup during session spawn and attach
  • Shell-specific initialization scripts for optimal compatibility
  • Environment variables set for user customization
  • No modification of user's shell configuration files

Testing

  • ✅ All existing tests pass
  • ✅ Code compiles without warnings
  • ✅ Rustfmt formatting enforced
  • ✅ Backward compatibility maintained

Test Plan

  • Test with different shells (bash, zsh, fish)
  • Verify all indicator styles work correctly
  • Confirm terminal title updates
  • Test session creation and attachment
  • Verify no impact on existing functionality

🤖 Generated with Claude Code

K-NRS and others added 2 commits September 13, 2025 14:56
Add visual indicators to show when you're inside an NDS session:

- Terminal title shows "NDS: session-name"
- Configurable prompt prefix with NDS_PROMPT_STYLE:
  - subtle (default): ⬢ symbol prefix
  - full: [nds:session-name] prefix
  - minimal: [nds] prefix
  - none: disabled
- Works with bash, zsh, and other shells
- Non-invasive: doesn't modify user config files
- Automatic setup on session creation and attach

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Add interactive demo preview showing key NDS features:
- Session indicator examples (⬢ and [nds:name] styles)
- Session management output
- TUI interface preview
- Placeholder for future asciinema recording

Improves user onboarding by showing actual usage examples
before installation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@K-NRS K-NRS closed this Sep 13, 2025
@K-NRS K-NRS deleted the feature/session-indicator branch September 13, 2025 12:19
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.

2 participants