Skip to content
duydao edited this page Nov 11, 2014 · 19 revisions

Default settings

The default TextPastry.sublime-settings can be found in the package directory:

Preferences -> Package Settings -> Text Pastry -> Settings - Default

Settings files use JSON as format, the default settings file looks like this:

{
    "clipboard_strip_newline": true,
    "repeat_words": false,
    "repeat_clipboard": false,
    "history_enabled": true,
    "keep_selection": false
    "history_max_entries": 100,
    "repeat_preset": true
}

You can access your personal settings for Text Pastry here:

Preferences -> Package Settings -> Text Pastry -> Settings - User

Please place the key/value pairs you want to override into your personal settings, e.g.

{
    "keep_selection": true
}

Description

clipboard_strip_newline

Removes whitespaces before insert, the default value is true

repeat_words

if list of words is smaller then the number of selections, Text Pastry repeats the words by doing this:

    while (len(items) < len(sel)): 
        items.extend(items)

repeat_clipboard

has the same effect as repeat_words, but is only used when pasing clipboard data. This will not change the content of your clipboard data. The default value is false

history_enabled

Enable the history. We can access the History by calling the Text Pastry Menu:

  Mac Windows / Linux
Text Pastry Menu CMD + ALT + T CTRL + ALT + T

keep_selection

Keep selection/cursor positions after a Text Pastry operation.

history_max_entries

added in 1.3.5

Maximum History entries that will be kept. History entries are stored in Packages/User/TextPastryHistory.settings-sublime, oldest entries will be purged if maximum was reached. You can clear the history by calling the Text Pastry Menu or by deleting the File. The default value is 100.

repeat_preset

added in 1.3.6

repeats the entries of a preset list if you have more selections then entries in the list. Default value is true.