Skip to content

Add line number base setting (0-based or 1-based)#1

Merged
yhao3 merged 2 commits intomainfrom
feat/line-number-base-setting
Mar 20, 2026
Merged

Add line number base setting (0-based or 1-based)#1
yhao3 merged 2 commits intomainfrom
feat/line-number-base-setting

Conversation

@yhao3
Copy link
Copy Markdown
Owner

@yhao3 yhao3 commented Mar 20, 2026

Summary

  • Add a new setting to choose between 0-based (Foam-compatible, default) and 1-based line numbering for line_begin/line_end
  • In 1-based mode, line_end is inclusive (e.g., {line_begin=2 line_end=4} selects lines 2, 3, 4)
  • Update README with documentation for both modes

yhao3 added 2 commits March 20, 2026 14:56
Allow users to choose between 0-based (Foam-compatible, default) and
1-based line numbering for line_begin/line_end. In 1-based mode,
line_end is inclusive (e.g., lines 2-4 means lines 2, 3, and 4).
@yhao3 yhao3 force-pushed the feat/line-number-base-setting branch from f1cebd8 to 1dfe5b1 Compare March 20, 2026 06:56
@yhao3 yhao3 merged commit c74d134 into main Mar 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant