dtsearch icon indicating copy to clipboard operation
dtsearch copied to clipboard

Column alignment broken with some emojis

Open danvk opened this issue 4 years ago • 0 comments

 DLS POP NAME                               TYPES     DESCRIPTION                                                  UPDATED
 319     solar-calc                         <bundled> A sunrise/sunset/moonrise/moonset calculator                 2 years ago
 240     suntimes                           <bundled> A tiny library to get the exact date and time in utc for cer a day ago
  90     solarxui                           <bundled> React UI Framework with S.O.L.A.R Design System              6 months ago
  36     ks-astronomy                       <bundled> Astronomical calculations for planetary positions, moon phas 5 months ago
   0     ui-solar                           <bundled> React UI Framework with S.O.L.A.R Design System              7 months ago
   0     solor-ui                           <bundled> React UI Framework with S.O.L.A.R Design System              7 months ago
   0     solar-calc-thetsf                  <bundled> A sunrise/sunset/moonrise/moonset calculator                 2 months ago
1.2k     kollavarsham                       <bundled> Convert Gregorian date to Kollavarsham date and vice versa   7 days ago
  1k     @solarlabru/solarlab-crypto-utils  <bundled> solarlab nodejs crypto utils                                 a year ago
 803     @solarlabru/fabric-chaincode-utils <bundled> [![Build Status](https://travis-ci.org/wearetheledger/fabric 2 months ago
 658     @accera/solar-components           <bundled> Web Components implementation of solar Design System         2 months ago
 655     @accera/solar-components.core      <bundled> Web Components implementation of solar Design System         5 days ago
 548     @bulb/docz-theme-solar             <bundled> > Making documentation simpler, cheaper, pinker ✨. > > -- <c 7 months ago

The ✨on the last line takes up two characters in my terminal (iTerm) but '✨'.length evaluates to 1. Some options are to detect these characters or uses curses to more directly draw text at specific columns.

This whole thread seems somewhat relevant https://github.com/xtermjs/xterm.js/pull/2568

Another solution might be to interact more directly with the terminal, e.g. using blessed.

danvk avatar Mar 29 '20 21:03 danvk