Skip to content

Commit

Permalink
Remove use of deprecated features in bundled modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaq committed Mar 19, 2022
1 parent ab33e69 commit 214665f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pkg/mods/epm/epm.elv
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ set -method-handler = [
-info "Updating "$pkg
try {
git -C $dest pull
} except _ {
} catch _ {
-error "Something failed, please check error above and retry."
}
}
Expand Down Expand Up @@ -393,7 +393,7 @@ fn install {|&silent-if-installed=$false @pkgs|
# place)
try {
install $@deps
} except e {
} catch e {
-error "Dependency installation failed. Uninstalling "$pkg", please check the errors above and try again."
-uninstall-package $pkg
}
Expand Down
18 changes: 12 additions & 6 deletions pkg/mods/readlinebinding/readline-binding.elv
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
set edit:global-binding[Ctrl-G] = $edit:close-mode~

b={|k f| set edit:insert:binding[$k] = $f } {
{
var b = {|k f| set edit:insert:binding[$k] = $f }
$b Ctrl-A $edit:move-dot-sol~
$b Ctrl-B $edit:move-dot-left~
$b Ctrl-D {
Expand Down Expand Up @@ -31,33 +32,38 @@ b={|k f| set edit:insert:binding[$k] = $f } {
$b Alt-t $edit:transpose-word~
}

b={|k f| set edit:completion:binding[$k] = $f } {
{
var b = {|k f| set edit:completion:binding[$k] = $f }
$b Ctrl-B $edit:completion:left~
$b Ctrl-F $edit:completion:right~
$b Ctrl-N $edit:completion:down~
$b Ctrl-P $edit:completion:up~
}

b={|k f| set edit:navigation:binding[$k] = $f } {
{
var b = {|k f| set edit:navigation:binding[$k] = $f }
$b Ctrl-B $edit:navigation:left~
$b Ctrl-F $edit:navigation:right~
$b Ctrl-N $edit:navigation:down~
$b Ctrl-P $edit:navigation:up~
$b Alt-f $edit:navigation:trigger-filter~
}

b={|k f| set edit:history:binding[$k] = $f } {
{
var b = {|k f| set edit:history:binding[$k] = $f }
$b Ctrl-N $edit:history:down-or-quit~
$b Ctrl-P $edit:history:up~
}

b={|k f| set edit:listing:binding[$k] = $f } {
{
var b = {|k f| set edit:listing:binding[$k] = $f }
$b Ctrl-N $edit:listing:down~
$b Ctrl-P $edit:listing:up~
$b Ctrl-V $edit:listing:page-down~
$b Alt-v $edit:listing:page-up~
}

b={|k f| set edit:histlist:binding[$k] = $f } {
{
var b = {|k f| set edit:histlist:binding[$k] = $f }
$b Alt-d $edit:histlist:toggle-dedup~
}

0 comments on commit 214665f

Please sign in to comment.