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

Make fzf search available from other repl modes #319

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonniediegelman
Copy link

This adds fzf reverse search when in the help, pkg, and shell repl modes to address #318

@@ -288,6 +288,15 @@ function insert_keybindings(repl = Base.active_repl)
end

main_mode.keymap_dict = LineEdit.keymap(Dict{Any, Any}[NEW_KEYBINDINGS, main_mode.keymap_dict])

# Inject ^R keybinding into other repl modes for fzf reverse search to work
for repl_mode in mirepl.interface.modes[2:end]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit worried this is too intrusive, ideally we only want this to work on Pkg and Shell mode right? not, say, R-mode or the now-gone C++ mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants