Skip to content

Feat(tui): settings page groups rows under User and Vault by prefix - #22

Merged
adibhanna merged 1 commit into
ZenNotes:zn-0.14.0from
spirit-of-light:feat/settings-sections
Nov 1, 2026
Merged

adibhanna merged 1 commit into
ZenNotes:zn-0.14.0from
spirit-of-light:feat/settings-sections

Conversation

@spirit-of-light

Copy link
Copy Markdown
Contributor

Make the settings menu cleaner by grouping the settings into User and Vault, and subgrouping by setting type.

@adibhanna
adibhanna changed the base branch from main to zn-0.14.0 November 1, 2026 20:03
@adibhanna
adibhanna merged commit bea0218 into ZenNotes:zn-0.14.0 Nov 1, 2026
5 checks passed
adibhanna added a commit that referenced this pull request Nov 1, 2026
…ch row's whole text

#22 lays the settings page out under User and Vault headings and gave the
view a second scroll offset, counted in display lines. Two things went
wrong with it:

- The offset was only capped at the page's last line, so after G in a short
  window, growing the window left the page scrolled down: the User and vim
  headings stayed off the top with blank lines below. It now stops where
  the last line sits at the bottom, so a taller window or a shorter
  filtered list shows the top again.
- A row rebuilt its text from key and value, so anything refresh adds to a
  row's line was lost. A row now shows its filter line less the scope and
  prefix its headings already name; the "(invalid: ...)" note #28 adds to a
  bad view-mode rule shows that way.

The view keeps one scroll field: v.scroll is the display offset now, and
the setting-index scroll that no longer drove anything is gone from render
and from the mouse wheel.

Tests: the layout test keeps a row's whole line; every row a real refresh
lists sits under the group it saves to; moving onto the first Vault row
from above and from below keeps its headings on screen; and a tall window
shows the page from the top. The cap and the heading walk-back each fail
their test when reverted.
adibhanna added a commit that referenced this pull request Nov 1, 2026
@spirit-of-light)

With the review follow-ups on top of the contributor's commits.
@adibhanna

Copy link
Copy Markdown
Contributor

Thanks! It's merged into zn-0.14.0 and ships in zn 0.14.0. Three follow-ups:

  • a5063d6: the grouped page now scrolls back on a taller window and keeps each row's whole text. The new display-line offset could leave the page scrolled past its top, and it cut long rows short.
  • b7bda03: the headings name the file each group saves to ("User · config.toml", "Vault · .zennotes/vault.json"), in the same rule style as the Tasks list.
  • 632d060: the README says which settings save to the vault.

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.

2 participants