Skip to content

Conversation

phanen
Copy link
Contributor

@phanen phanen commented Jun 25, 2025

A feature like readline's history-substring-search-{forward,backward}.

// a.t != actNextHistorySearch {
// t.history.lastSearch = ""
// }
if !processExecution(a.t) {
Copy link
Contributor Author

@phanen phanen Jun 26, 2025

Choose a reason for hiding this comment

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

I'm not sure when/how to reset current search...

  • Readline reset current search and reset history pointer when cursor moved or cmdline changed.
  • Vim's :h c_<up> reset current search but don't reset history pointer. (And it's actually search prefix like rather then substr).

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