Giter Club home page Giter Club logo

Comments (5)

marlonrichert avatar marlonrichert commented on July 4, 2024

I'm unable to reproduce that. Here's the test environment I used:

cd $(mktemp -d)
> .zshrc <<EOF
PS1='%# ' PS2= RPS2='%^'; setopt transientrprompt interactivecomments
source /path/to/zsh-hist/zsh-hist.plugin.zsh
EOF
HOME=$PWD ZDOTDIR=$PWD zsh -d

Please try it in this environment and if the bug doesn't occur there, then the problem is definitely with Zinit. If you can find a way in which I can reproduce this that doesn't involve Zinit, then I'll reopen the issue.

There is no longer a keybinding for retrieving saved items from history, because there's plenty of keybindings for that already.

I did find some other bugs in my testing and pushed in a fix for those.

from zsh-hist.

cjk avatar cjk commented on July 4, 2024

Hey @marlonrichert , thanks for giving it a try, I can understand your notion here.
I'd also blame it on zinit, however simply reverting back to the commit prior the push-changes instantly fixes the problem for me.

Nevertheless, I'll try to analyze deeper once I get a chance and try without zinit.

from zsh-hist.

marlonrichert avatar marlonrichert commented on July 4, 2024

What output do you get from bindkey '^Q'?

from zsh-hist.

cjk avatar cjk commented on July 4, 2024

What output do you get from bindkey '^Q'?

❯ bindkey '^Q'
"^Q" push-line-or-edit

but wait, when I restore the plugin to the latest main-branch changes, I suddenly get

"^Q" push-history

Didn't realize that before, so somehow my bindings changed after the update.
That means if I find a way to switch back to push-line-or-edit it would solve my problem 🤔

Update: sadly no, even if I change the binding back to push-line-or-edit, my pushed command gets immediatly auto-restored after hitting enter, which is not how it's supposed to work, I want to use get-line for that.

from zsh-hist.

marlonrichert avatar marlonrichert commented on July 4, 2024

bindkey ^Q should output "^Q" push-history. Looks like something else is overriding that keybinding.

from zsh-hist.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.