nvim-mini / nvim-mini/mini.nvim

Support providing a line number when opening a file

Open
#1,880 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request mini.misc
Dominant language
Lua
Stars
9.5k
Forks
310
Avg merge
4h 16m
Merged PRs (30d)
1

Description

Contributing guidelines
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:

The last one is the one I'll be using for now.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.