Skip to content

Add group DM creation from TUI#59

Merged
m96-chan merged 1 commit intomainfrom
add-group-dm-creation
Feb 24, 2026
Merged

Add group DM creation from TUI#59
m96-chan merged 1 commit intomainfrom
add-group-dm-creation

Conversation

@m96-chan
Copy link
Owner

Summary

  • Add a group DM picker modal for creating multi-person direct message conversations
  • Fuzzy search to find and add/remove users to the group
  • Shows selected users as a tag list with Ctrl+D to remove
  • Ctrl+Enter to confirm and create the group DM conversation
  • Accessible via :group-dm (or :gdm) vim command
  • Uses Slack's OpenConversation API with rate-limit retry

Closes #46

Test plan

  • Run :group-dm or :gdm to open the group DM picker
  • Search for users and press Enter to add them to the group
  • Verify selected users appear as tags above the search input
  • Press Ctrl+D to remove a selected user
  • Press Ctrl+Enter to create the group DM and verify auto-switch
  • Run go test ./internal/ui/chat/ and verify group_dm_picker tests pass

🤖 Generated with Claude Code

@m96-chan m96-chan force-pushed the add-group-dm-creation branch 4 times, most recently from 623b52c to bd7ce8d Compare February 24, 2026 01:51
Implement multi-user selection picker for creating group DMs directly
from the TUI, addressing the inability to start group conversations
without leaving the terminal.

New components:
- GroupDMPicker: modal with fuzzy search, multi-select (Enter to add,
  Ctrl+D to remove, Ctrl+Enter to create), chosen users displayed above
  search input and excluded from results
- OpenConversation Slack API wrapper with rate-limit retry
- :group-dm (alias :gdm) vim command to open the picker
- GroupDMPickerKeybinds configuration with defaults

On confirm, calls conversations.open with selected user IDs, adds the
new channel to the tree, and switches to it.

18 tests covering creation, SetUsers, Reset, fuzzy filtering, add/remove
users, SelectedCount, callbacks, and chosen-user exclusion from results.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@m96-chan m96-chan force-pushed the add-group-dm-creation branch from bd7ce8d to 7ed9d59 Compare February 24, 2026 01:55
@m96-chan m96-chan merged commit 18dc339 into main Feb 24, 2026
4 checks passed
@m96-chan m96-chan deleted the add-group-dm-creation branch February 24, 2026 07:18
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.

Add group DM creation from TUI

1 participant