{"id":20235245,"url":"https://github.com/ajnasz/nvim-rfind","last_synced_at":"2025-04-10T18:53:20.517Z","repository":{"id":198276114,"uuid":"700482923","full_name":"Ajnasz/nvim-rfind","owner":"Ajnasz","description":"neovim plugin to search within a range","archived":false,"fork":false,"pushed_at":"2023-10-05T05:56:22.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T16:41:15.074Z","etag":null,"topics":["lua-plugin","lua-script","neovim","neovim-plugin","plugin","vim"],"latest_commit_sha":null,"homepage":"","language":"Fennel","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ajnasz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-04T17:19:02.000Z","updated_at":"2024-01-05T12:41:28.000Z","dependencies_parsed_at":"2023-10-05T05:55:44.807Z","dependency_job_id":null,"html_url":"https://github.com/Ajnasz/nvim-rfind","commit_stats":null,"previous_names":["ajnasz/nvim-rfind"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajnasz%2Fnvim-rfind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajnasz%2Fnvim-rfind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajnasz%2Fnvim-rfind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajnasz%2Fnvim-rfind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ajnasz","download_url":"https://codeload.github.com/Ajnasz/nvim-rfind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248275229,"owners_count":21076551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua-plugin","lua-script","neovim","neovim-plugin","plugin","vim"],"created_at":"2024-11-14T08:15:23.391Z","updated_at":"2025-04-10T18:53:20.497Z","avatar_url":"https://github.com/Ajnasz.png","language":"Fennel","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NVIM Rsearch\n\nScript which helps to populate the search command within the selected visual\nrange. See [search-range](https://neovim.io/doc/user/pattern.html#search-range)\n\n\nhttps://github.com/Ajnasz/nvim-rfind/assets/38329/22a19eea-76de-4475-b41f-f6ae91ef0526\n\n\n## Setting a keymap\n\nIt turned out the plugin is not needed to search in visual select, just just the [`\\%V` atom](https://neovim.io/doc/user/pattern.html#%2F%5C%25V) in the search expression\n\n```lua\nvim.keymap.set(\"x\", \"/\", \"\u003cEsc\u003e/\\\\%V\")\n```\n***\n\n```lua\nlocal rfind = require(\"rfind\")\nvim.keymap.set(\"x\", \"/\", rfind.visual)\nvim.keymap.set(\"n\", \"\u003cF7\u003e\", rfind.visual)\n```\n\nThen press `/` in visual mode or `F7` in normal mode to search in the last\nselected section.\n\n## Custom command\n\n```lua\nvim.api.nvim_create_user_command(\n    \"RangeFind\",\n    function(opts)\n        local rfind = require(\"rfind\")\n        return rfind.range(opts.fargs[1], opts.fargs[2])\n    end,\n    {nargs = \"*\"}\n)\n```\n\nThen typing `RangeFind 10 50` will start the search between lines 10 and 50 (inclusive).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajnasz%2Fnvim-rfind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajnasz%2Fnvim-rfind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajnasz%2Fnvim-rfind/lists"}