Screen cleared after only pressing return
jslabovitz opened this issue · 9 comments
In 0.5.0, the screen would clear only after actually running a command. If I just pressed return one or more times, lines would be added as they would be in a zsh without almostontop. This seemed the correct and unsurprising behavior.
In 0.6.0, pressing return clears the screen, but leaves two prompt lines on the screen. (Just press return once and you'll see -- let me know if you need a screen shot.)
It seems that the plugin should do one or the other -- either clear the screen after an empty command, leaving only one line with the current prompt, or allow multiple empty commands to stack up before clearing the screen for a real command.
Hi @jslabovitz , thanks for the report. Not sure I'm getting you. Could you please send screenshot (or asciinema cast)?
Yeah, something has changed here. I run this plugin along side auto-ls
and now when I press enter
, it's clearing the auto-ls
; which wasn't normal
This was the old behaviour:
This is the new behaviour:
I don't mind if it clears the screen on the "enter" key, but I'd love for auto-ls
to still function with this
Hi @rawkode , could please put auto-ls
plugin load prior to almostontop
and check again.
@Valiev Apologies for the delay, I took a lot of time off for the holidays.
I've put auto-ls
before almostontop
, but I'm still seeing the ls
aspect cleared.
##
# Always Clear Screen & Run `ls`
##
AUTO_LS_COMMANDS=(exa git-status)
zplugin ice lucid pick"auto-ls.zsh"
zplugin load "desyncr/auto-ls"
auto-ls-exa () {
exa
[[ $AUTO_LS_NEWLINE != false ]] && echo ""
}
zplugin ice lucid pick"almostontop.plugin.zsh"
zplugin load "Valiev/almostontop"
This is my config
I do not use zplugin
machinery. What I did:
- git clone https://github.com/desyncr/auto-ls to
~/.oh-my-zsh/custom/plugins/
- enabled this plugin in
~/.zshrc
intoplugins
variable prior toalmostontop
plugins=(
auto-ls
almostontop
brew
...
- PROFIT
Everything worked fine.
@rawkode @jslabovitz closing due to inactivity