summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_includes/sb_sidebar_settings.html2
-rw-r--r--documentation/settings/index.markdown13
2 files changed, 15 insertions, 0 deletions
diff --git a/_includes/sb_sidebar_settings.html b/_includes/sb_sidebar_settings.html
index 1633857..cf19417 100644
--- a/_includes/sb_sidebar_settings.html
+++ b/_includes/sb_sidebar_settings.html
@@ -118,6 +118,7 @@
<option value="part_message">part_message</option>
<option value="paste_detect_time">paste_detect_time</option>
<option value="paste_join_multiline">paste_join_multiline</option>
+ <option value="paste_use_bracketed_mode">paste_use_bracketed_mode</option>
<option value="paste_verify_line_count">paste_verify_line_count</option>
<option value="perl_use_lib">perl_use_lib</option>
<option value="print_active_channel">print_active_channel</option>
@@ -334,6 +335,7 @@
<option value="part_message">part_message</option>
<option value="paste_detect_time">paste_detect_time</option>
<option value="paste_join_multiline">paste_join_multiline</option>
+ <option value="paste_use_bracketed_mode">paste_use_bracketed_mode</option>
<option value="paste_verify_line_count">paste_verify_line_count</option>
<option value="quit_message">quit_message</option>
<option value="recode">recode</option>
diff --git a/documentation/settings/index.markdown b/documentation/settings/index.markdown
index 69cec7d..7b5eb6c 100644
--- a/documentation/settings/index.markdown
+++ b/documentation/settings/index.markdown
@@ -926,6 +926,19 @@ See the [appendix F](#a_f) for credits and license information of this document.
>
> It's useful for quoting e-mail or other large-text messages, but it will probably bite you if you try to pasted indented text, such as code listings. Irssi will join multiple lines of code, destroying any structure you wanted to preserve.
+{:#paste_use_bracketed_mode}
+` paste_use_bracketed_mode = OFF `
+
+> Enables bracketed paste mode, which is an alternative to the time-based paste detection.
+>
+> If supported by the terminal, it's much more reliable since irssi knows exactly where and when a paste starts and ends, because the terminal sends special control sequences (the "brackets") indicating those positions.
+>
+> To take full advantage of this feature, time-based paste detection should be disabled by setting `paste_detect_time` to 0.
+>
+> See <https://cirw.in/blog/bracketed-paste> for more details on how this works.
+>
+> Added in irssi 0.8.18
+
{:#paste_verify_line_count}
` paste_verify_line_count = 5 `