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 339
  • Mac 1K
  • Linux 696
Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 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
Windows 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 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0
Mac 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 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0
Linux 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 1 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!