Score:0

Visually align columns when displaying a CSV file in notepadqq

cn flag
s.k

In notepadqq (v2.0.0-beta+git), how could I force columns to have an optimized (automatic based on file content) fixed width when displaying a CSV file?

I want to do that so that every "column" is visually aligned, even so there may be lot of free space in some row, and for the position of the end of each line to be at the same place.

e.g. from:

a,b,c,some stuff,"some, other, stuff",d
y,x,z,t,cool,thing

to:

a, b, c, some stuff,"some, other, stuff",     d<EOL>
y, x, z,          t,                cool, thing<EOL>

Notice: I do have plenty of fields containing text and having commas. They are normally double quoted.

--

Ubuntu 22.04.2 LTS

Bodo avatar
pt flag
see https://stackoverflow.com/q/51471554/10622916
s.k avatar
cn flag
s.k
Not working: `bash: column: command not found`
Bodo avatar
pt flag
Using your favourite search engine might help. Proposed search string ["ubuntu column"](https://www.google.com/search?q=ubuntu+column). This way you could find https://manpages.ubuntu.com/manpages/jammy/man1/column.1.html
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.