Skip to content

Commit

Permalink
Merge pull request #1439 from saliaku/master
Browse files Browse the repository at this point in the history
Extend hyperlink decoration documentation
  • Loading branch information
christianparpart authored Jan 30, 2024
2 parents 864e725 + f5231f0 commit b610c52
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
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

0 comments on commit b610c52

Please sign in to comment.