jdtsmith / python-mls

Multi-line Shell Commands for Python REPLs in Emacs
GNU Affero General Public License v3.0
40 stars 3 forks source link

Remap comint commands #3

Closed Yevgnen closed 2 years ago

Yevgnen commented 2 years ago

Since the default commands for browsing histories are M-p and M-p bound in comint-mode-map. I think we should remap those commands instead to keep previous-line and next-line available as default. Users may bind C-p and C-n if they prefer them.

jdtsmith commented 2 years ago

Thanks for the PR. Here the idea is that normal navigation can either navigate through multi-line statements, or through history (when you reach the end of such a statement). In that case, it makes sense for up/down arrow and C-p/C-n to behave similarly.

jdtsmith commented 2 years ago

Closing this for now. Note that previous/next line work normally above the final prompt, so C-c C-a C-b C-b and you can move around like normal.