Skip to content

Always use g:ctrlp_by_filename option - #279

Closed
bleshik wants to merge 1 commit into
ctrlpvim:masterfrom
bleshik:ctrlp_by_filename
Closed

Always use g:ctrlp_by_filename option#279
bleshik wants to merge 1 commit into
ctrlpvim:masterfrom
bleshik:ctrlp_by_filename

Conversation

@bleshik

@bleshik bleshik commented Jul 28, 2016

Copy link
Copy Markdown

No description provided.

@mattn

mattn commented Jul 28, 2016

Copy link
Copy Markdown
Member

This change is not required. s:byfname are set as same value of the global variable if you set g:ctrlp_by_filename.

@bleshik

bleshik commented Jul 28, 2016

Copy link
Copy Markdown
Author

The problem with the current behaviour is that the value of s:byfname may changed using C-D and next time you open CtrlP the value is the last one which was used. The desired behaviour is to always use the specified g:ctrlp_by_filename on every invocation of CtrlP, no matter in what state you left the value.

@mattn

mattn commented Jul 25, 2026

Copy link
Copy Markdown
Member

Closing: persisting the toggle across invocations is intentional behavior, and changing it unconditionally would regress users who rely on it. If this behavior is wanted, it should be a new opt-in option. Thank you.

@mattn mattn closed this Jul 25, 2026
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.

2 participants