fff icon indicating copy to clipboard operation
fff copied to clipboard

feat: allow customization of line/column formatting in neovim config

Open rakibdev opened this issue 6 months ago • 2 comments

Currently, line and column numbers in grep results are hardcoded as :%d:%d (e.g., :356:1). Simpler format such as 356 looks cleaner.

Image

rakibdev avatar Jun 01 '26 11:06 rakibdev

sure let's do this, @gustav-fff prototype a single configuration option using vim format string and default it to the current one

dmtrKovalenko avatar Jun 01 '26 17:06 dmtrKovalenko

[triage-bot] DIRECTED: Done. Shipped in #554 (merged ae6d9e7).

Config: grep.location_format — string.format pattern receiving (line, col). Default :%d:%d (unchanged). Set :%d for line-only.

require('fff').setup({ grep = { location_format = ':%d' } })

Refs: lua/fff/conf.lua:383, lua/fff/grep/grep_renderer.lua:45, README.md:324.

Honk-Honk 🪿

gustav-fff avatar Jun 01 '26 20:06 gustav-fff