Skip to content

Flatcase Splitting Settings

Endor H edited this page Sep 2, 2024 · 5 revisions

Important

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

You may want to read Flatcase Splitting 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 how flatcase commands are split into words for matching.

Tip

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

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

File structure

The structure of this file consists of 2 set entries:

  • words a set of lowercase words to find in commands (longer words are always preferred)
  • suffixes a set of lowercase suffixes to merge into found words if gaps are left between them (it's just a dumb feature, you may ignore this)

Additionally, a replace boolean key may be defined, if you wish to replace the lists defined by resource packs with lower priority, rather than add to them.

Note

Unknown entries are tolerated and ignored for forwards compatibility.


Set Entries

Set entries can be defined with a variety of syntaxes, that enable you to define how to override the value from resource packs with lower priority:

  • A JSON array: Adds to the value of lower priority packs (unless the global replace flag is true).
    {
      "words": ["minceraft"]
    }
  • An object with include/exclude arrays: Adds to and removes from the values in lower priority packs (unless the global replace flag is true).
    {
      "words": {
        "include": [
          "minceraft"
        ],
        "exclude": [
          "minecraft"
        ]
      }
    }
  • An object with a replace array: Replaces values from lower priority packs.
    {
      "words": {
        "replace": [
          "minceraft"
        ]
      }
    }

Example

{
  "replace": false,

  "suffixes": [
    "s"
  ],

  "words": [
    "mine",
    "craft",
    "ability",
    "advancement",
    "always",
    "..."
  ]
}

You can also see the actual list of known words defined by the default flatcase_splitting.json file.

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