Git Product home page Git Product logo

Comments (3)

juliusHuelsmann avatar juliusHuelsmann commented on June 27, 2024

Hey :)

I think with the latest version of the history patch this should be possible in normal mode; in normal mode you can click a location, which should subsequently become active. If you click twice, the word underneath is selected and copied into clipboard, I think if you click three times it copies the entire line.

In insert mode this is currently not possible, might be cool to add that (+ maybe a way to leave normal mode & keep the current location). But I think when I had a look at this initially, the naive implementation seemed like a bit more work / error prone than I expected, because we not only need the location on screen, but also extract the current location inside the command buffer. But that's quite a while ago, I am not too sure if I remember correctly

from st-history-vim.

juliusHuelsmann avatar juliusHuelsmann commented on June 27, 2024

or do you mean scroll up and down? That is currently not implemented, but should be an easy-ish addition (that you could also patch on top of the vim patch).

for moving up you can use:

historyMove(0, -(int)state.m.c, 0);

motion down is without the -.

you can theoretically add this to the shortcuts table, but that would be executed even if not in normal mode, so probably you should implement it in executeMotion or kPressHist; (wherever you have access to the input produced by spinning the weel up / down resp).

If you want help on this I can look into this at some point in the future and come back to you about this in this issue in the next couple of days / weeks

from st-history-vim.

zaiqiang-dong avatar zaiqiang-dong commented on June 27, 2024

historyMove work ok for me.Thanks.

from st-history-vim.

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.