add new features from Bash 5.0 and Readline 8.0

parent e2a4b17d
......@@ -147,6 +147,7 @@ dotglob = True
extglob = True
nocaseglob = False
nocasematch = False
localvar_inherit = False
[Vim]
use_vimcfg = False
......@@ -285,3 +286,5 @@ menu_complete_backward = C:TAB
rerun_root = e:r
list_keys = e:p
backward_kill_line = e:k
next_screen_line = e:[B~
previous_screen_line = e:[A~
......@@ -147,6 +147,7 @@ dotglob = True
extglob = True
nocaseglob = False
nocasematch = False
localvar_inherit = False
[Vim]
use_vimcfg = True
......@@ -285,3 +286,5 @@ menu_complete_backward = C:TAB
rerun_root = e:r
list_keys = e:p
backward_kill_line = e:k
next_screen_line = e:[B~
previous_screen_line = e:[A~
......@@ -28,7 +28,11 @@ Each release lists incompatible changes at its top.
will delete all occurences of @code{rm} from the history. @code{history -D} does exact matches, so for example @code{rmdir} is not removed from history, if @code{rm} is passed as @code{COMMAND}.
@item New history isolation. This will disable both storing the history to file and history syncronization feature.
@item History Isolation. This will disable both storing the history to file and history syncronization feature.
@item New shopt @code{localvar_inherit}, requires Bash version 5.0.
@item New keybindings @code{next-screen-line} and @code{previous-screen-line}, requires Readline version 8.0.
@end itemize
@item Misc. Changes
......
......@@ -71,7 +71,7 @@ if (( "${#bsng_keybindingsrc[@]}" == 0 )); then
backward_char backward_word backward_delete_char delete_char \
copy_backward_word copy_forward_word forward_char forward_word \
overwrite_mode menu_complete_backward rerun_root backward_kill_line \
list_keys; do
list_keys next_screen_line previous_screen_line; do
keybindings_setter "$(ini_get $key)" "${key//_/-}"
......
......@@ -141,3 +141,13 @@ if [[ ${BSNG_BASHVER} -ge 43 ]]; then
dbg_log shopt -u globasciiranges
fi
fi
# Stuff new in Bash 5.0
if [[ ${BSNG_BASHVER} -ge 50 ]]; then
if [[ $(ini_get localvar_inherit) == True ]]; then
dbg_msg $"BashStyle-NG Setting:" localvar_inherit $"On"
dbg_log shopt -s localvar_inherit
else dbg_msg $"BashStyle-NG Setting:" localvar_inherit $"Off"
dbg_log shopt -u localvar_inherit
fi
fi
......@@ -7633,6 +7633,51 @@ lsb = show branches by last activity</property>
<property name="top_attach">10</property>
</packing>
</child>
<child>
<object class="GtkSeparator" id="separator20">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_top">4</property>
<property name="margin_bottom">4</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">11</property>
<property name="width">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="shopts.label.1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">5.0</property>
<property name="angle">90</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">12</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="localvar_inherit">
<property name="label" translatable="yes">Enable localvar_inherit</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">12</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="position">10</property>
......
......@@ -205,6 +205,7 @@ class BashStyleNG(object):
WidgetHandler.InitWidget("extglob", "Shopt", "extglob", "bool", None)
WidgetHandler.InitWidget("nocaseglob", "Shopt", "nocaseglob", "bool", None)
WidgetHandler.InitWidget("nocasematch", "Shopt", "nocasematch", "bool", None)
WidgetHandler.InitWidget("localvar_inherit", "Shopt", "localvar_inherit", "bool", None)
######################## Git Stuff #################################################
WidgetHandler.InitWidget("use_git", "Git", "use_gitcfg", "switch", None)
......
......@@ -224,7 +224,9 @@ keybindings = {
"menu_complete_backward",
"rerun_root",
"backward_kill_line",
"list_keys"
"list_keys",
"next_screen_line",
"previous_screen_line"
}
# IconView Stuff
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment