Skip to content

Explore if the forward and backward commands of the input component should ignore - as a word boundary #2812

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

Open
sxyazi opened this issue May 30, 2025 · 1 comment
Labels
feature New feature request

Comments

@sxyazi
Copy link
Owner

sxyazi commented May 30, 2025

Context: #2806 (comment)

Currently, Yazi's implementation references nushell, and ignoring - would make Yazi align with bash, something to consider:

  • Is this change sensible, i.e. which behavior is more common?
  • Besides -, are there any other characters that should be ignored?
  • Is there any documentation regarding this behavior (bash mode) for reference?
@hecto600
Copy link

I don't know what yazi should reference. Albeit, I'd like to point out some cases.

  • snake_case: only_one_word I think _ should be ignored and the example captured as only one word
    • I think that's what's expected. Helix, vscode and vim works like that.
  • kebab-case: word1-word2-word3 could be 3 words.
    • If counting as 5 words: I think only selection mode would benefit because you could separately select the word between the -
    • If counting as 3 words: Its quicker to cut a word with (ctrl+w)

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