Split Line
Sublime text plugin to split single line arrays over multiple lines.
Details
Installs
- Total 2K
- Win 1K
- Mac 707
- Linux 387
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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 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
Split Line Sublime Plugin
Using ctrl+shift+\
(ctrl+shift+`
for OSX) or the context menu option split a single-line array into multiple lines. Developed for Python
but can be used with any comma-seperated array.
Turn recursive splitting on/off through the sublime-settings file for the plugin.
Examples
array = [1, 2, 3, 4, 5,]
# Becomes
array = [
1,
2,
3,
4,
5,
]
array = (1, 2, {3, 4}, 5,)
# Normally:
array = (
1,
2,
{3, 4},
5,
)
# With recursive_split = true:
array = (
1,
2,
{
3,
4,
},
5,
)
def my_function(a, b, c):
pass
# Becomes
def my_function(
a,
b,
c
):
pass
Installation
Clone this repo into your sublime Packages
folder.
Linux
cd ~/.config/sublime-text-3/Packages/
git clone https://github.com/stevebasher/Split-Line-Sublime-Plugin.git
OSX
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
git clone https://github.com/stevebasher/Split-Line-Sublime-Plugin.git