From ab084c1b8bd32c60869673f1ccbe14ecafc37683 Mon Sep 17 00:00:00 2001 From: kailas Date: Tue, 30 Jan 2024 14:23:14 +0530 Subject: [PATCH 1/2] Improve documentation on hyperlink decorations #1437 --- .gitignore | 3 +++ docs/configuration/profiles.md | 9 +++++++-- src/contour/contour.yml | 6 ++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0954cba015..626168cf73 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,6 @@ install-stamp src/contour/ui/RequestPermission.qml src/contour/ui/Terminal.qml src/contour/ui/main.qml + +# Python virtual environment +.venv \ No newline at end of file diff --git a/docs/configuration/profiles.md b/docs/configuration/profiles.md index 220f314425..579e03cb02 100644 --- a/docs/configuration/profiles.md +++ b/docs/configuration/profiles.md @@ -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 diff --git a/src/contour/contour.yml b/src/contour/contour.yml index be56851d01..3e5346d824 100644 --- a/src/contour/contour.yml +++ b/src/contour/contour.yml @@ -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. @@ -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 # -------------- From f5231f0a8547961b3fd7123061a2c04c358517bc Mon Sep 17 00:00:00 2001 From: kailas Date: Tue, 30 Jan 2024 18:28:11 +0530 Subject: [PATCH 2/2] gitignore file ending made correct --- .gitignore | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 626168cf73..90b9a5faf4 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,9 @@ sandbox/** # Linux/KDE .directory +# Python virtual environment +.venv + # debian: dpkg-buildpackage intermediates debian/files debian/tmp/** @@ -60,7 +63,4 @@ install-stamp src/contour/ui/RequestPermission.qml src/contour/ui/Terminal.qml -src/contour/ui/main.qml - -# Python virtual environment -.venv \ No newline at end of file +src/contour/ui/main.qml \ No newline at end of file