Skip to content

Conversation

@xozzslip
Copy link

@xozzslip xozzslip commented Aug 8, 2024

I was initially unaware that the default Ctrl+R functionality allowed for command editing, which made the use of TAB for editing within HSTR non-intuitive for me. Consequently, I had to spend some time examining the source code to discover that commands could be edited instead of being executed immediately.

@dvorka dvorka requested a review from Copilot May 9, 2025 06:52
@dvorka dvorka self-requested a review May 9, 2025 06:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the documentation in the README to clarify the behavior of TAB and ENTER keys for command editing and execution in HSTR.

  • Adds explicit instruction for editing commands with TAB and executing them with ENTER
  • Improves user guidance by contrasting with the default Ctrl‑R behavior


HSTR (**H**i**ST**o**R**y) is a command line utility that brings improved `bash`/`zsh` command completion
from the history. It aims to make completion **easier** and more **efficient** than <kbd>Ctrl-r</kbd>.
from the history. It aims to make completion **easier** and more **efficient** than <kbd>Ctrl-r</kbd>. Press <kbd>TAB</kbd> to edit a selected command and <kbd>ENTER</kbd> to execute it directly.
Copy link

Copilot AI May 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The new instruction improves clarity, but consider adjusting the sentence structure for enhanced readability and parallelism between key instructions.

Suggested change
from the history. It aims to make completion **easier** and more **efficient** than <kbd>Ctrl-r</kbd>. Press <kbd>TAB</kbd> to edit a selected command and <kbd>ENTER</kbd> to execute it directly.
from the history. It aims to make completion both **easier** and **more efficient** than <kbd>Ctrl-r</kbd>. Press <kbd>TAB</kbd> to edit a selected command and <kbd>ENTER</kbd> to execute it directly.

Copilot uses AI. Check for mistakes.
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