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

feature: the ignorecase option for isearch. #1610

Closed
sakurawald opened this issue Nov 19, 2024 · 5 comments
Closed

feature: the ignorecase option for isearch. #1610

sakurawald opened this issue Nov 19, 2024 · 5 comments

Comments

@sakurawald
Copy link
Contributor

sakurawald commented Nov 19, 2024

In 17639f2 version, start isearch via the key /, and type in the letters.

The search process is case-sensitive.

A typical searching options for vim users may be:

set incsearch
set ignorecase
set smartcase
set hisearch
@cxxxr
Copy link
Member

cxxxr commented Nov 19, 2024

In 17639f2 version

Is the link correct?

@sakurawald
Copy link
Contributor Author

In 17639f2 version

Is the link correct?

Yes, i git clone the lem repository into my ~/common-lisp/lem, and git pull the latest commit, make sdl2 to get the binary file.

The isearch function still be case-sensitive. It woule be fine to have an option to set the ignore case feature.

@cxxxr
Copy link
Member

cxxxr commented Nov 19, 2024

I implemented ignorecase.
I am not sure if the result is what I expect as I am not familiar with vim.
Could you please try this PR?

#1613

@sakurawald
Copy link
Contributor Author

I implemented ignorecase. I am not sure if the result is what I expect as I am not familiar with vim. Could you please try this PR?

#1613

It looks good.
The spec for ignorecase can be read in https://neovim.io/doc/user/usr_27.html#:~:text=Ignoring%20case,-By%20default%2C%20Vim's&text=If%20you%20want%20to%20ignore,their%20value%20doesn't%20matter.

@sakurawald
Copy link
Contributor Author

After set the config

(setf (lem-vi-mode:option-value "ignorecase") t)

It's smooth to search a upper-case string without pressing the shift key.

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

No branches or pull requests

2 participants