1252 Commits

Author SHA1 Message Date
3bc79235f9 2024.1.2-alt1 - Initial build
Some checks failed
Gitlab mirror / Automatic push to gitlab.tiker.net (push) Has been cancelled
CI / Pytest on Py${{ matrix.python-version }} (3.8) (push) Failing after 31s
CI / Pytest on Py${{ matrix.python-version }} (3.9) (push) Failing after 29s
CI / Pytest on Py${{ matrix.python-version }} (3.x) (push) Failing after 40s
CI / Pytest on Py${{ matrix.python-version }} (pypy3.8) (push) Failing after 29s
CI / Typos (push) Failing after 28s
CI / Pylint (push) Failing after 26s
CI / Pytest on Py3.8 (push) Failing after 24s
CI / Pytest on Py3.9 (push) Failing after 22s
CI / Ruff (push) Failing after 44s
CI / Pytest on Py3.x (push) Failing after 18s
CI / Pytest on Pypypy3.8 (push) Failing after 16s
CI / Pytest with Coverage Test (push) Failing after 21s
CI / Documentation (push) Failing after 19s
2024-10-28 17:25:02 +03:00
Andreas Kloeckner
172aa52e35 Bump version to 2024.1.2 2024-07-22 14:24:20 -05:00
Andreas Kloeckner
8a575fbf99 Fix typos, add typos CI 2024-07-22 14:20:22 -05:00
Matt Rixman
b9c873789c Ensuring opened tty file is closed on exit 2024-07-22 14:16:23 -05:00
Matt Rixman
440a5a7108 Fix separate-terminal debugging 2024-07-22 14:16:23 -05:00
Andreas Kloeckner
571ce75d47 Break out of search loop after deleting watch
Flagged by ruff as B909
2024-07-19 14:06:25 -05:00
Andreas Kloeckner
bdfd67f47c Switch to ruff, fix issues 2024-07-11 09:39:12 -05:00
Andreas Kloeckner
e47c406caa Bump version to 2024.1.1 2024-07-10 21:11:33 -05:00
Andreas Kloeckner
1b259f0e05 Gitlab autopush: use script from ci-support 2024-06-07 15:47:18 -05:00
Michael van der Kamp
b0ea4cd391 Catch IndexError on empty Variables state 2024-06-05 10:11:18 -05:00
Andreas Kloeckner
e340f1d087 Redirect pudb warnings to built-in console 2024-04-29 13:12:59 -05:00
dependabot[bot]
edc0a42d03 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-13 14:23:38 -05:00
Alexandru Fikl
c78e5b5f27 ci: add dependabot updates for github actions 2024-04-13 14:13:46 -05:00
Andreas Kloeckner
74a855d9e3 Bump Github actions versions 2024-02-21 17:04:22 -06:00
Andreas Kloeckner
8750410e3b Track some urwid.util deprecations 2024-02-21 17:04:22 -06:00
Andreas Kloeckner
920414fb68 Bump version to 2024.1 2024-01-16 16:07:01 -06:00
Max Arnold
270c7c937f
Add PUDB_RDB_REVERSE var to control reverse mode (#631)
* Add PUDB_RDB_REVERSE var to control reverse mode

* Fix flake8 warnings
2024-01-16 15:57:09 -06:00
Max Arnold
5b7a07fecb
Allow defining term_size via PUDB_TERM_SIZE env var (#629)
* Allow defining term_size via PUDB_TERM_SIZE env var

* Add doc

* Fix flake8 issue

* Describe the terminal size precedence

* Mention the PUDB_RDB_HOST and PUDB_RDB_PORT as well

* Fail on invalid PUDB_TERM_SIZE
2024-01-15 23:03:32 +00:00
Andreas Kloeckner
7b1cb437c7 Adapt to, depend on urwid 2.4 2024-01-05 13:03:15 -06:00
Will Shanks
9f9a6acfc1
Remove dependence on telnetlib which was removed from Python 3.13 (#626)
* Remove dependence on telnetlib which was removed from Python 3.13

Only some constant values were being used so those values were copied
into remote.py instead of being referenced from telnetlib.

* Replace bytes function calls with bytes literals
2023-12-29 15:05:38 -06:00
Andreas Kloeckner
f76189f06d Fix co_lines test for Py 3.10 and 3.11 2023-12-05 09:23:01 -06:00
Andreas Kloeckner
e45c1c5f8b Use co_lines to find executable lines if available 2023-12-05 08:52:14 -06:00
Andreas Kloeckner
8c8f9d4a25 Move tests under pudb module 2023-10-16 12:39:16 -05:00
Andreas Kloeckner
35af7965af Use setuptools.find_packages 2023-10-06 14:00:04 -05:00
Andreas Kloeckner
61c00689fd Bump version to 2023.1 2023-10-06 13:57:28 -05:00
Andreas Kloeckner
340d2a9e24 Add change notes for 2023.1 2023-10-06 13:57:28 -05:00
Michael van der Kamp
5f5a23538c Fix issues caught by flake8 2023-10-06 12:19:57 -05:00
Michael van der Kamp
b707e95e2e Try to bring syntax highlighting more in line with nord themes seen elsewhere 2023-10-06 12:19:57 -05:00
Michael van der Kamp
583d2f8eca Revise UI elements for legibility 2023-10-06 12:19:57 -05:00
Michael van der Kamp
100957f999 Use brighter warning / breakpoint highlights 2023-10-06 12:19:57 -05:00
Michael van der Kamp
4c3ef8754e Use light green for highlight 2023-10-06 12:19:57 -05:00
Michael van der Kamp
fe83e38c17 Define all 16 colours of the nord theme 2023-10-06 12:19:57 -05:00
Michael van der Kamp
51da9ce889 Trim whitespace 2023-10-06 12:19:57 -05:00
jgart
04568fb788 Add nord-256 theme 2023-10-06 12:19:57 -05:00
Michael van der Kamp
1f6ef37cb2 Add a bold highlight to sidebar header when focused 2023-10-06 12:19:57 -05:00
Michael van der Kamp
bbe7cf2a68 Use regular source background for warnings 2023-10-06 12:19:57 -05:00
Michael van der Kamp
fabaf43a61 Add light gray 256 theme 2023-10-06 12:19:57 -05:00
Michael van der Kamp
ce9713a9f4 Give each theme its own file 2023-10-06 12:19:57 -05:00
Michael van der Kamp
9a32430a71 Delay letting '_have_debugger' return True until Debugger is fully initialized 2023-10-06 12:19:57 -05:00
Andreas Kloeckner
7156767757 Fix some pylint warnings 2023-09-24 16:56:23 -05:00
raphTec
55a8d75987 Document shift page up/down 2023-09-17 20:11:02 -05:00
raphTec
82713008e1 Scroll cmdline results on shift page up/down 2023-09-17 20:11:02 -05:00
raphTec
c2b68cea2c Always recall the just executed command on arrow up
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.
2023-09-17 20:11:02 -05:00
raphTec
888c701049 Reword command line help to distinguish history types
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.
2023-09-17 20:11:02 -05:00
raphTec
ea7981bc2a Use arrow keys for command history browsing
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
2023-09-17 20:11:02 -05:00
raphTec
e39ff4029f Restore cmdline text input when browsing history
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.
2023-09-17 20:11:02 -05:00
raphTec
f9ca705b09 Use deque with maxsize for command line history
A deque handles the size limit internally, eliminating some logic in the
debugger itself.
2023-09-17 20:11:02 -05:00
Andreas Kloeckner
b9c19487fa Fix flake8 complaint: use 'is' for type comarisons 2023-08-01 01:03:18 -05:00
Andreas Kloeckner
6739956d73 Unbreak focus setting after gh-603
https://github.com/inducer/pudb/pull/603
2023-05-23 10:52:13 -05:00
Alexandru Fikl
7642bea61c debugger: use urwid option variables 2023-05-13 14:46:01 -05:00