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

Extend hyperlink decoration documentation #1439

Merged
merged 3 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ sandbox/**
# Linux/KDE
.directory

# Python virtual environment
.venv

# debian: dpkg-buildpackage intermediates
debian/files
debian/tmp/**
Expand All @@ -60,4 +63,4 @@ install-stamp

src/contour/ui/RequestPermission.qml
src/contour/ui/Terminal.qml
src/contour/ui/main.qml
src/contour/ui/main.qml
9 changes: 7 additions & 2 deletions docs/configuration/profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,15 +434,20 @@ profiles:

With this, the terminal will use the color scheme as specified in `dark` when OS dark mode is on,
and `light`'s color scheme otherwise.



### `hyperlink_decoration:`
section in the configuration file allows you to configure the styling and colorization of hyperlinks when they are displayed in the terminal and when they are hovered over by the cursor.

Possible values: underline, dotted-underline, double-underline, curly-underline, dashed-underline, overline, crossed-out, framed, encircle (if implemented)

``` yaml
profiles:
profile_name:
hyperlink_decoration:
normal: dotted
hover: underline
hover: underline

```

## Default profile
Expand Down
6 changes: 6 additions & 0 deletions src/contour/contour.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ renderer:
#
# This does not include direct mapped tiles (US-ASCII glyphs,
# cursor shapes and decorations), if tile_direct_mapping is set to true).
#
#
# Value must be at least as large as grid cells available in the terminal view.
# This value is automatically adjusted if too small.
Expand Down Expand Up @@ -516,10 +517,15 @@ profiles:
light: default
dark: default


# Hyperlinks (via OSC-8) can be stylized and colorized on hover.
# Possible values: underline, dotted-underline, double-underline, curly-underline,
# dashed-underline, overline, crossed-out, framed, encircle (if implemented)
hyperlink_decoration:
normal: dotted
hover: underline



# Color Profiles
# --------------
Expand Down
Loading