Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Improved CoqIDE find/replace functionality #14040

Open
jfehrle opened this issue Mar 31, 2021 · 0 comments
Open

Proposal: Improved CoqIDE find/replace functionality #14040

jfehrle opened this issue Mar 31, 2021 · 0 comments
Assignees
Labels
kind: enhancement Enhancement to an existing user-facing feature, tactic, etc. part: CoqIDE Issues and PRs related to CoqIDE or other IDE features of coq.
Projects

Comments

@jfehrle
Copy link
Member

jfehrle commented Mar 31, 2021

The current find/replace functionality is awkward to use and is, I think, dated.

The main change is to put the search parameters in a hidable subpanel in a more compact format at the top of editor panels. Find and replace would have separate function keys, say CTRL F and CTRL R. Fields for replace appear only when replace is requested.

I would drop detachability of the subpanel: I think it's not that helpful nor easy to use. The detached dialog is not visually tied to the editor window, hence more work for the user to match the dialog to the right editor panel. Currently, it's possible to use the dialog to replace text in an editor window even when it's not visible--likely confusing.

I also want to make the user experience more seamless:

  • Highlighting text in the editor followed by CTRL F/R searches for that text
  • Remembering the last search string
  • Perhaps highlighting matches in the buffer
  • Perhaps showing the number of matches

The Navigation menu has a separate search feature "Next"/"Prev" that appears to search for the word at the point of the cursor. I suggest we drop this duplicate feature.

Below is a rough idea of what this might look like for find and for replace (images adapted from other IDE software). The icons represent, from left to right (and skipping a few): case-sensitive, regex match, previous, next.

Let me know your thoughts.

image

image

The current CoqIDE find/replace panel for comparison:

image

@jfehrle jfehrle added part: CoqIDE Issues and PRs related to CoqIDE or other IDE features of coq. kind: enhancement Enhancement to an existing user-facing feature, tactic, etc. labels Mar 31, 2021
@jfehrle jfehrle self-assigned this Mar 31, 2021
@Alizter Alizter added this to Wish in CoqIDE May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Enhancement to an existing user-facing feature, tactic, etc. part: CoqIDE Issues and PRs related to CoqIDE or other IDE features of coq.
Projects
CoqIDE
  
Wish
Development

No branches or pull requests

1 participant