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

Font Size Per View

by m-bartlett ST3

Sublime Text plugin to support adjusting the font size in each view individually (the default font size commands adjust it globally across all views).

Details

Installs

  • Total 342
  • Win 209
  • Mac 74
  • Linux 59
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 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7
Windows 2 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 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 1 0
Mac 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Linux 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 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Font Size Per View

A Sublime Text plugin to support adjusting the font size in each view individually (the default font size commands adjust it globally across all views).

FontSizePerView plugin demo showing different font sizes between a couple of views

Installation

Package Control

  1. Open the command palette in Sublime Text (ctrl+shift+p by default).
  2. Search for Package Control: Install Package and hit enter to execute the command.
  3. Search forFont Size Per View in the list of displayed packages, then hit enter once it is focused to install the plugin.

The plugin will now be installed.

View package control page

Manual

Linux/Windows

Clone this repository into ~/.config/sublime-text/Packages/ named as Font Size Per View.

For example:

$ git clone https://github.com/m-bartlett/SublimeFontSizePerView "~/.config/sublime-text/Packages/Font Size Per View"

MacOS

Clone this repository into ~/Library/Application Support/Sublime Text/Packages/ named as Font Size Per View.

For example:

$ git clone https://github.com/m-bartlett/SublimeFontSizePerView "~/Library/Application Support/Sublime Text/Packages/Font Size Per View"

Usage

Command Palette

Using the command palette, query for any of these commands: - Font Size Per View: Increase View Font Size - Font Size Per View: Decrease View Font Size - Font Size Per View: Reset View Font Size

Note: the Reset View Font Size command reads the font_size setting in your global user settings in ~/.config/sublime-text/Packages/User/Preferences.sublime-settings to determine what font size to reset the view to.

Default Keybinds

Note: These keybinds are commented out initially. To access a view to quickly edit your keybinding settings, click the context menu option Preferences > Package Settings > Font Size Per View > Key Bindings.

  • ctrl+alt+= will call adjust_font_size_per_view with args {"delta": 1} which increases the active view's font size by 1 pt.
  • ctrl+alt+- will call adjust_font_size_per_view with args {"delta": -1} which decreases the active view's font size by 1 pt.
  • ctrl+alt+0 will call adjust_font_size_per_view with args {} which resets the font size of the view back to the global font_size setting's value.