Giter Site home page Giter Site logo

Comments (5)

minad avatar minad commented on August 20, 2024

I think consult-history does what you want? It was just added yesterday!

from consult.

leungbk avatar leungbk commented on August 20, 2024

Thanks @minad, I did not notice that.

Would you be interested in a PR like abo-abo/swiper@69fedaa? The purpose is to add support for the C-c C-x commands in comint and eshell.

from consult.

minad avatar minad commented on August 20, 2024

@leungbk Can you describe please what you want to do? I took only a quick look to the link, but it is not immediately obvious.

from consult.

leungbk avatar leungbk commented on August 20, 2024

If my eshell history contains:

echo old
echo newer
echo newest

Right now, if I call consult-history, then select echo old and hit RET, there is no way to quickly retrieve its successor, echo newer in the history list; I would have to either call consult-history again or mash M-p until finding it.

The comint-like modes all contain a command bound to C-c C-x for retrieving the successor; in eshell it's called eshell-get-next-from-history.

Right now, consult-history does not do the bookkeeping required to update the information used by eshell-get-next-from-history. The commit I posted above did that for counsel's relevant commands, and I'd now like to write something analogous here in consult.

from consult.

minad avatar minad commented on August 20, 2024

@leungbk Ok, I see. This sounds good! Looking forward to a PR!

from consult.

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.