Skip to content
  1. Oct 06, 2023
  2. Sep 24, 2023
  3. Sep 18, 2023
    • raphTec's avatar
      Document shift page up/down · 55a8d759
      raphTec authored and Andreas Klöckner's avatar Andreas Klöckner committed
      55a8d759
    • raphTec's avatar
      Scroll cmdline results on shift page up/down · 82713008
      raphTec authored and Andreas Klöckner's avatar Andreas Klöckner committed
      82713008
    • raphTec's avatar
      Always recall the just executed command on arrow up · c2b68cea
      raphTec authored and Andreas Klöckner's avatar Andreas Klöckner committed
      After executing a command, immediatly hitting the arrow up key should
      recall the just executed command again, like in all shells.
      This commit ensures this behavior by clearing out the saved edit text on
      successful command execution.
      
      Previously, it recalled the last saved edit text if set, which is an
      annoying workflow break compared to other shells.
      c2b68cea
    • raphTec's avatar
      Reword command line help to distinguish history types · 888c7010
      raphTec authored and Andreas Klöckner's avatar Andreas Klöckner committed
      There is the
      - command history, which stores previously executed commands
      - result scrollback, which refers to list of shell prompts and their
        results
      
      The latter one was previously called 'command line history'.
      To avoid confusion, this commit introduces a major new term.
      888c7010
    • raphTec's avatar
      Use arrow keys for command history browsing · ea7981bc
      raphTec authored and Andreas Klöckner's avatar Andreas Klöckner committed
      This changes the arow keys from accessing the command line results to
      browsing the command history, as requested by the main developer:
      https://github.com/inducer/pudb/pull/600#issuecomment-1532444371
      ea7981bc
    • raphTec's avatar
      Restore cmdline text input when browsing history · e39ff402
      raphTec authored and Andreas Klöckner's avatar Andreas Klöckner committed
      Text input to the internal command line is now restored and not lost
      after browsing the history. It is designed to behave just like a
      dedicated history item at the end of the history. This matches the
      behavior of readline in most shells.
      For example, writing a command without executing it, then moving up to
      the most recent history item and down again restores the typed command.
      
      The pudb special behavior of clearing the command when moving down from
      the end of the history is also preserved. In that case the text can be
      restored too by moving up in the history again before typing anything
      new.
      This is akin to using Ctrl-C in common shells to clear the current
      command, but with the ability to restore the input again.
      
      Using the clear button which empties the displayed shell history now
      also clears the command input, since it can be easily restored.
      
      This fixes one of my pain points with the internal pudb command line:
      When writing a lengthy command, accidentally hitting Ctrl-N or Ctrl-P
      overwrites the input text field with no possibility to get the content
      back.
      This is particularly bad after using vim's word completion with Ctrl-N
      for an extensive amount of time, and then accidentally hitting the same
      shortcut in pudb instead of tab completion.
      e39ff402
    • raphTec's avatar
      Use deque with maxsize for command line history · f9ca705b
      raphTec authored and Andreas Klöckner's avatar Andreas Klöckner committed
      A deque handles the size limit internally, eliminating some logic in the
      debugger itself.
      f9ca705b
  4. Aug 01, 2023
  5. May 23, 2023
  6. May 13, 2023
  7. Apr 30, 2023
    • raphTec's avatar
      Handle import cycle in _have_debugger() · 9a2ebbb7
      raphTec authored and Andreas Klöckner's avatar Andreas Klöckner committed
      This function may cause an import cycle when it is called during early
      startup.
      Specifically, during import of debugger.py, the settings are loaded.
      Exceptions during load are forwarded to the logging system, where they
      are handled by TerminalOrStreamHandler. This is turn will call
      _have_debugger() to determine whether to display an UI dialog.
      The function attempts to import debugger.py, completing the import cycle.
      9a2ebbb7
  8. Apr 26, 2023
  9. Mar 13, 2023
  10. Mar 06, 2023
  11. Jan 10, 2023
  12. Jan 04, 2023
    • Aaron Meurer's avatar
      Implement jump command (#306) · be3aa5ee
      Aaron Meurer authored
      
      
      * Start implementing jump command
      
      Right now it doesn't stop on the line (like t), which would be ideal. I can't
      figure out how to make it do that. pdb's j does it, so it should be possible.
      
      It also isn't documented or heavily tested yet.
      
      See issue #129.
      
      * Fix function name that has changed
      
      * Fix the jump command
      
      We need to update the UI manually as end() will run past the current line.
      Also, setting a temporary breakpoint is unnecessary.
      
      * Fix keyboard help for jump
      
      * Fix flake8 issues
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      be3aa5ee
  13. Jan 03, 2023
  14. Jan 01, 2023
  15. Nov 20, 2022
  16. Nov 07, 2022
  17. Nov 03, 2022
  18. Oct 30, 2022
  19. Oct 14, 2022
  20. Oct 13, 2022
    • Aaron Meurer's avatar
      Fix the midnight theme (#508) · 845f8214
      Aaron Meurer authored
      * Revert "Remaster midnight theme for hierarchical styles"
      
      This reverts commit c7a8fbb0.
      
      * Clean up some of the colors in the midnight theme
      
      - Add some colors for some extra Python tokens
      - Make the current line easier to see
      - Add back the link() calls from the reverted c7a8fbb0 (although I'm unsure
        what they do)
      
      * Make the command line not bold in the midnight theme
      
      * Use the default text color in the midnight theme
      
      The theme claims to be best with green text, so we also use white instead of
      green for the comment color.
      
      * More cleanups to the midnight theme
      
      - Make the highlighted line always blue instead of green
      - Fix some color combinations that were hard to read
      - Be consistent about highlighted and active things in the sidebar. Active is
        bold, highlighted is blue background, disabled is gray. In the variables
        view green (and lighter green for highlighted) is used for highlighted
        variables.
      - Use lighter and darker yellow (actually brown and yellow) for the current
        line highlighted and not highlighted.
      - Make the sidebars lighter when selected
      - Make the hotkeys italics as well as underlined, since the underline is very
        hard to see
      
      Some issues:
      
      - The bold dark gray for disabled highlighted breakpoints is just showing as
        bold white. Don't know if that's a bug in my terminal or a bug in urwid, or
        if they really do just look the same.
      - The hotkey letter in the highlighted pane does not change. Should there be a
        "focused hotkey" color?
      
      * Fix flake8 issues
      
      * Make some changes to the midnight theme from the review by @mvanderkamp
      
      * Use light green as the main color for midnight instead of dark green
      
      * Color operators in dark green in the midnight theme
      
      * Some tweaks to the midnight theme based on review
      
      * Get rid of some redundant settings in the midnight theme
      845f8214
  21. Oct 03, 2022