Git Product home page Git Product logo

Comments (5)

echasnovski avatar echasnovski commented on September 2, 2024

Thanks for the suggestion! There is a repeat_jump mapping, which is by default ;. So you can, for example, type Fx to search backwards for x and then repeat backward jump with ;. Then possibly jump forward with f and repeat forward jump again with ;. The same goes with t and T. Is this good enough for you?

At the moment I like current design better for its simplicity: f and t always jump forward, F and T always jump backward, ; always repeats previous jump.

from mini.nvim.

rogersai avatar rogersai commented on September 2, 2024

The repeat map will work well enough, perhaps remapped to another key for my preferences. I do appreciate the logic of keeping the directions absolute.

By chance is there any status variable set by the plugin, where a user could detect if there is a jump chain in progress, and remap 'f' during a chain if desired? I tried to have a look at the code but I'm pretty new at Lua.

BTW, so far I'm loving mini.nvim, and have replaced several standby plugins with your modules. You've covered most of my "essentials" with nice minimal versions. Big thumbs up, and I'm looking forward to mini-vim-lion.

from mini.nvim.

echasnovski avatar echasnovski commented on September 2, 2024

Thank you for your kind words!

At the moment there is some stored helper information about the process (if "inside jumping", if "backward", etc.), but it is not exported to the user. I'll think about exporting it, as it does seem like there is an interesting use case.

from mini.nvim.

echasnovski avatar echasnovski commented on September 2, 2024

I think I'll close this in favor of a newly created one.

from mini.nvim.

echasnovski avatar echasnovski commented on September 2, 2024

@rogersai, I've created an exported MiniJump.state table which should have enough information for the custom remap you were looking for. Sorry for this much delay, wanted to cover module with tests before making any changes. Hope it helps.

from mini.nvim.

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.