Stopping Textual putting a space after tab completion

Posted 2016-02-28

When your tab-completion field in Textual is empty, it automatically inserts a space after the nickname when you tab complete.

This behaviour was added in 5.2.4 (I think!).

If you're using a version of Textual newer than or equal to 5.2.5, there's a hidden preference that lets you turn this off.

Turning it off

To stop Textual inserting this space automatically, we set the appropriate hidden preference:

Mac App Store version:

defaults write ~/Library/Group\ Containers/8482Q6EPL6.com.codeux.irc.textual/Library/Preferences/8482Q6EPL6.com.codeux.irc.textual "Tab Completion -> Do Not Use Whitespace for Missing Completion Suffix" -bool YES

Non-Mac App Store version

defaults write com.codeux.apps.textual "Tab Completion -> Do Not Use Whitespace for Missing Completion Suffix" -bool YES

Turning it back on

To let Textual go back to inserting this space automatically, we just remove the hidden preference:

Mac App Store version

defaults delete ~/Library/Group\ Containers/8482Q6EPL6.com.codeux.irc.textual/Library/Preferences/8482Q6EPL6.com.codeux.irc.textual "Tab Completion -> Do Not Use Whitespace for Missing Completion Suffix"

Non-Mac App Store version

defaults delete com.codeux.apps.textual "Tab Completion -> Do Not Use Whitespace for Missing Completion Suffix"