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

requirementstxt

by wuub ST2/ST3

requirements.txt support for Python

Details

  • 0.3.1
    0.3.0
  • github.​com
  • github.​com
  • 2 years ago
  • 2 hours ago
  • 6 years ago

Installs

  • Total 38K
  • Win 14K
  • OS X 12K
  • Linux 11K
Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28
Windows 14 12 14 18 20 13 17 12 17 11 15 24 28 21 17 20 17 18 13 24 15 17 17 18 20 14 13 17 21 18 22 10 17 16 24 10 20 19 10 17 17 15 24 21 19 19
OS X 5 8 3 3 11 8 5 11 8 10 4 3 4 4 9 5 7 2 3 3 12 8 9 6 4 6 7 11 7 6 5 6 3 8 13 8 9 11 2 8 5 8 7 8 12 5
Linux 9 9 5 5 5 10 13 10 10 10 8 7 11 12 5 9 11 7 8 9 17 14 14 8 9 10 12 11 10 10 17 9 7 6 15 9 12 10 6 5 5 19 17 20 8 13

Readme

Source
raw.​githubusercontent.​com

requirements.txt

Plugin for Sublime Text 2/3 providing autocompletion, syntax highlight and easy version management in requirements.txt files.

Installation

Install using Package Control or clone this repository into Packages/requirementstxt folder (WARNING: previously we used a dot in the package name here, but SublimeText3 changed the way it imports packages, and we need to fall back to ascii name)

Usage

  • Open any requirements.txt file or Set syntax: requirements.txt of newly created file.
  • Start typing package name -> autocompletion should trigger automatically.
  • When cursor is placed on a single line, press Alt+, to pin package to the most recent version but still in the current major line. For example, if the current version of xyz is 1.2.3, requirements.txt will generate following version line: xyz>=1.2.3,<2.0.0 following http://semver.org/.
  • If you wish to hard pin most recent versions, use Alt+Shift+, -> line will be replaced with xyz==1.2.3
  • If you wish to pin a specific version, press Alt+. (soft) or Alt+Shift+. (hard) and pick a version from a quick panel.
  • Commands with , support mutliline and multicursor selections. If you wish to bring requirements.txt file up to date, just Ctrl+A & Alt+Shift+.
  • Using requirements.txt also normalizes package names, so mysql-python becomes MySQL-python.

Screenshots

  • Autocomplete
  • Completed
  • Select exact version for soft pin Alt+.
  • Select exact version for hard pin Alt+Shift+.
  • Automatically soft pin most recent version Alt+,
  • Automatically hard pin most recent version Alt+Shift+,
  • Multi-line selection
  • Multi-line selection & Alt+,
  • Multiple cursors
  • Multiple cursor & Alt+Shift+,