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 24K
  • Win 20K
  • Mac 2K
  • Linux 2K
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 0 4 5 10 6 9 4 2 4 4 8 6 6 3 4 2 3 5 11 12 3 6 1 7 9 8 9 1 5 4 3 5 12 24 4 2 7 8 10 4 3 6 9 6 3 9
Mac 0 0 1 1 1 0 0 0 0 0 0 0 1 0 0 0 2 0 0 2 0 0 0 1 2 1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 1 1 1
Linux 0 2 1 2 0 1 2 1 0 1 2 0 0 2 1 0 1 1 1 2 4 1 1 1 1 2 1 3 1 0 1 2 1 3 1 0 2 1 0 1 1 1 0 1 0 1

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 designed to support various versions of Bootstrap's autocompletion with ease. At this moment, it supports Bootstrap 2, 3, 4 and 5 (default). 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 - meta.item-access",
        "text.html meta.attribute-with-value.class",
    ],
    // targeted Bootstrap versions (available versions are: "2", "3", "4", "5")
    "versions": ["5"],
}

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 4 for this project.
            "versions": ["4"],
        },
    },
}

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.2
  • Official Bootstrap v5.3.3

with scripts/extract_class_names_auto.sh.

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

# extract class names
./scripts/extract_class_names_auto.sh