Skip to content

Disable filename completion on tab#8

Merged
hanoglu merged 1 commit into
hanoglu:mainfrom
MaxGyver83:feature/disable-tab-completion
Aug 12, 2023
Merged

Disable filename completion on tab#8
hanoglu merged 1 commit into
hanoglu:mainfrom
MaxGyver83:feature/disable-tab-completion

Conversation

@MaxGyver83

@MaxGyver83 MaxGyver83 commented Aug 5, 2023

Copy link
Copy Markdown
Contributor

Pasting a tab-indented function definition into TermiC lets it print all files in /tmp/. The reason is that "tab" is (usually) bound to menu-complete (in bash) and this function is called when readline sees a tab, no matter if the tab key is pressed or tab characters are part of some pasted text.

I suppose that tab completion is more often triggered unintentionally than it is used on purpose while entering C/C++ code. This is why I propose to disable it.

@hanoglu hanoglu merged commit 066fb2a into hanoglu:main Aug 12, 2023
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