Git Product home page Git Product logo

Comments (3)

benmills avatar benmills commented on May 21, 2024

I'm a little worried this would be bulky but if you want to put together an example of how it would work I would be on board.

from vimux.

sotte avatar sotte commented on May 21, 2024

Hm, I haven't thought about the details, but here are some ideas...

Step 1:

  • save every command you execute to a list (this is trivial)
  • when opening a prompt: up/down selects a command from the list. I guess vim's input() is not powerful enough for this. ctrl-p uses buffers that look like the input prompt to add additinal functionality. All in all, this is more work. Maybe vim offers already some built-in ways to do this.

Step 2:

  • save the list of commands on disk for permanent use.

Alternative sources for the commands:

  • use .bash_history (or similar files) as command history. But there is a lot of stuff in there that you'll never use from within vim.
  • let the user define a list of commands in his .vimrc.

In any case, the input() prompt needs to be replaced by something more powerful.

from vimux.

benmills avatar benmills commented on May 21, 2024

I thought more about this feature and I'm worried that is going a little too far off the feature set that vimux needs. What might be a good idea is to add another vimux-specific plugin that implements this feature.

from vimux.

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.