PaysanCorrezien / keyjump.yazi

a yazi plugin which like flash.nvim in neovim,allow use key char to Precise selection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keyjump.yazi

A Yazi plugin which like flash.nvim in Neovim, allow use key char to precise selection.

Keep mode

keep mode, when select a dir, it will auto enter and keep in "keyjump" mode.

When select a file or press or select no match, it will leave "keyjump" mode.

2024-02-04.14-14-09.mp4

Normal mode

Normal mode, when select a item, it will auto leave keyjump mode

2024-02-03.12-00-43.mp4

Install

Linux

git clone https://github.com/DreamMaoMao/keyjump.yazi.git ~/.config/yazi/plugins/keyjump.yazi

Windows

With Powershell :

if (!(Test-Path $env:APPDATA\yazi\config\plugins\)) {mkdir $env:APPDATA\yazi\config\plugins\}
git clone https://github.com/DreamMaoMao/keyjump.yazi.git $env:APPDATA\yazi\config\plugins\keyjump.yazi

Usage

set shortcut key to toggle keyjump mode in ~/.config/yazi/keymap.toml. for example set i to toggle keyjump mode

[[manager.prepend_keymap]]
on   = [ "i" ]
exec = "plugin keyjump --sync --args=keep"
desc = "Keyjump (Keep mode)"
[[manager.prepend_keymap]]
on   = [ "i" ]
exec = "plugin keyjump --sync"
desc = "Keyjump (Normal mode)"

When you see some character(singal character or double character) in left of the entry. Press the key of the character will jump to the corresponding entry

About

a yazi plugin which like flash.nvim in neovim,allow use key char to Precise selection

License:MIT License


Languages

Language:Lua 100.0%