-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eshell clear leaves a line at top #5419
Comments
Make it so inputting the clear command will _not_ result in two new lines. Fixes syl20bnr#5419
Modify the default behavior for eshell's clear functionality. - Make eshell `clear RET` _similar_ to `C-l` - `clear RET` is eshell/clear - `C-l` is eshell-clear-stroke - Prevent `C-l` clearing cycle - Prevent `clear RET` inserting a page of white-space - Prevent duplicate insert lines from `clear RET` - Make eshell-clear-keystroke that is dependent on eshell/clear - Load both after eshell is initialized to prevent them from being overwritten This fixes syl20bnr#5424, fixes syl20bnr#5419
Modify the default behavior for eshell's clear functionality. - Make eshell `clear RET` _similar_ to `C-l` - `clear RET` is eshell/clear - `C-l` is eshell-clear-stroke - Prevent `C-l` clearing cycle - Prevent `clear RET` inserting a page of white-space - Prevent duplicate insert lines from `clear RET` - Make eshell-clear-keystroke that is dependent on eshell/clear - Load both after eshell is initialized to prevent them from being overwritten This fixes #5424, fixes #5419 Modify eshell clear statements load position Change the clear statements load position from after loading eshell to after enabling eshell. This produces the same result, but is cleaner. Note, they _cannot_ be defined before eshell loads, otherwise they are overwritten. Refactor eshell-clear-keystroke to spacemacs/eshell-clear-keystroke - Reduce steps needed to access clear command with define key - Rename function to match naming conventions - The function shouldn't be accessed from the shell prompt - So not eshell/clear-keystroke - The function isn't from eshell.el - So not eshell-clear-keystroke - However, eshell/clear should be since it is overwriting a command
should be fixed in develop |
Modify the default behavior for eshell's clear functionality. - Make eshell `clear RET` _similar_ to `C-l` - `clear RET` is eshell/clear - `C-l` is eshell-clear-stroke - Prevent `C-l` clearing cycle - Prevent `clear RET` inserting a page of white-space - Prevent duplicate insert lines from `clear RET` - Make eshell-clear-keystroke that is dependent on eshell/clear - Load both after eshell is initialized to prevent them from being overwritten This fixes syl20bnr#5424, fixes syl20bnr#5419 Modify eshell clear statements load position Change the clear statements load position from after loading eshell to after enabling eshell. This produces the same result, but is cleaner. Note, they _cannot_ be defined before eshell loads, otherwise they are overwritten. Refactor eshell-clear-keystroke to spacemacs/eshell-clear-keystroke - Reduce steps needed to access clear command with define key - Rename function to match naming conventions - The function shouldn't be accessed from the shell prompt - So not eshell/clear-keystroke - The function isn't from eshell.el - So not eshell-clear-keystroke - However, eshell/clear should be since it is overwriting a command
Modify the default behavior for eshell's clear functionality. - Make eshell `clear RET` _similar_ to `C-l` - `clear RET` is eshell/clear - `C-l` is eshell-clear-stroke - Prevent `C-l` clearing cycle - Prevent `clear RET` inserting a page of white-space - Prevent duplicate insert lines from `clear RET` - Make eshell-clear-keystroke that is dependent on eshell/clear - Load both after eshell is initialized to prevent them from being overwritten This fixes syl20bnr#5424, fixes syl20bnr#5419 Modify eshell clear statements load position Change the clear statements load position from after loading eshell to after enabling eshell. This produces the same result, but is cleaner. Note, they _cannot_ be defined before eshell loads, otherwise they are overwritten. Refactor eshell-clear-keystroke to spacemacs/eshell-clear-keystroke - Reduce steps needed to access clear command with define key - Rename function to match naming conventions - The function shouldn't be accessed from the shell prompt - So not eshell/clear-keystroke - The function isn't from eshell.el - So not eshell-clear-keystroke - However, eshell/clear should be since it is overwriting a command
@syl20bnr I'm using the solution in develop for this (but not spacemacs), and I've noticed something sorta odd - If the last output had color sequences in it (as in |
Modify the default behavior for eshell's clear functionality. - Make eshell `clear RET` _similar_ to `C-l` - `clear RET` is eshell/clear - `C-l` is eshell-clear-stroke - Prevent `C-l` clearing cycle - Prevent `clear RET` inserting a page of white-space - Prevent duplicate insert lines from `clear RET` - Make eshell-clear-keystroke that is dependent on eshell/clear - Load both after eshell is initialized to prevent them from being overwritten This fixes syl20bnr#5424, fixes syl20bnr#5419 Modify eshell clear statements load position Change the clear statements load position from after loading eshell to after enabling eshell. This produces the same result, but is cleaner. Note, they _cannot_ be defined before eshell loads, otherwise they are overwritten. Refactor eshell-clear-keystroke to spacemacs/eshell-clear-keystroke - Reduce steps needed to access clear command with define key - Rename function to match naming conventions - The function shouldn't be accessed from the shell prompt - So not eshell/clear-keystroke - The function isn't from eshell.el - So not eshell-clear-keystroke - However, eshell/clear should be since it is overwriting a command
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Entering clear leaves a line on top of eshell.
Reproducible by:
fresh install
enable shell layer
:eshell
type clear RET
When you press
RET
,On the other hand, C-L, the equivalent command, works as intended.
System: OS X 10.11.3
Emacs: 24.5.1
The text was updated successfully, but these errors were encountered: