You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, there doesn't appear to be a way to view your command history beyond the output of the most recent command.
Would it be difficult to add a configuration option to display the entire command history in the pager? Or perhaps that functionality could be bound to another key?
I would think that a lot of people could get some use out of this.
and then using bpython-scroll instead of bpython.
It'd be useful to get feedback about if this covers what you wanted, or you'd like something else. I've got a merge request in now, but there'll still be plenty to add/change if it gets merged.
Ah, got it. I agree, this would be really useful. I'm currently working on an alternative bpython frontend (https://bitbucket.org/thomasballinger/bpython/src/8255820c355de0fb032cc763ba4bec3c0ba8d53f?at=scroll-frontend) instead to solve this problem (which allows native terminal scrolling), so won't work on this for now, but I bet a patch might be accepted. If you want a temp fix, the bpython-urwid frontend has this now - pageup and pagedown scroll the window. The scroll frontend could also be used (and I'd appreciate the testing!) but you'd be missing some features (like raw_input) at the moment.
The pager only displays the output of the last command. Currently, if you want to see the entire history of your bpython session, you have to save it into a file first. I'm wanting a configuration option that allows you to say you want the entire bpython session history in the pager, not just the last command's output.
Activity
ikanobori commentedon Jul 4, 2014
@davesque This is merged now, so
bpython-scrollshould do this if you install bpython from this repository.Original Comment By:
ikanobori commentedon Jul 4, 2014
@davesque If you're interested, you can try it out this new version with
and then using
bpython-scrollinstead ofbpython.It'd be useful to get feedback about if this covers what you wanted, or you'd like something else. I've got a merge request in now, but there'll still be plenty to add/change if it gets merged.
Original Comment By:
ikanobori commentedon Jul 4, 2014
Ahh, cool. Sounds like I should just wait for that.
Original Comment By: David Sanders
ikanobori commentedon Jul 4, 2014
Ah, got it. I agree, this would be really useful. I'm currently working on an alternative bpython frontend (https://bitbucket.org/thomasballinger/bpython/src/8255820c355de0fb032cc763ba4bec3c0ba8d53f?at=scroll-frontend) instead to solve this problem (which allows native terminal scrolling), so won't work on this for now, but I bet a patch might be accepted. If you want a temp fix, the bpython-urwid frontend has this now - pageup and pagedown scroll the window. The scroll frontend could also be used (and I'd appreciate the testing!) but you'd be missing some features (like raw_input) at the moment.
Original Comment By:
ikanobori commentedon Jul 4, 2014
The pager only displays the output of the last command. Currently, if you want to see the entire history of your bpython session, you have to save it into a file first. I'm wanting a configuration option that allows you to say you want the entire bpython session history in the pager, not just the last command's output.
Original Comment By: David Sanders
ikanobori commentedon Jul 4, 2014
Do you mean history of commands, command outputs, or both? How is what you'd like different from what the pager currently does?
Original Comment By:
thomasballinger commentedon Jul 19, 2014
Since we haven't heard I'm assuming this is covered by normal scrolling in bpython-curtsies.
mariomelofilho commentedon Apr 10, 2024
On on a linux shell prompt(outside bpython)
cat ~/.pythonhistas a workaround