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

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