Skip to content

Conversation

hamidi-dev
Copy link
Contributor

@hamidi-dev hamidi-dev commented Sep 8, 2025

This PR introduces the ability to copy commit patches (single or range) directly to the system clipboard from Telescope picker.

Changes

Added keymap (configurable) to copy commit patch.

Supports:

Single commit patches (repo-wide or file-scoped).

Multi-selection for commit ranges (A..B), with rename-follow support.

Integrated into all relevant Telescope pickers (search_log_content, search_log_content_file, diff_commit_file, diff_commit_line).

New helper: git_utils.order_commits_chronologically() to ensure proper range order.

Updated README with mapping documentation.

Why:
Makes it easy to grab changes without leaving Neovim. Perfect for quickly pasting into tickets, sharing with teammates, or throwing at an AI assistant for instant feedback/review/Q&A.

@hamidi-dev hamidi-dev marked this pull request as draft September 9, 2025 18:05
@hamidi-dev hamidi-dev changed the title Add <C-p> action to copy commit patch (Telescope/FZF/Snacks) Add <C-p> action to copy commit patch (Telescope only) Sep 24, 2025
@hamidi-dev hamidi-dev marked this pull request as ready for review September 24, 2025 17:49
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