VimBindings.jl icon indicating copy to clipboard operation
VimBindings.jl copied to clipboard

Implement Command Mode using REPL AST Transforms

Open caleb-allen opened this issue 2 years ago • 1 comments

VimBindings.jl may benefit from the ~~new~~ REPL AST transforms feature in the Julia REPL, described at about 17:00 in this video: https://youtu.be/qM9NtiYlXck

My first idea is that a new REPL mode could be added, similar to Shell mode or Help mode, but this one is instead only accessible by striking the : key while in the VimBindings normal mode. In this case, the text currently in the REPL should be saved, and restored after the command is run, depending on the action of the command.

REPL AST transforms could then be used to implement a subset of vim commands. For example

  • search with / or backwards search with ?

caleb-allen avatar Apr 30 '23 13:04 caleb-allen

Issue related to documenting REPL AST transforms here https://github.com/JuliaLang/julia/issues/37047

caleb-allen avatar Apr 30 '23 13:04 caleb-allen