Fork me on GitHub
#clojure-europe
<
2022-07-05
>
otfrom07:07:22

just saw last Friday's episode. yikes!

robert-stuttaford09:07:08

haven't gotten there yet 😅

otfrom10:07:52

I suppose saying "there is drama in an episode" is hardly a spoiler 🙂

robert-stuttaford04:07:49

@borkdude thank you for tweeting about editor = emacs -Q - my life has gotten a lot better 😄

🎉 2
borkdude05:07:55

And thanks to @U050SC7SV

gratitude 2
🙇 1
genRaiy09:07:47

Good morning duckies

❤️ 6
maleghast10:07:51

Madainn mhath

Rachel Westmacott12:07:07

Morning all!

👋 3
1
reefersleep14:07:11

Any vim or nvim users here? I’m seeing a bunch of annoying characters when piping stuff into nvim (and even less). Like so:

git help branch |nvim

GIT-BRANCH(1)                     Git Manual                     GIT-BRANCH(1)



NNAAMMEE
       git-branch - List, create, or delete branches

SSYYNNOOPPSSIISS
       _g_i_t _b_r_a_n_c_h [--color[=<when>] | --no-color] [--show-current]
               [-v [--abbrev=<n> | --no-abbrev]]

... and so on

lispyclouds14:07:37

its to do with the highlighting and making things bold etc in man pages than to do with nvim/vim. try git help branch | col -b | nvim

lispyclouds14:07:39

col -b would remove all the weird stuff you're not supposed to see as a visible char 😄

reefersleep09:07:11

thanks a bunch, @U7ERLH6JX! I wonder if there’s a vim/nvim setting that can do something similar, so that I can just have it in my .vimrc (or whatever the nvim equivalent is)

reefersleep09:07:51

The col -b invocation also seems a bit arcane for removing text decoration :face_with_monocle:

reefersleep09:07:12

omg… the explanation for bolding with ^H is so interesting

reefersleep09:07:28

The effect you're seeing here is called overstruck characters and it comes from the days when computers would be connected to line printers rather than screens. Man pages were created early in the Unix days and are typeset with a program named nroff (which has roots that predate even Unix) that uses these sequences to encode its text decorations, even to this day.

So one way to make text bold (or, print it stronger) was to print a letter, back out one space, then print it again. In your example, N^HNA^HAM^HME^HE is being used to print the word NAME in bold.

reefersleep09:07:56

Hm, the +MANPAGER option is not available in Neovim. Too bad.

lispyclouds10:07:24

@U0AQ3HP9U try nvim +Man not +MANPAGER?

reefersleep10:07:52

Doesn’t work either @U7ERLH6JX

lispyclouds10:07:08

export MANPAGER='nvim +Man!' seems to work

lispyclouds10:07:29

then do git help branch or some other man cmd

lispyclouds10:07:32

or git help branch | nvim +Man! -

reefersleep10:07:29

ahhhh you’re right! Thank you so much, @U7ERLH6JX!

reefersleep10:07:48

Why use anything Less than Vim 😅

lispyclouds10:07:36

yeah when in (n)vim, unix pipe your way out of your problems 😉

lispyclouds10:07:29

i didnt use it for manpages this way til now, mostly ran :Man foo from nvim

reefersleep10:07:39

I’m going for the export in a .bash file, because why not.

reefersleep10:07:05

I usually only visit nvim briefly, like a ninja in the night

reefersleep10:07:14

I know you can live there, but I haven’t dared

lispyclouds10:07:47

well its more than that for me now, part of my identity almost 😛

lispyclouds10:07:43

have this whole curated, <20ms startup, clojure biased lua conf now 😎

reefersleep10:07:55

When it comes to text editing in nvim, I’m the most knowledgable person that I know of, and I apply that knowledge wherever I can (shoving vim into whatever orifices other applications will allow me to, or, better, showing other stuff into vim)

reefersleep10:07:27

But I’ve been scared off of using an editor as more than an editor

reefersleep10:07:42

Or, well, enough that I haven’t bothered making the effort yet

lispyclouds10:07:17

check out https://github.com/lispyclouds/dotfiles if that serves as a staring point 😛 WARNING: bit opinionated

reefersleep10:07:28

It’s also to do with portability. I like using close to bare bones stuff, so that I can do the same on pretty much any other unix env that my fingers happen upon.

reefersleep10:07:08

Looks interesting, though 🙂

reefersleep10:07:18

I tried installing yabai, but had no luck, even with concerted effort. (That’s also a reason I haven’t dared; I’m really tired of spending time trying to fix config/install issues. I just want to work, with stuff that just works 🙂 )

lispyclouds10:07:20

yeah i too like the bare bones stuff too, kept the "text editing" bit same for nvim. vim. vi. difference starts showing up when you open some code file 😛

🧠 1
lispyclouds10:07:34

its a massive time suck (hey, time wasted enjoying isnt wasted 😛 ) but quite like the fact that after a while its pretty much an extension of your brain, not much thinking

reefersleep14:07:51

hm, it’s not pasting everything. E.g. the line with synopsis is like so:

Ivar Refsdal19:07:51

Hello Clojure boat 🙃

🙂 7
otfrom20:07:49

That's just 3 boats in a trenchcoat