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

Multi​Fill

by Lellansin ST2/ST3

A sublime text plugin for multi-fill text.

Details

  • 2016.05.20.08.44.29
  • github.​com
  • github.​com
  • 3 years ago
  • 3 hours ago
  • 6 years ago

Installs

  • Total 2K
  • Win 1K
  • OS X 356
  • Linux 175
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 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9
Windows 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0
OS X 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 1 0 0 0 0 0 0 0
Linux 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 0 0 0

Readme

Source
raw.​githubusercontent.​com

MultiFill

A sublime text plugin to multi-fill text.

With this plugin, you can press [ctrl+m] and [ctrl+f] (short for Multi-Fill), when you use the sublime choose multi-place, to select a text type to fill multi-place automatically. And you can customize the texts to fill easily by edit the config file.

Formula insert

If you just want to insert some numbers with your law, you can try [ctrl+m] and [ctrl+i] (short for Multi-Interger), to input your formula like this :

y = 2000 - 10x
the x is form 0 to how many places you selected, and the every place will be filled with 2000 1990 1980 … etc. just the result of the formula you typed.

It will be very useful, while we write .html .sql and so on.

Multi select

Now you can free your ctrl + D

We will not be cautious any more while we use [ctrl+d] to make multiple selections. we can use the [ctrl+alt+d] to save the points and selections now, and use [ctrl+alt+enter] to restore all of it.

Multi switch

First, you can switch to the prev or next editor view by [alt+left] and [alt+right].

While you are using Split Editing, you can jump to the the prev or next window by [ctrl+alt+left] and [ctrl+alt+right].

last, you can also jump with your view by [ctrl+alt+shift+left] and [ctrl+alt+shift+right].

Using Screenshot

Fill ordered numbers

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

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..).

Random fill

it can random insert the text as you can see:

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 here ,{ "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

多处操作的专用插件。

配置填充

主要作用就是在选中多出的时候能够自动填充设置好的文字和数字。

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

公式填充

如果你只是想按照某种规律来填充数字的话,推荐你使用 [ctrl+m][ctrl+i] ,接在出现的输入框中输入的你的公式即可:

y = 2000 - 10x
这个条公式就会在你选中的多处中依次填充 2000 1990 1980 … 等等

多处选择

再也不用再小心翼翼的使用 [ctrl+d] 来选中多个了,你可以用 [ctrl+alt+d] 来保存你当前的坐标和选中项位置,然后慢慢悠悠的使用键盘的方向键找到你要继续选中的东西之后再使用 [ctrl+alt+enter] 来恢复你的所有选中。

多屏切换

单个窗口组中可以使用 [alt+left][alt+right] 在多个编辑页中左右切换(于 ctrl+PageUp 等的区别是不会跑到其他窗口组中)

如果你使用 [alt+shitf+2] 之类的多屏操作,你可以使用 [ctrl+alt+left][ctrl+alt+right] 在多个窗口组之前左右切换。

最后,你可以使用 [ctrl+alt+shift+left][ctrl+alt+shift+right] 带着你当前的编辑页一起跳到左右的窗口组中。

安装

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

配置文件在 【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":
            [
                "张三", "李四", "唐儒马"
            ]
        }
    ]
}

配置之后,有图有真相: