Skip to content

Add plain text support - #1579

Merged
o2sh merged 2 commits into
o2sh:mainfrom
Kajiih:add-plain-text
Jun 7, 2025
Merged

o2sh merged 2 commits into
o2sh:mainfrom
Kajiih:add-plain-text

Conversation

@Kajiih

@Kajiih Kajiih commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

Discussed here: #1578
I chose white chip because there is no color in linguist.

ASCII art looks like this in my terminal:
image

I found that white was a bit too aggressive, so I picked a darker shade.

I also tried this, but it's pretty small:
Screen Shot 2025-06-06 at 01 49 38

Feel free to edit anything!

@o2sh

o2sh commented Jun 6, 2025 •

Copy link
Copy Markdown
Owner

Since there’s no logo for this, we can be creative. Here’s a suggestion for ASCII art that suggests “plain text”:

image

  ascii: |
    {0} -----------------
    {0}| ! " # $ % & ' ( |
    {0}| ) * + , - . / 0 |
    {0}| 1 2 3 4 5 6 7 8 |
    {0}| 9 : ; < = > ? @ |
    {0}| A B C D E F G H |
    {0}| I J K L M N O P |
    {0}| Q R S T U V W X |
    {0}| Y Z [ \ ] ^ _ ` |
    {0}| a b c d e f g h |
    {0}| i j k l m n o p |
    {0}| q r s t u v w x |
    {0}| y z { | } ~     |
    {0} -----------------
  colors:
    ansi:
      - white

@Kajiih

Kajiih commented Jun 6, 2025

Copy link
Copy Markdown
Contributor Author

I think it does a good job at suggesting plain text!

@o2sh

o2sh commented Jun 7, 2025

Copy link
Copy Markdown
Owner

maybe something less random :

image

  ascii: |
    {0} -----------------
    {0}| .txt ========== |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0}|                 |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0} -----------------
  colors:
    ansi:
      - white

@Kajiih

Kajiih commented Jun 7, 2025 •

Copy link
Copy Markdown
Contributor Author

I experimented with some variations of this, I think my favorite is something like:

  ascii: |
    {0} -----------------
    {0}| .txt ========== |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0}| ============    |
    {0}|                 |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0}| =============== |
    {0} -----------------
  colors:
    ansi:
      - white

@o2sh

o2sh commented Jun 7, 2025

Copy link
Copy Markdown
Owner

Ok, you can commit it and I'll approve the PR

@o2sh
o2sh merged commit 72532f0 into o2sh:main Jun 7, 2025
@o2sh o2sh added the feat label Jul 5, 2025
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Jul 6, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [o2sh/onefetch](https://github.com/o2sh/onefetch) | minor | `2.24.0` -> `2.25.0` |

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>o2sh/onefetch (o2sh/onefetch)</summary>

### [`v2.25.0`](https://github.com/o2sh/onefetch/releases/tag/2.25.0)

[Compare Source](o2sh/onefetch@2.24.0...2.25.0)

<!-- Release notes generated using configuration in .github/release.yml at main -->

#### What's Changed

##### New Features

- add language support for Lean by [@&#8203;Kajiih](https://github.com/Kajiih) in o2sh/onefetch#1579
- support repos "without source code" by [@&#8203;o2sh](https://github.com/o2sh) in o2sh/onefetch#1580

##### Chores

- improve error handling by [@&#8203;Mahdiglm](https://github.com/Mahdiglm) in o2sh/onefetch#1560

##### Bug Fixes

- remove extra line break by [@&#8203;o2sh](https://github.com/o2sh) in [`886d942`](o2sh/onefetch@886d942)

#### New Contributors

- [@&#8203;Mahdiglm](https://github.com/Mahdiglm) made their first contribution in o2sh/onefetch#1560
- [@&#8203;Kajiih](https://github.com/Kajiih) made their first contribution in o2sh/onefetch#1579

**Full Changelog**: o2sh/onefetch@2.24.0...2.25.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:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->

This branch was successfully deployed

1 active deployment
Preview — 023b13f3 Deployed Jun 7, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants