-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(block): allow templates for filler text
This change allows the user to specify a template for filler so that different behavior can be configured when the block is handling an overflow. An example configuration might be: ```yaml - type: prompt alignment: right filler: "{{ if .Overflow }} {{ else }}<#3d59a1,transparent>━</>{{ end }}" overflow: break ``` This would draw filler text ("-") when there is no overflow and empty space when there is an overflow.
- Loading branch information
1 parent
dfcccaa
commit 3ff2340
Showing
3 changed files
with
143 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters