nvim-mini / nvim-mini/mini.nvim
Support providing a line number when opening a file
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 9.5k
- Forks
- 310
- Avg merge
- 4h 16m
- Merged PRs (30d)
- 1
Description
Contributing guidelines
- I have read CONTRIBUTING.md
- I have read CODE_OF_CONDUCT.md
Module(s)
mini.extra
Description
Maybe this is something that cold be added to mini.extra.
Sometimes I just copy/paste file paths from a linter/compiler output and that fails because what I copied has the format <file_path>:<line_number> it would be super convenient to have neovim just open the file and just to that line number.
There are some plugins for this already but maybe it's something Mini could incorporate to avoid the need for an extra plugin.
Some examples I've found:
- https://github.com/bogado/file-line
- https://github.com/lervag/file-line
- https://github.com/wsdjeg/vim-fetch
- https://github.com/dsully/nvim/blob/main/plugin/fileline.lua
- https://github.com/lewis6991/fileline.nvim
The last one is the one I'll be using for now.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the mini.extra module and reviewing the linked file-line plugins for how they parse <file_path>:<line_number> input. Confirm how mini.extra currently opens copied paths, then define completion as opening the file and positioning the cursor at the supplied line while preserving normal paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100