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