-
Notifications
You must be signed in to change notification settings - Fork 523
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
Change default delimiter #915
Conversation
Won't this break commands with a single space? |
After re-reading the code, I realized that this change could affect more than just the intended part.
The first time I tried to use the After reconsideration, I think the following change would better fit the intent of changing the default delimiter for variables. diff --git a/src/finder/structures.rs b/src/finder/structures.rs
index a055194..231ff06 100644
--- a/src/finder/structures.rs
+++ b/src/finder/structures.rs
@@ -66,6 +66,7 @@ impl Opts {
overrides: CONFIG.fzf_overrides_var(),
suggestion_type: SuggestionType::SingleRecommendation,
prevent_select1: false,
+ delimiter: Some(r"\s+".to_string()),
..Default::default()
}
} change here Is this OK? |
@denisidoro @kit494way Is this PR still open to be merged? Or is there any change still pending? |
I'm afraid of the (potentially undesired) consequences of this change. If there's evidence it's a safe change, I can approve it. |
In the case of selecting a column that contains a single space without specifying a delimiter, this change will change the behavior. Instead of changing the default delimiter, can you approve a change that allows the default delimiter to be changed in a configuration file? |
@kit494way I think it is the best approach considering the possible consequences of changing the default behaviour of navi. Let me know when your changes are to be merged into the main branch as I will take this opportunity to update the documentation on this new configuration variable in the same PR. Good luck! |
I opened a new issue #940 . |
Currently, the default delimiter is two or more white space characters.
The default delimiter should be one or more white space characters.