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

make isearch-next|prev-highlight mimic isearch movement exactly #1603

Conversation

SequentialDesign
Copy link
Contributor

with this modification, isearch-next|prev-highlight will mimic isearch movement exactly, which i feel is more intuitive for those who use isearch a lot

font-size: 16px;
...
font-size: 22px;
...
font-size: 16px:
...
font-size: 20px;
...
| (<-- point here)

you search for "font-size: ", and now it's highlighted. maybe you want to change the 22px font size. with the current code, if you go back with Shift+F3 , then, when you press F3, you will jump forward to the next instance of font-size, which is not how isearch works.

but, with this patch, if you press F3, you will go to end of the highlight instead of the next instance, which i find more logical for isearch and better in general because now you can kill-line and put in the new font-size value

with this modification, isearch-next|prev-highlight will mimic isearch movement exactly, which i feel is more intuitive for those who use isearch a lot

font-size: 16px;
...
font-size: 22px;
...
font-size: 16px:
...
font-size: 20px;
...
| (<-- point here)

you search for "font-size: ", and now it's highlighted.  maybe you want to change the 22px font size.  with the current code, if you go back with `Shift+F3` , then, when you press `F3`, you will jump forward to the next instance of font-size, which is not how isearch works.  

but, with this patch, if you press `F3`, you will go to end of the highlight instead of the next instance, which i find more logical for isearch and better in general because now you can `kill-line` and put in the new font-size value
@cxxxr cxxxr merged commit f93e750 into lem-project:main Nov 13, 2024
2 checks passed
@cxxxr
Copy link
Member

cxxxr commented Nov 13, 2024

Thank you

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.

2 participants