Skip to content

Bug: Characters seem to be ignored in fixed strings mode. #57

@tgharib

Description

@tgharib

Make sure you have done the following

  • I have updated to the latest version of the plugin.
  • I have read the README.

Bug Description

Characters such as $ seem to ignored in fixed strings mode.

Relevant Screenshot

No response

To Reproduce

I have some sample input text:

Recall that we defined the sum of two elements of 𝐅𝑛 to be the element of 𝐅𝑛 obtained by adding corresponding coordinates; see 1.13. As we will now see, addition has a simple geometric interpretation in the special case of 𝐑2.

I enter the following search and replace (with fixed strings enabled):

Search: 𝐅𝑛
Replace: $F^n$

And I get the following output:

Recall that we defined the sum of two elements of ^n$ to be the element of ^n$ obtained by adding corresponding coordinates; see 1.13. As we will now see, addition has a simple geometric interpretation in the special case of 𝐑2.

Even though fixed strings are enabled, the characters $F seem to be dropped.

I tried setting autoBraceSimpleCaptureGroups=false but that seemed to have no impact.

Sample Text

Recall that we defined the sum of two elements of 𝐅𝑛 to be the element of 𝐅𝑛 obtained by adding corresponding coordinates; see 1.13. As we will now see, addition has a simple geometric interpretation in the special case of 𝐑2.

neovim version

NVIM v0.11.5
Build type: RelWithDebInfo
LuaJIT 2.1.1765228720
Run "nvim -V1 -v" for more info

ripgrep version

ripgrep 15.1.0

features:+pcre2
simd(compile):+SSE2,+SSSE3,+AVX2
simd(runtime):+SSE2,+SSSE3,+AVX2

PCRE2 10.45 is available (JIT is available)

Minimal reproducible config

local spec = {
	{
		"chrisgrieser/nvim-rip-substitute",
		opts = {}, -- insert config here
		keys = {
      { "gs", function() require("rip-substitute").sub() end, mode = { "n", "x" } },
		},
	},
}
--------------------------------------------------------------------------------
vim.env.LAZY_STDPATH = "./nvim-repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro { spec = spec }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions