ipython / ipython/ipython

[Feature Request] Vertical alignment of interpreter input in terminal

Đang mở
#12,773 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
16.8k
Fork
4.5k
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
6

Mô tả

Hi,

I wonder if there's an option in IPython for centering the REPL input (`>>> `) in the middle, so that it's easier to show things during screen casting. This is especially useful when terminal is set to fullscreen, because the input would stay at the middle instead of the bottom.

Example of such functionality can be seen in vim when one sets the `scrolloff` to high value. I've recorded short video which hopefully shows that clearly: https://asciinema.org/a/384896

This functionality could be enabled as a magic command `%scrolloff middle` or something similar. I am also willing to implement that if no such thing exists already, but I would need some hints.

Thanks!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.