mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #204] [MERGED] Add support for fixed size container splits. #254
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mum4k/termdash/pull/204
Author: @nijynot
Created: 5/5/2019
Status: ✅ Merged
Merged: 5/12/2019
Merged by: @mum4k
Base:
devel← Head:master📝 Commits (6)
7c5232bAdd support for fixed heights in SplitHorizontal()4aa60feRefactor fixed container feature toSplitFixed()which takes one arg70a5255RefactorSplitFixed()to use SplitCellsb6986c9Add test and refactorvalidateOptions()c80b59dFix pointer and SplitFixed test957330cTweak comments and use Default const in validation📊 Changes
3 files changed (+153 additions, -7 deletions)
View changed files
📝
container/container.go(+7 -0)📝
container/container_test.go(+91 -0)📝
container/options.go(+55 -7)📄 Description
This PR adds support for setting fixed heights to containers that split horizontally.
Examples: Calling
will set the top container to be
3in line height and15on the bottom container.To make the containers fill the rest of the space, you set the args to
-1, example:which will make top container
3and make the bottom container take up rest of the space that is available.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.