plugins icon indicating copy to clipboard operation
plugins copied to clipboard

jump-to-char: Case sensitivity toggle

Open repparw opened this issue 1 year ago • 2 comments

yazi --debug output

Yazi    Version: 0.3.3 (Nixpkgs 2024-09-04)    Debug  : false    OS     : linux-x86_64 (unix)Ya    Version: 0.3.3 (Nixpkgs 2024-09-04)Emulator    Emulator.via_env: ("xterm-kitty", "")    Emulator.via_csi: Ok(Kitty)    Emulator.detect : KittyAdapter    Adapter.matches: KittyDesktop    XDG_SESSION_TYPE           : Some("wayland")    WAYLAND_DISPLAY            : Some("wayland-1")    DISPLAY                    : Some(":0")    SWAYSOCK                   : None    HYPRLAND_INSTANCE_SIGNATURE: Some("a425fbebe4cf4238e48a42f724ef2208959d66cf_1732546057_78323281")    WAYFIRE_SOCKET             : NoneSSH    shared.in_ssh_connection: falseWSL    WSL: falseVariables    SHELL              : Some("/run/current-system/sw/bin/zsh")    EDITOR             : Some("nvim")    VISUAL             : Some("nvim")    YAZI_FILE_ONE      : None    YAZI_CONFIG_HOME   : NoneText Opener    default: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })    block  : Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })Multiplexers    TMUX               : false    tmux version       : tmux 3.5a    ZELLIJ_SESSION_NAME: None    Zellij version     : No such file or directory (os error 2)Dependencies    file             : 5.45    ueberzugpp       : 2.9.6    ffmpegthumbnailer: 2.2.2    magick           : 7.1.1-40    fzf              : 0.56.2    fd               : 10.2.0    rg               : 14.1.1    chafa            : 1.14.5    zoxide           : 0.9.6    7z               : No such file or directory (os error 2)    7zz              : 24.08    jq               : 1.7.1--------------------------------------------------When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time.You can find it in the "/home/repparw/.local/state/yazi" directory.

Please describe the problem you're trying to solve

Jump not grabbing uppercase files/directories on lowercase letter

Would you be willing to contribute this feature?

  • [ ] Yes, I'll give it a shot

Describe the solution you'd like

Add a case sensitivity toggle/option, maybe make it ignore by default.

so you can use fd to get to Downloads/Documents, not only fD.

(Probably ignore on lowercase and only upper on uppercase?, something similar to a search in nvim)

Additional context

No response

Validations

  • [X] I have searched the existing issues/discussions

repparw avatar Nov 26 '24 20:11 repparw

(Probably ignore on lowercase and only upper on uppercase?, something similar to a search in nvim)

Interesting, this is something I didn't know – does Vim also use or support smart case for the f key? Can you provide its documentation as a reference? I want to see how Vim handles it, since I want to make sure the jump-to-char behavior is as consistent with Vim as possible

sxyazi avatar Nov 27 '24 07:11 sxyazi

Not for f, I don't think so. but this is more akin to a search since this implementation doesn't jump to next char only to firsts.

You could bypass jumping to Documents in nvim by jumping to the o if it's easier than jumping to D, or if there are other D before.

You also don't usually mix and match many uppercase words in nvim, while some directories are created in uppercase (Unix default I think? see most dirs inside home)

repparw avatar Nov 27 '24 11:11 repparw