Skip to content

pokidovea/MultiFill

 
 

Repository files navigation

MultiFill

A sublime text plugin to multi-fill text.

With this plugin, you can press [ctrl+m] and [ctrl+k], when you use the sublime choose multi-place, to select a text type to fill multi-place automatically.

Um, I think it will be very useful, while we write .html .sql and so on.

Using Screenshot

Ordered fill numbers

you can choose to fill the multi-place with numbers increase.

image

Auto fill names

you can fill the multi-place with ordered names (you can config the names manually, or set it random appear, see the bottom of the article for more detail..).

image

Random fill

it can random insert the text as you can see:

image

Customize easily

you can easily customize the MultiFill's text type title and content as you wish.

the config file is MultiFill.sublime-settings it seems like:

{
	"custom":
	[
		// you can edit the default

		{
			"name"  : "Names (ordered)",
			"way"   : "ordered",
			"values": 
			[
				"Alan","Bob","Cici","David","Elisabeth","Franklin"
			]
		},
		{
			"name"  : "Gender (random)",
			"way"   : "random",
			"values": 
			[
				"male","female"
			]
		},
		{
			"name":"V Roman (ordered)",
			"way"   : "ordered",
			"values":
			[
				"I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"
			]
		}

		// you can add your new
		,{
			"name":"My text (ordered)",
			"way"   : "ordered",
			"values":
			[
				"test1","test2","test3","test4","test5","test6"
			]
		}

	]
}

Wait Help

Um, I must tell you a truth that today is the second day I use python (that's really an amazing language XD), and the code I wrote seems bad, so if is okay could you help to improve this plugin, thanks a lot XD

MultiFill

MultiFill(多处填充)是一个 sublime text 的插件。主要作用就是在选中多出的时候能够自动填充设置好的文字和数字。

当你选中多处之后按下 [ctrl+m][ctrl+k],就可以调出 MultiFill 的主界面,你可以通过这个界面选择要填充的类型

安装

直接通过 package control 搜索 MultiFill 安装,如果没有 package control 请搜索 “sublime 插件” 然后安装。

配置文件在 【Preferences】->【Package Settings】->【MultiFill】 中,请参照 Setting - Default 来编写字节的 User - Default, 当然也可以直接在 Setting - Default 中修改

{
	"custom":
	[
		{
			"name"  : "Names (ordered)", // 插入项名称(MultiFill界面显示)
			"way"   : "ordered",		 // 顺序插入
			"values": 	// 插入内容
			[
				"Alan","Bob","Cici","David","Elisabeth","Franklin"
			]
		},
		{
			"name"  : "Gender (random)",
			"way"   : "random",
			"values": 
			[
				"male","female"
			]
		},
		{
			"name":"V Roman (ordered)",
			"way"   : "ordered",
			"values":
			[
				"I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"
			]
		},
		// 新添加一个试试
		{
			"name":"Names chinese (中文名称)",
			"way"   : "ordered",	// 顺序插入
			"values":
			[
				"张三", "李四", "唐儒马"
			]
		}
	]
}

配置之后,有图有真相:

image

About

A sublime text plugin for multi-fill text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%