Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes and improvements for the CLI and TUI #56

Merged
merged 10 commits into from
Jun 23, 2022
Merged

Commits on Jun 20, 2022

  1. [cli] Improved startup and interruption handling

    - Fix: Directory checking in non-multiprocessing mode now ends immediately, upon interruption.
    - Fix: Queues used by getter, opener and checker threads/subprocesses are now purged upon interruption.
      - Eliminates deadblocks that used to occur sometimes.
    - Fix: Upon interruption while processing sources, getter, opener and checker threads are always joined to ensure logs are in the correct order.
    - Fix: Corrected typos in comments.
    - Change: `.cli.check_dir()` now returns immediately, upon interruption, when running in any non-main thread of the main process.
    - Change: Delayed startup of getter, opener and checker threads/subprocesses.
      - Each group is not started until a related source is encountered.
      - Significantly reduces startup time when multiprocessing is enabled.
    - Change: Moved `.tui.render.clear_queue()` to `.utils.clear_queue()`.
    AnonymouX47 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    40edb79 View commit details
    Browse the repository at this point in the history
  2. [tui] Fixed support detection in subprocesses

    - Fix: Eliminated style support detection queries in subprocess.
      - Support is now always enabled and required class attributes are exported.
      - Support detection used to fail at times.
    - Fix: Corrected typo.
    - Add: Added `.logging_multi.exported_style_attrs`.
    - Add: Added `_style_attrs` instance attribute to `.logging_multi.Process`.
    - Change: Removed `_force_style` instance attribute of `.logging_multi.Process`.
    AnonymouX47 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    09609fc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b6b46c8 View commit details
    Browse the repository at this point in the history
  4. [tui] Eliminated some module-scope variables

    - Change: Changed module-scope variables in `.keys` to widget instance attributes.
      - `key_bar_is_collapsed` -> `key_bar._ti_collapsed`.
      - `expand_key_is_shown` -> `expand._ti_shown`.
      - Eliminates use of the `global` keyword.
    AnonymouX47 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    5594eb4 View commit details
    Browse the repository at this point in the history
  5. [cli,tui] Improved config error handling

    - Fix: Handled all errors when loading and storing user config.
    - Fix: Handled errors when backing up previous user config during update.
      - The config file is not overwritten when backup fails.
    - Fix: Fixed string interpolation in fatal message.
    - Change: No longer writing config file immediately after updating since it'll still be stored later.
    - Change: Changed color of error and fatal messages.
    - Change: Updated docstrings and comments.
    AnonymouX47 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    644e14f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    209b8c5 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. Merge branch 'main'

    Conflicts:
    	term_image/cli.py
    	term_image/logging_multi.py
    AnonymouX47 committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    b8c45aa View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2022

  1. [tui] Fixed redrawing after resize on Konsole

    - Fix: 'kitty' and 'iterm2' images no longer disappear when vertically resizing Konsole.
      - Was due to the fact that SIGWINCH is rapidly and consistently sent to the process, trigerring rapid redraws.
    - Fix: Corrected the names of some "private" `GridListbox` instance attributes.
    AnonymouX47 committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    69c4c25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1bda0ae View commit details
    Browse the repository at this point in the history
  3. Merge branch 'main'

    Conflicts:
    	CHANGELOG.md
    AnonymouX47 committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    d41d855 View commit details
    Browse the repository at this point in the history