horeah / PyCmd

Improved interactive experience for Windows' cmd.exe
GNU Lesser General Public License v3.0
18 stars 4 forks source link

use prompt-toolkit #8

Open santagada opened 1 year ago

santagada commented 1 year ago

Hi,

Has prompt-toolkit been considered? It would give most of fish shell features missing, vim keybindings and more. The downside is moving token parsing and other infrastructure code to it.

I can give it a try next weekend if this an interesting path.

horeah commented 1 year ago

I never looked closely at prompt-toolkit. My fear is that it might not be flexible enough to cover some of PyCmd's fine-tuned, efficiency-optimized features, and it might be hard to inject the command parsing code into it (parsing cmd.exe syntax is an unholy, dirty endeavor) -- but it is definitely worth some experimenting!

If you want to give it a spin, I would be very interested in seeing where this goes.