Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jump-to-char: Case sensitivity toggle #35

Open
1 of 2 tasks
repparw opened this issue Nov 26, 2024 · 2 comments
Open
1 of 2 tasks

jump-to-char: Case sensitivity toggle #35

repparw opened this issue Nov 26, 2024 · 2 comments
Labels
feature New feature request

Comments

@repparw
Copy link

repparw commented Nov 26, 2024

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

  • I have searched the existing issues/discussions
@repparw repparw added the feature New feature request label Nov 26, 2024
@sxyazi
Copy link
Member

sxyazi commented Nov 27, 2024

(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 sxyazi added the waiting on op Waiting for more information from the original poster label Nov 27, 2024
@repparw
Copy link
Author

repparw commented Nov 27, 2024

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)

@github-actions github-actions bot removed the waiting on op Waiting for more information from the original poster label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

2 participants