Coder Social home page Coder Social logo

Comments (8)

sunaku avatar sunaku commented on May 20, 2024

Accepted. Thanks for your contribution. 🌟

from zsh-history-substring-search.

sorin-ionescu avatar sorin-ionescu commented on May 20, 2024

This seems terminal dependent. You fix it for one and break it for another. Hence why I prefer to use the terminfo database.

from zsh-history-substring-search.

sunaku avatar sunaku commented on May 20, 2024

Sorin, should I add zero 0 back into that for-loop?

from zsh-history-substring-search.

sorin-ionescu avatar sorin-ionescu commented on May 20, 2024

Sincerely, I don't know. Since using the terminfo database, I have stopped being bothered by this.

from zsh-history-substring-search.

lonepie avatar lonepie commented on May 20, 2024

ahh strange, perhaps I am in the minority then. I was using LXTerminal on
Lubuntu.

On Wed, Jun 19, 2013 at 6:47 PM, Sorin Ionescu [email protected]:

Sincerely, I don't know. Since using the terminfo databasehttps://github.com/sorin-ionescu/prezto/blob/master/modules/editor/init.zsh#L27-L66,
I have stopped being bothered by this.


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-19720417
.

from zsh-history-substring-search.

sunaku avatar sunaku commented on May 20, 2024

Thanks Sorin, that tip works when I run zsh in a terminal:

# bind UP and DOWN arrow keys
zmodload zsh/terminfo
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down

But when I run zsh inside tmux, those bindings don't work. 😿

from zsh-history-substring-search.

sunaku avatar sunaku commented on May 20, 2024

Never mind, I discovered a workaround for the problem. 😅

# ... support zsh in tmux in URxvt too
if test "${TERM#screen}" != "$TERM"; then
  bindkey '^[[A' history-substring-search-up
  bindkey '^[[B' history-substring-search-down
fi

from zsh-history-substring-search.

sorin-ionescu avatar sorin-ionescu commented on May 20, 2024

I don't have a problem with bindings and tmux.

from zsh-history-substring-search.

Related Issues (20)

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.