Comments (5)
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.
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.
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.
I think I'll close this in favor of a newly created one.
from mini.nvim.
@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)
- [mini.tests] conditional `quit_on_finish` option or API to determine if tests failed? HOT 2
- Can't disable local session in mini.sessions HOT 1
- return keyword in mini.base16 HOT 2
- [mini.jump2d] Lua mappings for start_jumping_forwards and start_jumping_backwards HOT 1
- Mini.ai breaks `vim.on_key()` in combination with some other plugins HOT 3
- Italic options for mini.hues HOT 1
- mini.files to work better without acd HOT 1
- (misc): setup_termbg_sync reset can spuriously fail HOT 19
- Add git log --graph functionality like rbong/vim-flog HOT 1
- Strange `gs` mapping with `Sleep` comment HOT 3
- Invalid `cwd` passed to `H.git_cli_output` in `MiniGit.show_at_cursor` temporarily hangs Neovim HOT 1
- (misc): `setup_termbg_sync` breaks firenvim HOT 3
- Follow global system-wide dark mode preference HOT 2
- mini.splitjoin - Golang requires an additional `,` on the last argument HOT 2
- mini.animate scroll to respect scrolloff settings HOT 1
- mini.clue default bindings support HOT 2
- mini.run: simple run configs manager in your editor HOT 3
- mini.statusline: disable statusline per buffer HOT 1
- mini.git: when visiting the diff file of HEAD, `show_at_cursor()` opens the current file instead of a snapshot HOT 6
- mini.starter fuzzy find HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini.nvim.