Ideal column widths in lessless --quit-if-one-screen without --no-initCan I use the mouse to properly select...

Bypass with wrong cvv of debit card and getting OTP

How did Einstein know the speed of light was constant?

What's the big deal about the Nazgûl losing their horses?

How can power levels matter in a magic system that emphasizes control?

Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?

What is the difference between a historical drama and a period drama?

Who pays for increased security measures on flights to the US?

What instances can be solved today by modern solvers (pure LP)?

Has there ever been a cold war other than between the U.S. and the U.S.S.R.?

Do intermediate subdomains need to exist?

Sleepy tired vs physically tired

Data normalization before or after train-test split?

What does this value mean in a BJT datasheet?

Term for a character that only exists to be talked to

Advice for making/keeping shredded chicken moist?

How can I effectively map a multi-level dungeon?

Why did C++11 make std::string::data() add a null terminating character?

Was Wolfgang Unzicker the last Amateur GM?

Using Sed to add counter to keyword

How might boat designs change in order to allow them to be pulled by dragons?

How to calculate a conditional PDF in mathematica?

Speeding up thousands of string parses

What is meaning of 4 letter abbreviations in Roman names like Titus Flavius T. f. T. n. Sabinus?

About opening an LLC with little to report in the beginning



Ideal column widths in less


less --quit-if-one-screen without --no-initCan I use the mouse to properly select text in less?Can 'less -F' be usefully combined with termcap initialization?Is there a way for “less” to truncate lines and still exit after < 1 screen?How to configure `less` to print starting from the top of terminal window?awk / sed / etc. concatenating colums in one fileHow do I add multiple “+” commands into less from the command lineHow to configure less to read non-displayed data into a buffer?less -S not workingautomatically quit less after a short time






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















Is there a way to emulate/improve on the behavior of BSD's column -t in less? i.e. to set the value of less -x/--tabs=... automatically so that each column is 2 characters wider than the widest encountered value in this column?










share|improve this question


















  • 3





    Why not column -t ... | less?

    – Arkadiusz Drabczyk
    Apr 26 '17 at 19:55











  • This is what I'm currently doing, but native support would be more practical, if it exists

    – n.caillou
    Apr 26 '17 at 23:50











  • Why do you think it would be more practical? I don't think so. In Unix there should be many small programs doing simple things and doing complex things together.

    – Arkadiusz Drabczyk
    Apr 27 '17 at 14:17











  • This is entirely a matter of opinion, but I don't think that vi, emacs or even nano are simple at all. I would argue that less is already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick with head, tail & sed.

    – n.caillou
    Apr 27 '17 at 16:09








  • 1





    I know it's a matter of opinion, I expressed mine. Now, if you think that less should have this option nothing stops you from adding it and sending a patch to the maintainers.

    – Arkadiusz Drabczyk
    Apr 27 '17 at 16:22


















0















Is there a way to emulate/improve on the behavior of BSD's column -t in less? i.e. to set the value of less -x/--tabs=... automatically so that each column is 2 characters wider than the widest encountered value in this column?










share|improve this question


















  • 3





    Why not column -t ... | less?

    – Arkadiusz Drabczyk
    Apr 26 '17 at 19:55











  • This is what I'm currently doing, but native support would be more practical, if it exists

    – n.caillou
    Apr 26 '17 at 23:50











  • Why do you think it would be more practical? I don't think so. In Unix there should be many small programs doing simple things and doing complex things together.

    – Arkadiusz Drabczyk
    Apr 27 '17 at 14:17











  • This is entirely a matter of opinion, but I don't think that vi, emacs or even nano are simple at all. I would argue that less is already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick with head, tail & sed.

    – n.caillou
    Apr 27 '17 at 16:09








  • 1





    I know it's a matter of opinion, I expressed mine. Now, if you think that less should have this option nothing stops you from adding it and sending a patch to the maintainers.

    – Arkadiusz Drabczyk
    Apr 27 '17 at 16:22














0












0








0








Is there a way to emulate/improve on the behavior of BSD's column -t in less? i.e. to set the value of less -x/--tabs=... automatically so that each column is 2 characters wider than the widest encountered value in this column?










share|improve this question














Is there a way to emulate/improve on the behavior of BSD's column -t in less? i.e. to set the value of less -x/--tabs=... automatically so that each column is 2 characters wider than the widest encountered value in this column?







command-line less






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 26 '17 at 19:47









n.cailloun.caillou

3192 silver badges6 bronze badges




3192 silver badges6 bronze badges








  • 3





    Why not column -t ... | less?

    – Arkadiusz Drabczyk
    Apr 26 '17 at 19:55











  • This is what I'm currently doing, but native support would be more practical, if it exists

    – n.caillou
    Apr 26 '17 at 23:50











  • Why do you think it would be more practical? I don't think so. In Unix there should be many small programs doing simple things and doing complex things together.

    – Arkadiusz Drabczyk
    Apr 27 '17 at 14:17











  • This is entirely a matter of opinion, but I don't think that vi, emacs or even nano are simple at all. I would argue that less is already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick with head, tail & sed.

    – n.caillou
    Apr 27 '17 at 16:09








  • 1





    I know it's a matter of opinion, I expressed mine. Now, if you think that less should have this option nothing stops you from adding it and sending a patch to the maintainers.

    – Arkadiusz Drabczyk
    Apr 27 '17 at 16:22














  • 3





    Why not column -t ... | less?

    – Arkadiusz Drabczyk
    Apr 26 '17 at 19:55











  • This is what I'm currently doing, but native support would be more practical, if it exists

    – n.caillou
    Apr 26 '17 at 23:50











  • Why do you think it would be more practical? I don't think so. In Unix there should be many small programs doing simple things and doing complex things together.

    – Arkadiusz Drabczyk
    Apr 27 '17 at 14:17











  • This is entirely a matter of opinion, but I don't think that vi, emacs or even nano are simple at all. I would argue that less is already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick with head, tail & sed.

    – n.caillou
    Apr 27 '17 at 16:09








  • 1





    I know it's a matter of opinion, I expressed mine. Now, if you think that less should have this option nothing stops you from adding it and sending a patch to the maintainers.

    – Arkadiusz Drabczyk
    Apr 27 '17 at 16:22








3




3





Why not column -t ... | less?

– Arkadiusz Drabczyk
Apr 26 '17 at 19:55





Why not column -t ... | less?

– Arkadiusz Drabczyk
Apr 26 '17 at 19:55













This is what I'm currently doing, but native support would be more practical, if it exists

– n.caillou
Apr 26 '17 at 23:50





This is what I'm currently doing, but native support would be more practical, if it exists

– n.caillou
Apr 26 '17 at 23:50













Why do you think it would be more practical? I don't think so. In Unix there should be many small programs doing simple things and doing complex things together.

– Arkadiusz Drabczyk
Apr 27 '17 at 14:17





Why do you think it would be more practical? I don't think so. In Unix there should be many small programs doing simple things and doing complex things together.

– Arkadiusz Drabczyk
Apr 27 '17 at 14:17













This is entirely a matter of opinion, but I don't think that vi, emacs or even nano are simple at all. I would argue that less is already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick with head, tail & sed.

– n.caillou
Apr 27 '17 at 16:09







This is entirely a matter of opinion, but I don't think that vi, emacs or even nano are simple at all. I would argue that less is already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick with head, tail & sed.

– n.caillou
Apr 27 '17 at 16:09






1




1





I know it's a matter of opinion, I expressed mine. Now, if you think that less should have this option nothing stops you from adding it and sending a patch to the maintainers.

– Arkadiusz Drabczyk
Apr 27 '17 at 16:22





I know it's a matter of opinion, I expressed mine. Now, if you think that less should have this option nothing stops you from adding it and sending a patch to the maintainers.

– Arkadiusz Drabczyk
Apr 27 '17 at 16:22










1 Answer
1






active

oldest

votes


















0














I use the following command, and it works wonders displaying tabular data. It is saved as a function in my environment, and it can take data from stdin and file paths. I like this feature because, with awk, I can filter out the information I don't care about in large text files and then send it to a reader.



powerReader() { column -t -s$'t' "$@" | less -S; }





share|improve this answer




























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f361499%2fideal-column-widths-in-less%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I use the following command, and it works wonders displaying tabular data. It is saved as a function in my environment, and it can take data from stdin and file paths. I like this feature because, with awk, I can filter out the information I don't care about in large text files and then send it to a reader.



    powerReader() { column -t -s$'t' "$@" | less -S; }





    share|improve this answer






























      0














      I use the following command, and it works wonders displaying tabular data. It is saved as a function in my environment, and it can take data from stdin and file paths. I like this feature because, with awk, I can filter out the information I don't care about in large text files and then send it to a reader.



      powerReader() { column -t -s$'t' "$@" | less -S; }





      share|improve this answer




























        0












        0








        0







        I use the following command, and it works wonders displaying tabular data. It is saved as a function in my environment, and it can take data from stdin and file paths. I like this feature because, with awk, I can filter out the information I don't care about in large text files and then send it to a reader.



        powerReader() { column -t -s$'t' "$@" | less -S; }





        share|improve this answer















        I use the following command, and it works wonders displaying tabular data. It is saved as a function in my environment, and it can take data from stdin and file paths. I like this feature because, with awk, I can filter out the information I don't care about in large text files and then send it to a reader.



        powerReader() { column -t -s$'t' "$@" | less -S; }






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 12 mins ago









        muru

        40.9k5 gold badges99 silver badges172 bronze badges




        40.9k5 gold badges99 silver badges172 bronze badges










        answered 15 mins ago









        juanmonroynietojuanmonroynieto

        34 bronze badges




        34 bronze badges






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f361499%2fideal-column-widths-in-less%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

            The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

            Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...