Skip to content
Endor H edited this page Sep 2, 2024 · 8 revisions

Important

If you're using v1.x of Smart Completion, some of these settings won't be available. Furthermore, the names of some settings were slightly different.

You may want to read Smart Completion Settings (v1) instead.

Note

If you're playing on a Minecraft version prior to 1.20.3, you may need to edit these options by creating a resource pack, as the /smartcompletion command is not supported in earlier versions.

These settings define which features of Smart Completion are enabled.

Tip

Resource packs may define these options under a smart-completion/settings.json file.

User config for these settings is managed by the /smartcompletion command under the config/smart-completion/settings.json file.

File structure

This file supports 15 boolean entries and 1 integer entry.

Boolean entries:

  • enabled Enable or disable the entire mod (default: true)
  • enable_completion_keys Enable completion keys, such as <Ctrl>+<Space> and <Enter> (These keys may conflict with other mods that provide features to the chat screen) (default: true)
  • enable_completion_with_enter Accept the current selection when pressing <Enter> on a command that's known to be incomplete (default: true)

Tip

There are some commands for which only the server knows whether they're complete, such as most WorldEdit commands.

What determines when a command is known to be incomplete is whether your text appears in red in the command bar or not.

  • enforce_show_suggestions_on_slash Display suggestions as soon as you open the command prompt (This can be annoying, as it gets in the way of using the command history) (default: false)
  • erase_remainder_on_ctrl_space Whether to delete input after cursor when accepting a suggestion with <Ctrl>+<Space> (default: true) (since v2.1.0)
  • erase_remainder_on_enter Whether to delete input after cursor when accepting a suggestion with <Enter> (default: false) (since v2.1.0)
  • erase_remainder_on_tab Whether to delete input after cursor when accepting a suggestion with <Tab> (default: false) (since v2.1.0)
  • erase_remainder_on_left_click Whether to delete input after cursor when accepting a suggestion by left-clicking a suggestion in the list (default: false) (since v2.1.0)
  • erase_remainder_on_right_click Whether to delete input after cursor when accepting a suggestion by right-clicking a suggestion in the list (default: false) (since v2.1.0)
  • erase_remainder_on_middle_click Whether to delete input after cursor when accepting a suggestion by middle-clicking a suggestion in the list (default: true) (since v2.1.0)
  • enable_suggestion_highlighting Highlight suggestions to display how your query matched them (This requires replacing the rendering logic of the suggestion list, and may conflict with other mods that do the same) (default: true)
  • invert_suggestion_order Display suggestions bottom up, so that the best suggestion is displayed the closest to the command bar and where your eyes are looking (does not affect the GUI for Command Blocks) (default: true)
  • include_smart_matches Include suggestions whose initials match the letters of your query (default: true)
  • include_weak_matches Include suggestions that contain your query anywhere (default: true)
  • include_unexpected_suggestions Include unexpected suggestions from the server that were not known at the point you started typing the last argument (default: true)

Tip

Unexpected suggestions include the [ or { characters in entity selectors or item stack arguments that the server suggests after you've typed a correct base selector/id.

Integer entries

  • minimum_weak_match_length Minimum length for queries to report back weak matches (default: 2)

Additionally, a replace boolean key may be defined if you wish to replace all settings defined by resource packs with lower priority, rather than override just a few.

Note

Unknown entries are tolerated and ignored for forwards compatibility.


Example

The default settings.json file looks as follows:

{
  "replace": false,
  "enabled": true,

    "enable_completion_keys": true,
      "enable_completion_with_enter": true,
      "enforce_show_suggestions_on_slash": false,

      "erase_remainder_on_ctrl_space": true,
      "erase_remainder_on_enter": false,
      "erase_remainder_on_tab": false,
      "erase_remainder_on_left_click": false,
      "erase_remainder_on_right_click": false,
      "erase_remainder_on_middle_click": true,

    "enable_suggestion_highlighting": true,
      "invert_suggestion_order": true,

    "include_smart_matches": true,
    "include_weak_matches": true,
      "minimum_weak_match_length": 2,
    "include_unexpected_suggestions": true
}

Home

All Versions

Home general

  • Smart Completion Settings v2 v1

    • Basic settings general
    • Suggestion Style Settings v2 v1
    • Flatcase Splitting Settings v2 v1
    • Cache Settings general
  • Miscellaneous

Clone this wiki locally