Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: teach drawbox additional options #1439

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wincent
Copy link

@wincent wincent commented Sep 22, 2023

Follows the pattern established by Ranger's draw_borders setting:

  • true / both: draw an outline box around all panes, plus vertical separators between panes.
  • outline: draw only the outline box.
  • separators: draw only the separators.
  • false / none: draw neither outline box nor separators (default).

So, this is a string option that accepts "true" and "false" strings for backwards compatibility.

Note the behavior of toggling with :set drawbox!: if any borders are being drawn (ie. "both", "outline" or "separators", turns them off; if no borders are being drawn (ie. "none"), turns them all on (ie. "both").

Closes: #1438


Context: I'm not a Go expert and I'm new to this codebase, so this is my first PR, so any and all feedback is welcome.

Follows the pattern established by Ranger's `draw_borders` setting:

- `true` / `both`: draw an outline box around all panes, plus vertical
  separators between panes.
- `outline`: draw only the outline box.
- `separators`: draw only the separators.
- `false` / `none`: draw neither outline box nor separators (default).

So, this is a string option that accepts "true" and "false" strings for
backwards compatibility.

Note the behavior of toggling with `:set drawbox!`: if any borders are
being drawn (ie. "both", "outline" or "separators", turns them off; if
no borders are being drawn (ie. "none"), turns them all on (ie. "both").

Closes: gokcehan#1438
Because the "false" option is only there for backwards compatibility
(drawbox used to be a boolean option).
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.

[Feature request] Equivalent of Range's set draw_borders separators setting
1 participant