flash.nvim icon indicating copy to clipboard operation
flash.nvim copied to clipboard

docs(readme): update mappings examples

Open carloscalla opened this issue 8 months ago • 8 comments

Description

The example mappings, which most likely are the ones used by default for the majority of users, map the s in these modes: { 'n', 'x', 'o' }. I came to realize the 'o' operation pending mode is not useful with the same configuration as the 'n' and 'x' modes. Actions like delete, change, yank, etc are not very useful when multi window is on for flash, so I am updating the mapping for 'o' mode using multi_window = false.

    keys = {
      { "s", mode = { "n", "x" }, function() require("flash").jump() end, desc = "Flash" },
      { "s", mode = { "o" }, function() require("flash").jump { search = { multi_window = false } } end, desc = "Flash" },
      { "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
      { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
      { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
      { "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
    },

Related Issue(s)

Screenshots

carloscalla avatar May 02 '25 20:05 carloscalla

Preventing stale 🙂

carloscalla avatar May 26 '25 13:05 carloscalla

This PR is stale because it has been open 30 days with no activity.

github-actions[bot] avatar Jun 26 '25 02:06 github-actions[bot]

No stale

carloscalla avatar Jun 26 '25 06:06 carloscalla

No stale

carloscalla avatar Jul 19 '25 22:07 carloscalla

This PR is stale because it has been open 30 days with no activity.

github-actions[bot] avatar Aug 19 '25 02:08 github-actions[bot]

🤔

carloscalla avatar Aug 19 '25 11:08 carloscalla

This PR is stale because it has been open 30 days with no activity.

github-actions[bot] avatar Sep 20 '25 02:09 github-actions[bot]

🤔

carloscalla avatar Sep 20 '25 08:09 carloscalla