Skip to content

Conversation

@adoyle-h
Copy link
Contributor

related issue: #451 (comment)

@adoyle-h adoyle-h changed the base branch from v2.x to main March 19, 2023 16:19
@cseickel
Copy link
Contributor

@adoyle-h While this certainly works, it seems a little rushed. For one, it doesn't make sense for the fuzzy finder mappings config to be at the root level of the config when it only applies to the filesystem source. Also, you are exposing a lot of internal implementation details with the arguments being passed and your example.

It would probably be better to have a mappings config for the filter popup that is similar to the mappings used on the main window. In this particular example, the logic for how the focus is moved up or down should not be exposed to the end user. We should be giving them ready made command names that they just need to provide the mapping(s) for.

@adoyle-h
Copy link
Contributor Author

adoyle-h commented Mar 20, 2023

All fixed.

@adoyle-h adoyle-h force-pushed the feat/fuzzy_finder_mappings branch from 9b6ab34 to fc3787e Compare March 20, 2023 07:56
@adoyle-h adoyle-h changed the title feat: add config.fuzzy_finder_mappings to customize mappings for popup input window in fuzzy_finder_mode feat: add fuzzy_finder_mappings to customize mappings for filter popup in fuzzy_finder_mode Mar 20, 2023
@adoyle-h adoyle-h force-pushed the feat/fuzzy_finder_mappings branch from fc3787e to dd25267 Compare March 20, 2023 13:52
cseickel
cseickel previously approved these changes Mar 21, 2023
Copy link
Contributor

@cseickel cseickel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@cseickel cseickel merged commit 30bf4ef into nvim-neo-tree:main Mar 21, 2023
@ditsuke
Copy link

ditsuke commented Mar 26, 2023

Works very well, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants