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

fix: respect case_insensitive #76

Merged
merged 1 commit into from
May 26, 2024
Merged

fix: respect case_insensitive #76

merged 1 commit into from
May 26, 2024

Conversation

smoka7
Copy link
Owner

@smoka7 smoka7 commented May 23, 2024

closes #74

@smoka7 smoka7 merged commit 036462a into master May 26, 2024
4 checks passed
medvied added a commit to medvied/hop.nvim that referenced this pull request Feb 22, 2025
smoka7#76 changed the behavior of
case_insensitive in the following way: now if case_insensitive is set it
only works if ``smartcase`` is set and ``starts_with_uppercase(pat)`` is
true.

This patch makes ``case_insensitive`` work even if ``smartcase`` is not
set (``smartcase`` is not set by default:
https://neovim.io/doc/user/options.html#'smartcase'). Otherwise
``case_insensitive = true`` doesn't work in neovim with default settings
and requires setting ``smartcase = true`` just to make
``case_insensitive = true`` work.
medvied added a commit to medvied/hop.nvim that referenced this pull request Feb 22, 2025
smoka7#76 changed the behavior of
case_insensitive in the following way: now if case_insensitive is set it
only works if ``smartcase`` is set and ``starts_with_uppercase(pat)`` is
true.

This patch makes ``case_insensitive`` work even if ``smartcase`` is not
set (``smartcase`` [is not set by default](
https://neovim.io/doc/user/options.html#'smartcase')).
Otherwise ``case_insensitive = true`` doesn't work in neovim with
default settings and requires setting ``smartcase = true`` just to make
``case_insensitive = true`` work.
medvied added a commit to medvied/hop.nvim that referenced this pull request Feb 22, 2025
smoka7#76 changed the behavior of
case_insensitive in the following way: now if case_insensitive is set it
only works if ``smartcase`` is set and ``starts_with_uppercase(pat)`` is
true.

This patch makes ``case_insensitive`` work even if ``smartcase`` is not
set (``smartcase`` [is not set by default](
https://neovim.io/doc/user/options.html#'smartcase')).
Otherwise ``case_insensitive = true`` doesn't work in neovim with
default settings and requires setting ``smartcase = true`` just to make
``case_insensitive = true`` work.
smoka7 pushed a commit that referenced this pull request Feb 26, 2025
#76 changed the behavior of
case_insensitive in the following way: now if case_insensitive is set it
only works if ``smartcase`` is set and ``starts_with_uppercase(pat)`` is
true.

This patch makes ``case_insensitive`` work even if ``smartcase`` is not
set (``smartcase`` [is not set by default](
https://neovim.io/doc/user/options.html#'smartcase')).
Otherwise ``case_insensitive = true`` doesn't work in neovim with
default settings and requires setting ``smartcase = true`` just to make
``case_insensitive = true`` work.
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.

case_insensitive Isn't working
1 participant