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

Tmux Syntax Highlight

by Edditoria ST3

Tmux 3 syntax highlighting for Sublime Text and Bat CLI. MIT licensed for sharing.

Details

Installs

  • Total 2K
  • Win 330
  • Mac 1K
  • Linux 684
Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3
Windows 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 1 0
Mac 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0
Linux 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Tmux 3 Syntax for Sublime Text and bat

This project provides syntax definition for scripting Tmux configuration.

What

These are what this project does:

  • Syntax highlighting for :file_folder:tmux.conf.
  • Compatible with Sublime Text 3 and 4.
  • Works with bat command-line tool.
  • Supports syntax of Tmux 3.
  • Written in .sublime-syntax rather than .tmLanguage.
  • MIT licensed-free to use, modify and share.

How

Install for Sublime Text

screeshot showing Tmux config for Sublime Text

Clone this repository into your :file_folder:Package/ folder:

git clone https://github.com/Edditoria/tmux-sublime.git

[!TIP] To find the path of :file_folder:Package/, click “Preferences” → “Browse Packages” on menu bar of Sublime Text.

Restart Sublime Text if necessary.

Install for bat CLI

screeshot showing Tmux config for bat CLI

Clone this repository into your :file_folder:bat/syntaxes/ directory:

mkdir -p "$(bat --config-dir)/syntaxes"
cd "$(bat --config-dir)/syntaxes"
git clone https://github.com/Edditoria/tmux-sublime.git

# Parse into a binary cache
bat cache --build

Why

I want to include my :file_folder:bat.conf in my dotfiles without licensing concerns. So, I can bat tmux.conf # with wings across my machines. Unfortunately I couldn't find any good and safe project on GitHub.

Fine. I do it myself.

Status

  • I create it to “show something” on screen using bat. The code is definitely over-simplified currently.
  • I would maintain usability in Sublime Text. I don't know how far I can go. It depends on user demand: You!
  • Please star this project to notify me to support more.
  • Open issues for requests and improvements.

Thank you, open source!