Skip to content

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 Ranger's set draw_borders separators setting

1 participant