ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Bootstrap​Autocomplete

by jfcherng ST4

Sublime Text 4 plugin for Bootstrap class name autocompletion.

Labels auto-complete

Details

Installs

  • Total 4K
  • Win 4K
  • Mac 263
  • Linux 371
Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11
Windows 0 38 38 27 49 32 37 41 26 55 36 37 33 33 27 35 34 32 42 42 33 39 34 50 27 33 40 31 37 29 45 52 42 49 21 22 47 49 44 41 33 24 24 41 25 48
Mac 0 1 3 6 1 1 3 1 2 4 1 3 2 1 0 4 2 1 4 0 0 1 2 2 3 2 1 1 3 1 3 4 0 1 4 1 3 3 1 1 6 2 2 1 2 2
Linux 0 3 5 5 5 3 5 3 2 6 2 2 8 1 3 1 3 2 7 1 2 5 7 3 3 3 5 2 0 4 1 7 3 1 0 9 1 2 4 3 3 3 1 6 4 7

Readme

Source
raw.​githubusercontent.​com

ST-BootstrapAutocomplete

Required ST Build GitHub Actions Package Control GitHub tag (latest SemVer) Project license GitHub stars Donate to this project using Paypal

This Sublime Text 4 plugin means to unify other Bootstrap autocompletion plugins.

This plugin is design to support various versions of Bootstrap's autocompletion with ease. At this moment, it supports Bootstrap 2, 3, 4 (default) and 5. If you find a missing class name, an issue or pull request is always welcome.

screenshot-st4

Installation

This package is available on Package Control by the name of BootstrapAutocomplete.

Global Settings

From the main menu: Preferences » BootstrapAutocomplete » Settings

{
    // scopes that this plugin should activated
    "selectors": [
        "text.html string.quoted - meta.path",
        "text.html meta.attribute-with-value.class",
    ],
    // targeted Bootstrap versions (available versions are: "2", "3", "4", "5")
    "versions": ["4"],
}

Project Settings

You most likely want to use only a specific version of Bootstrap in a project. In that case, you can specify the version(s) you want to use in your project settings.

From the main menu: Project » Edit Project

{
    "folders":
    [
        // ...
    ],
    "settings": {
        // settings here will override global settings
        "BootstrapAutocomplete": {
            // use Bootstrap 5 for this project.
            "versions": ["5"],
        },
    },
}

For Plugin Developers

This plugin's autocompletion lists are extracted from

  • Official Bootstrap v2.3.2
  • Official Bootstrap v3.4.1
  • Official Bootstrap v4.6.0
  • Official Bootstrap v5.1.0

with scripts/extract_class_names_auto.sh.

# setup environment
python -m venv .venv
source .venv/Scripts/activate # if on Windows
source .venv/bin/activate # if not on Windows
python -m pip install -U -r requirements.txt

# extract class names
bash "scripts/extract_class_names_auto.sh"