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

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.4

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