Add horizontal ruler / line / separator

Open
#371 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
frontend

Research direction

The issue describes expanding standalone symbols into full-width separators in settings descriptions and links to an example implementation in Blue-Recipe-Book's DescriptionSeparators.java. Start by reading that example and locating how YetAnotherConfigLib renders description text. Done means standalone symbol lines display as full-width separators while surrounding description text remains readable.

Written by the indexing model from the issue text.

Description

In my own plugin I added a fun little helper that turns any symbol that is alone on it's text line in the description into a full-width version to have a good scaling separator / <hr>

Input string                  In settings description window

"\n---\n"           ->        |----------------------|
"\n%%%%%%\n"        ->        |%%%%%%%%%%%%%%%%%%%%%%|
"\n§1dddddd\n"      ->        |§1dddddddddddddddddddd|


"hello\n\n---\n\nthere   ->   |hello                 |
                              |----------------------|
                              |there                 |

You can find the code here: https://github.com/PhoenixIV/Blue-Recipe-Book/blob/1b326286fba6a1baa074c57f9698447111edee76/common/src/main/java/dev/bluerecipebook/client/DescriptionSeparators.java

Maybe this is something you want to adopt?

It could go even more fanciful, of course, but I did not need that:

"- hi ---"          ->        |-- hi ----------------|
Dominant language
Java
Stars
161
Forks
70
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from isXander/YetAnotherConfigLib

All issues in isXander/YetAnotherConfigLib

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.