Skip to content

No way to view full command history #245

Closed

Description

@ikanobori

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.


Activity

  1. ikanobori commented on Jul 4, 2014

    @ikanobori
    ContributorAuthor

    @davesque This is merged now, so bpython-scroll should do this if you install bpython from this repository.


    Original Comment By:

  2. ikanobori commented on Jul 4, 2014

    @ikanobori
    ContributorAuthor

    @davesque If you're interested, you can try it out this new version with

    pip install hg+http://hg.bitbucket.org/thomasballinger/bpython@scroll-frontend
    

    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.


    Original Comment By:

  3. ikanobori commented on Jul 4, 2014

    @ikanobori
    ContributorAuthor

    Ahh, cool. Sounds like I should just wait for that.


    Original Comment By: David Sanders

  4. ikanobori commented on Jul 4, 2014

    @ikanobori
    ContributorAuthor

    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:

  5. ikanobori commented on Jul 4, 2014

    @ikanobori
    ContributorAuthor

    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

  6. ikanobori commented on Jul 4, 2014

    @ikanobori
    ContributorAuthor

    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:

  7. thomasballinger commented on Jul 19, 2014

    @thomasballinger
    Member

    Since we haven't heard I'm assuming this is covered by normal scrolling in bpython-curtsies.

  8. mariomelofilho commented on Apr 10, 2024

    @mariomelofilho

    On on a linux shell prompt(outside bpython)

    cat ~/.pythonhist

    as a workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions