-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add -preview-width option to limit char width of preview (#88)
- Loading branch information
Showing
3 changed files
with
49 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# default width is 100 | ||
exec randstr 100 | ||
stdin stdout | ||
exec cliphist store | ||
exec cliphist list | ||
! stdout … | ||
|
||
exec randstr 101 | ||
stdin stdout | ||
exec cliphist store | ||
exec cliphist list | ||
stdout … | ||
|
||
exec randstr 1000 | ||
stdin stdout | ||
exec cliphist store | ||
exec cliphist -preview-width 1000 list | ||
! stdout … | ||
|
||
exec randstr 1001 | ||
stdin stdout | ||
exec cliphist store | ||
exec cliphist -preview-width 1000 list | ||
stdout -count=1 … | ||
|
||
! exec cliphist -preview-width -10 list | ||
|
||
exec cliphist -preview-width 1 list | ||
stdout -count=4 '.\t.…' | ||
|
||
exec cliphist -preview-width 0 list | ||
stdout -count=4 '.\t…' |