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

Gitk

by gerardroche ALL

Gitk integration.

Labels git

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

Gitk

Enhance your Sublime Text experience with seamless gitk integration.

Provides commands to launch gitk from within Sublime Text.

Installation

Step 1: Install gitk

Before you get started, make sure you have gitk installed on your system. To install, you'll need to follow the instructions specific to your operating system:

On Windows:

  1. Download the Git for Windows installer from the official website: Git for Windows.

  2. Run the installer and follow the installation steps. During installation, you can choose the components to install. Ensure that the “Git Bash Here,” “Git GUI Here,” and “Gitk” options are selected.

  3. Complete the installation, and Gitk will be installed along with Git on your Windows system.

On macOS:

  1. You can install Gitk on macOS using a package manager like Homebrew. If you don't have Homebrew installed, you can install it by following the instructions on the Homebrew website: Homebrew.

  2. Once Homebrew is installed, open your terminal and run the following command to install Gitk:

brew install gitk
  1. Homebrew will download and install Gitk and its dependencies.

On Linux (Ubuntu/Debian):

  1. Open a terminal.

  2. Use the package manager to install Gitk. For Ubuntu and Debian-based systems, you can use apt-get:

sudo apt-get update
   sudo apt-get install gitk

On Linux (Fedora/RHEL/CentOS):

  1. Open a terminal.

  2. Use the package manager to install Gitk. For Fedora, RHEL, or CentOS-based systems, you can use dnf or yum:

For Fedora:

sudo dnf install gitk

For RHEL/CentOS:

sudo yum install gitk

After following these steps, Gitk should be successfully installed on your system. You can verify the installation by opening a terminal and running the following command:

gitk --version

This command should display the version information of Gitk, confirming that it's installed and ready to use.

Step 2: Install the Gitk Package

Method 1: Using Package Control

  1. Open Sublime Text.
  2. Access the Command Palette by pressing Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS).
  3. Type “Package Control: Install Package” and press Enter.
  4. In the input field, type “Gitk” and select it from the list of available packages.

Method 2: Manual Installation

  1. Visit the Gitk GitHub repository.
  2. Click on the “Code” button and choose “Download ZIP.”
  3. Unzip the downloaded file.
  4. In Sublime Text, navigate to Preferences -> Browse Packages... to access the Packages folder.
  5. Copy the “Gitk” folder from the unzipped archive and paste it into the Packages folder.

Method 3: Manual Git Repository Installation

  1. Open a terminal or command prompt.
  2. Go to the Sublime Text Packages directory based on your operating system:
    • Windows: %APPDATA%\Sublime Text\Packages
    • macOS: ~/Library/Application Support/Sublime Text/Packages
    • Linux: ~/.config/sublime-text/Packages
  3. Clone the Gitk plugin repository directly into the Packages directory using Git:
git clone https://github.com/gerardroche/sublime-gitk.git Gitk

Commands

Use these commands to launch gitk.

Command Description
Gitk Launch gitk for the current repository.
Gitk –all Open gitk --all for the current repository.

NeoVintageous mappings

NeoVintageous is a Vim emulator for Sublime Text.

  1. Open the Command Palette: Command Palette → NeoVintageous: Open neovintageous file.

  2. Add your preferred mappings.

Example

nnoremap <leader>oa :Gitk all=true<CR>
   nnoremap <leader>ok :Gitk max-count=200 all=true date-order=true<CR>
  1. To apply the changes, reload the neovintageousrc from the Command Palette: Command Palette → NeoVintageous: Reload neovintageous file.

Changelog

See CHANGELOG.md.

License

Released under the GPL-3.0-or-later License.