dnkl/foot
41
2.0k
Fork
You've already forked foot
243

Add clear-with-scrollback action #2394

Open
dimitry_ishenko wants to merge 1 commit from dimitry_ishenko/foot:add-clear-with-scrollback-action into master
pull from: dimitry_ishenko/foot:add-clear-with-scrollback-action
merge into: dnkl:master
dnkl:master
dnkl:osc-5522
dnkl:sixel-heap-buffer-overflow
dnkl:releases/1.27
dnkl:releases/1.26
dnkl:releases/1.25
dnkl:releases/1.24
dnkl:multi-cursor
dnkl:releases/1.23
dnkl:pixman-16f-2
dnkl:releases/1.22
dnkl:releases/1.21
dnkl:releases/1.20
dnkl:releases/1.19
dnkl:releases/1.18
dnkl:releases/1.17
dnkl:releases/1.16
dnkl:releases/1.15
dnkl:releases/1.14
dnkl:releases/1.13
dnkl:releases/1.12
dnkl:releases/1.11
dnkl:releases/1.10
dnkl:releases/1.9
dnkl:releases/1.8
dnkl:releases/1.7
dnkl:releases/1.6
dnkl:releases/1.5
dnkl:releases/1.4
dnkl:releases/1.3
dnkl:releases/1.2
dnkl:releases/1.1
dnkl:releases/1.0
First-time contributor
Copy link

This is a compromise for people requesting that the clear screen action (Ctrl+L) does not destroy screen contents. Eg #933 and several others over the years.

This is an alternative to PR #2135 which was rejected. It keeps the existing behavior unchanged, and instead adds an action that people can use to bind Ctrl+L, for example:

[key-bindings]
clear-with-scrollback = Control+l

Before destroying the screen contents, this action scrolls it off the screen (into the scrollback buffer) by feeding the linefeed chars into the terminal.

This is a compromise for people requesting that the clear screen action (Ctrl+L) does not destroy screen contents. Eg #933 and several others over the years. This is an alternative to PR #2135 which was rejected. It keeps the existing behavior unchanged, and instead adds an action that people can use to bind Ctrl+L, for example: ```ini [key-bindings] clear-with-scrollback = Control+l ``` Before destroying the screen contents, this action scrolls it off the screen (into the scrollback buffer) by feeding the linefeed chars into the terminal.
Add clear-with-scrollback action
Some checks reported errors
ci/woodpecker/pr/woodpecker Pipeline is pending approval
builds.sr.ht/freebsd-x64 Job failed
ab7d66f8eb
Some checks reported errors
ci/woodpecker/pr/woodpecker Pipeline is pending approval
builds.sr.ht/freebsd-x64 Job failed
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u add-clear-with-scrollback-action:dimitry_ishenko-add-clear-with-scrollback-action
git switch dimitry_ishenko-add-clear-with-scrollback-action

Merge

Merge the changes and update on Forgejo.
git switch master
git merge --no-ff dimitry_ishenko-add-clear-with-scrollback-action
git switch dimitry_ishenko-add-clear-with-scrollback-action
git rebase master
git switch master
git merge --ff-only dimitry_ishenko-add-clear-with-scrollback-action
git switch dimitry_ishenko-add-clear-with-scrollback-action
git rebase master
git switch master
git merge --no-ff dimitry_ishenko-add-clear-with-scrollback-action
git switch master
git merge --squash dimitry_ishenko-add-clear-with-scrollback-action
git switch master
git merge --ff-only dimitry_ishenko-add-clear-with-scrollback-action
git switch master
git merge dimitry_ishenko-add-clear-with-scrollback-action
git push origin master
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dnkl/foot!2394
Reference in a new issue
dnkl/foot
No description provided.
Delete branch "dimitry_ishenko/foot:add-clear-with-scrollback-action"

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?