Skip to content

Conversation

noborus
Copy link
Owner

@noborus noborus commented Mar 18, 2025

This commit modifies the terminal output behavior of the pager. Previously, the terminal output was limited to the original text content. Now, it outputs the processed content displayed on the pager, including features like search highlights.

Key changes:

  • Added functionality to toggle between outputting the original text and the processed screen content.
  • Implemented a dummy screen rendering for cases where the content fits within the terminal, ensuring consistent processing.
  • Changed the default behavior to output the processed screen content. Users can switch to the original text output via a toggle key or configuration.

Notes:

  • Users who prefer the original text output must update their configuration.
  • The output now uses ANSI escape sequences for styling. Terminals that do not support certain sequences may display content incorrectly.

Closes #684.

noborus added 3 commits March 18, 2025 11:48
This commit modifies the terminal output behavior of the pager.
Previously, the terminal output was limited to the original text content.
Now, it outputs the processed content displayed on the pager, including
features like search highlights.

Key changes:
- Added functionality to toggle between outputting the original text and
  the processed screen content.
- Implemented a dummy screen rendering for cases where the content fits
  within the terminal, ensuring consistent processing.
- Changed the default behavior to output the processed screen content.
  Users can switch to the original text output via a toggle key or
  configuration.

Notes:
- Users who prefer the original text output must update their configuration.
- The output now uses ANSI escape sequences for styling. Terminals that do
  not support certain sequences may display content incorrectly.

Closes #684.
@noborus noborus merged commit c3ad115 into master Mar 20, 2025
8 checks passed
@noborus noborus deleted the output-with-style branch March 26, 2025 02:48
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request May 10, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [noborus/ov](https://github.com/noborus/ov) | minor | `v0.39.0` -> `v0.40.1` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>noborus/ov (noborus/ov)</summary>

### [`v0.40.1`](https://github.com/noborus/ov/releases/tag/v0.40.1)

[Compare Source](noborus/ov@v0.40.0...v0.40.1)

#### What's Changed

-   fix: [#&#8203;760](noborus/ov#760) Do not apply old style settings when Style is blank by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#761

**Full Changelog**: noborus/ov@v0.40.0...v0.40.1

### [`v0.40.0`](https://github.com/noborus/ov/releases/tag/v0.40.0)

[Compare Source](noborus/ov@v0.39.0...v0.40.0)

Please use [v0.40.1](https://github.com/noborus/ov/releases/tag/v0.40.1) as there is a bug.

#### What's Changed

-   Add styled terminal output with toggleable raw text option by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#731. Resolves issue [#&#8203;684](noborus/ov#684) Thanks to [@&#8203;morenathan](https://github.com/morenathan)
-   Add `-m` as a short option for `--view-mode` by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#734. Resolves issue [#&#8203;733](noborus/ov#733) Thanks to [@&#8203;Jaykul](https://github.com/Jaykul)
-   Add `--list-view-modes` option by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#736
-   make minStartX configurable with default value 0 by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#742 This fix is ​​related to issue [#&#8203;739](noborus/ov#739). Thanks to [@&#8203;hupfdule](https://github.com/hupfdule)
-   Change Style config to general/Style/ by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#743
-   Added clipboard via osc52 by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#748 This resolves issue [#&#8203;747](noborus/ov#747) Thanks to [@&#8203;cstrahan](https://github.com/cstrahan)
-   Changed cbind url because it has moved to codeberg.org/tslocum/cbind by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#758 This fix is ​​related to pull request [#&#8203;757](noborus/ov#757). Thanks to [@&#8203;wreedb](https://github.com/wreedb)

**Full Changelog**: noborus/ov@v0.39.0...v0.40.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4xMS4yIiwidXBkYXRlZEluVmVyIjoiNDAuMTEuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Style" lost with "quit if one screen" option used
1 participant