Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizing REPL keybindings with alt keys #32491

Closed
haji-ali opened this issue Jul 3, 2019 · 0 comments · Fixed by #33771
Closed

Customizing REPL keybindings with alt keys #32491

haji-ali opened this issue Jul 3, 2019 · 0 comments · Fixed by #33771
Labels
bug Indicates an unexpected problem or unintended behavior docs This change adds or pertains to documentation REPL Julia's REPL (Read Eval Print Loop)

Comments

@haji-ali
Copy link

haji-ali commented Jul 3, 2019

I am following the docs to customize my key bindings.
However, the following code in my startup.jl (taken from the docs)


import REPL
import REPL.LineEdit

const mykeys = Dict{Any,Any}(
    "\\Mt" => (s,o...)->(LineEdit.edit_delete_prev_word(s))
)

function customize_keys(repl)
    repl.interface = REPL.setup_interface(repl; extra_repl_keymap = mykeys)
end

atreplinit(customize_keys)

Gives the assertion

AssertionError: c == '-'

when I start julia and the key Alt+t does not work. Changing \\Mt to another key like ^t seems to work on the other hand.

@haji-ali haji-ali changed the title I have Customizing REPL keybindings with alt keys Jul 3, 2019
@JeffBezanson JeffBezanson added the REPL Julia's REPL (Read Eval Print Loop) label Jul 3, 2019
@rfourquet rfourquet added bug Indicates an unexpected problem or unintended behavior docs This change adds or pertains to documentation labels Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior docs This change adds or pertains to documentation REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants