startup.nvim icon indicating copy to clipboard operation
startup.nvim copied to clipboard

[Feature Request]Add to headers in Wiki

Open RayZ0rr opened this issue 3 years ago • 2 comments

Describe the solution you'd like Could you add the following to headers section in wiki? I am particularly suggesting this because it has lot of escape sequences.

"                                __                 ",
"   ___     ___    ___   __  __ /\\\\_\\    ___ ___     ",
"  / _ `\\  / __`\\ / __`\\/\\ \\/\\ \\\\/\\ \\  / __` __`\\   ",
" /\\ \\/\\ \\/\\  __//\\ \\_\\ \\ \\ \\_/ |\\ \\ \\/\\ \\/\\ \\/\\ \\  ",
" \\ \\_\\ \\_\\ \\____\\ \\____/\\ \\___/  \\ \\_\\ \\_\\ \\_\\ \\_\\ ",
"  \\/_/\\/_/\\/____/\\/___/  \\/__/    \\/_/\\/_/\\/_/\\/_/ ",

nvim_startup_header

RayZ0rr avatar Feb 21 '22 19:02 RayZ0rr

I wonder if an easier way to do this is to capture the result of figlet -f larry3d -d ~/wherever/you/put/the/figlet/contrib/file neovim then put that into the array. Larry3d is pretty close to your ascii art:

                               __
  ___      __    ___   __  __ /\_\    ___ ___
/' _ `\  /'__`\ / __`\/\ \/\ \\/\ \ /' __` __`\
/\ \/\ \/\  __//\ \L\ \ \ \_/ |\ \ \/\ \/\ \/\ \
\ \_\ \_\ \____\ \____/\ \___/  \ \_\ \_\ \_\ \_\
 \/_/\/_/\/____/\/___/  \/__/    \/_/\/_/\/_/\/_/

Potential downside would be it'd be run every startup. On my machine (thinkpad T420, original CPU, upgraded ssd) it takes 2.23 milliseconds to run (according to time) 0.51ms were user time, 1.8ms were system time.

Lazerbeak12345 avatar Jun 06 '23 18:06 Lazerbeak12345

Alternatively, using multiline strings for each line would not have escape sequences:

❯ lua
Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio
> "hi"
hi
> [[hi]]
hi
> [[h\i]]
h\i

Lazerbeak12345 avatar Jun 06 '23 18:06 Lazerbeak12345