Skip to content

namespace: fit-to-width attr popup and ":" goto-path#23

Merged
lobis merged 2 commits intomainfrom
namespace-popup-fit-and-goto
Apr 27, 2026
Merged

namespace: fit-to-width attr popup and ":" goto-path#23
lobis merged 2 commits intomainfrom
namespace-popup-fit-and-goto

Conversation

@lobis
Copy link
Copy Markdown
Collaborator

@lobis lobis commented Apr 27, 2026

Summary

  • Fit-to-width Edit Attribute popup. Was hardcoded to 72 columns, truncating long ACL values; now sizes from the longest header/path/status line, capped at 96 cells. Long key = value entries hard-wrap onto continuation lines indented under the value, so the popup never stretches the whole terminal.
  • New : command in the namespace view opens a "Go To Path" prompt. Absolute input replaces the current path; relative input is joined onto current and path.Clean'd (so .., ../.., etc. work).

Test plan

  • go build ./... and go test ./... pass
  • make deploy-both
  • Manually verify on lobis-eos-dev: long sys.vtrace / sys.acl values wrap inside the popup instead of stretching it
  • Manually verify : opens the prompt; absolute path navigates; .. walks up; esc cancels

lobis added 2 commits April 27, 2026 10:45
The Edit Attribute popup was hardcoded to 72 columns, truncating long ACL
values. Compute the popup width from the longest content line, capped at
the terminal width.

Add a ":" command in the namespace view that opens a "Go To Path" prompt.
Input is resolved against the current directory: absolute paths replace
the current path, relative paths are joined and cleaned.
The fit-to-width popup could stretch across the entire terminal when an
attribute value (e.g. a long ACL or vtrace string) was several hundred
characters wide. Cap the popup at 96 cells and hard-wrap long
"key = value" entries onto continuation lines, indented to align under
the value.
@lobis lobis force-pushed the namespace-popup-fit-and-goto branch from 78ca44a to 58b5ab9 Compare April 27, 2026 08:57
@lobis lobis merged commit ae479ba into main Apr 27, 2026
4 checks passed
@lobis lobis deleted the namespace-popup-fit-and-goto branch April 27, 2026 09:03
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