fff
fff copied to clipboard
feat: allow customization of line/column formatting in neovim config
Currently, line and column numbers in grep results are hardcoded as :%d:%d (e.g., :356:1).
Simpler format such as 356 looks cleaner.
sure let's do this, @gustav-fff prototype a single configuration option using vim format string and default it to the current one
[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 🪿