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

Underliner

by dfleury ST2/ST3

A space to underline converter plugin for Sublime Text

Details

Installs

  • Total 343
  • Win 210
  • OS X 84
  • Linux 49
Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7
Windows 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 1 0
OS X 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 0 0 0 0 0
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 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Underliner

This is a space to underline converter plugin for Sublime Text 3

Motivation

I figured out how boring is write python methods to describe a test case typing underlines (also called underscore) instead of spaces. So I made this plugin to replace spaces contained in selected code chunks in a practical way.

Usage example

test if can sum two numbers
more   than  one spaces

After selecting a text like that above, there are many ways to activate the Underliner command such: context menu, main menu (Edit > Convert Case > Underliner), command list ([Ctrl/Cmd]+Shift+P > Convert Case: Underliner) and the keyboard shortcut ([Ctrl/Cmd]+Shift+U), which is my preferred option. The expected effect is the same text with each space character replaced to a underline:

test_if_can_sum_two_numbers
more___than__one_spaces

You can do the reverse too. Same principle: select and execute the command. Spaces and underlines are counted and the most found charactere will be used as target to replace, maintaining the less found characteres.

License

The MIT License (MIT) - Copyright © 2014 Diego Fleury