filetype detect missing from completion by glepnir · Pull Request #20625 · vim/vim · GitHub
Skip to content

filetype detect missing from completion#20625

Open
glepnir wants to merge 1 commit into
vim:masterfrom
glepnir:filetype_detect
Open

filetype detect missing from completion#20625
glepnir wants to merge 1 commit into
vim:masterfrom
glepnir:filetype_detect

Conversation

@glepnir

@glepnir glepnir commented Jun 24, 2026

Copy link
Copy Markdown
Member

Problem: ":filetype detect" is a valid command but not offered by
command-line completion.
Solution: add "detect" to the completion candidates.

Comment thread src/testdir/test_cmdline.vim Outdated

@chrisbra chrisbra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not sure this is quite right yet. I think detect should only be offered for the initial call after :filetype but no longer once any of the other sub commands have been given (indent plugin on off).

Comment thread src/testdir/test_cmdline.vim Outdated
Comment thread src/testdir/test_cmdline.vim Outdated
@glepnir glepnir force-pushed the filetype_detect branch 2 times, most recently from 494dede to c25deb7 Compare June 24, 2026 23:07
Problem:  ":filetype detect" is a valid command but not offered by
          command-line completion.
Solution: add "detect" to the completion candidates.
@glepnir

glepnir commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

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