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

Multi​Fill

by Lellansin ALL

A sublime text plugin for multi-fill text.

Details

  • 2016.05.20.08.44.29
  • github.​com
  • github.​com
  • 9 years ago
  • 2 hours ago
  • 11 years ago

Installs

  • Total 2K
  • Win 1K
  • Mac 428
  • Linux 199
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
Windows 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 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0
Mac 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

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":
            [
                "张三", "李四", "唐儒马"
            ]
        }
    ]
}

配置之后,有图有真相: