Giter VIP home page Giter VIP logo

st-undercurl's Introduction

A patch for ST (Simple Terminal) adding support for curly and colored underlines.

Screenshots | Installation Style

platforms license
issues size starts

Screenshots

terminal neovim lsp terminal terminal

Installation

Install like any other patch. Go into the source directory of ST, and run the following command:

patch < ../st-undercurl-0.8.4-20210424.diff

Then build it:

make

For installation, you either use Make (recommended):

make install

And you're done!

Or any other method, but in this case, you HAVE to update the TermInfo database of your system, to let terminal programs (Like Vim and such) know that ST supports special underlines. You do this with the following command:

tic -sx st.info

Style

You can choose between three different curly underline styles:

Curly: style curly

Spiky: style spiky

Capped: style capped

To change the style, edit the config.def.h file, it looks like this:

// Available styles
#define UNDERCURL_CURLY 0
#define UNDERCURL_SPIKY 1
#define UNDERCURL_CAPPED 2
// Active style
#define UNDERCURL_STYLE UNDERCURL_CAPPED

Just modify UNDERCURL_STYLE to one of the three available styles.

st-undercurl's People

Contributors

derriche-massinissa avatar vyuun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

st-undercurl's Issues

Weird look

thing
Left: Alacritty
Right: st
I think it looked better on the screenshots provided in the repo. I first thought it might be because of antialias and autohint but it's the same with them enabled and disabled. The font is a nerd font patched Cascadia Code.

Request: Other underline styles

Hello, i was wondering if you could add (saddly i don't have any C skill) other underline styles (dots, dashes and double-line) to this package

Change Undercurl Style

Is there a way to change the style of the curlies? They are kinda ugly. I'd prefer them to be like elongated w's or v's (vvvvvvvvv).

EDIT: I just noticed the squigglies are being drawn manually, I'll take a shot at it this week if I find time!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.