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 370
  • Win 227
  • OS X 93
  • Linux 50
Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 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
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 1 0 0 1 0
OS X 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 2 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 1 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 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

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