feat & fix: Command History Picker (#656)

This commit is contained in:
tami5
2021-03-14 20:05:56 +03:00
committed by GitHub
parent 5333ab0b19
commit 284f38c575
2 changed files with 9 additions and 0 deletions

View File

@@ -263,6 +263,9 @@ internal.command_history = function(opts)
attach_mappings = function(_, map)
map('i', '<CR>', actions.set_command_line)
map('n', '<CR>', actions.set_command_line)
map('n', '<C-e>', actions.edit_command_line)
map('i', '<C-e>', actions.edit_command_line)
-- TODO: Find a way to insert the text... it seems hard.
-- map('i', '<C-i>', actions.insert_value, { expr = true })