[{"data":1,"prerenderedAt":302},["ShallowReactive",2],{"project-30150219":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":18,"aspects":36,"strip":43,"post_text":45,"what":46,"said":79,"maker_in_thread":177,"shape":187,"grid":191,"attempts":265,"same_week":266,"maker_shows":256,"maker_hidden":294,"reader_version":295,"card":296},"30150219","Rich-CLI","A CLI toolbox for highlighting, Markdown, JSON and rich text","title","Show HN: Rich-CLI – A CLI toolbox for highlighting, Markdown, JSON and rich text","https:\u002F\u002Fgithub.com\u002FTextualize\u002Frich-cli","github.com","willm",1643648179,2022,126,33,488,2570,19,"notable","dev_tools","terminal output renderer","cli",[24,25,26,27,28],"terminal rendering","syntax highlighting","markdown cli","json highlighting","python rich","mixed",0.282,{"positive":32,"neutral":33,"mixed":34,"critical":35},10,4,2,3,{"idea":37,"docs":38,"execution":40,"design":41},{"positive":35,"critical":35},{"positive":39,"critical":39},0,{"positive":39,"critical":39},{"positive":42,"critical":39},1,[39,35,39,42,39,35,39,35,44,44,39,44,44,44,39,35,39,44,44,42,42,35,44,39,44,39,39,39,39,39,44,35,39],5,null,{"problem":47,"audience":54,"pricing":45,"motivation":58,"time_to_build":45,"stack":62,"openness":77,"stage":78,"team_size":77},{"value":48,"source":49,"evidence":50},"Rendering highlighted code, Markdown, JSON and styled text in the terminal","maker",[51],{"id":52,"by":11,"text":53},"30150433","Hi HN, This is a command line tool I’ve been working on for rendering various types of content in the terminal. The core functionality is syntax highlighting with line numbers…",{"value":55,"source":49,"evidence":56},"Developers working in the terminal",[57],{"id":52,"by":11,"text":53},{"value":59,"source":49,"evidence":60},"Versatile tool for developers, built over a weekend with Rich",[61],{"id":52,"by":11,"text":53},[63,67,71],{"value":64,"source":49,"evidence":65},"Python",[66],{"id":52,"by":11,"text":53},{"value":68,"source":49,"evidence":69},"Rich library",[70],{"id":52,"by":11,"text":53},{"value":72,"source":49,"evidence":73},"Click",[74],{"id":75,"by":11,"text":76},"30155841","That’s right. I would usually reach for Typer for CLIs. I chose Click because I wanted to extend the —-help and I wasn’t certain If Typer exposed the internals.","unknown","launched",{"praise":80,"objections":108,"requests":127,"questions":149,"alternatives":164},[81,93],{"value":82,"source":83,"evidence":84},"Useful for scripts and replacing cat","commenter",[85,89],{"id":86,"by":87,"text":88},"30151766","simonw","I really like the potential this has to add more compelling output to simple shell scripts: ``` #!\u002Fbin\u002Fbash rich \"Starting process\" --rule --rule-style \"red\" # ... do some stuff…",{"id":90,"by":91,"text":92},"30153984","amanzi","This is great as a general replacement for the `cat` command, especially with the `-n` argument to add line numbers.",{"value":94,"source":83,"evidence":95},"Fans of the Rich library",[96,100,104],{"id":97,"by":98,"text":99},"30160511","blooalien","Bro, you are a Python GOD! I been just loving everything about Rich since I discovered it, and your other Python related tools have been fantastic as well. Permanent parts of my…",{"id":101,"by":102,"text":103},"30162485","stonecharioteer","I remember when you first shared rich. It was so cool. It's been great watching your output increase so quickly Will. Thanks for all the hard work. Does this support paging? I…",{"id":105,"by":106,"text":107},"30193155","leonim","Thanks Will for creating Rich. I'm also a big fan of Rich. Are there any plans to make it easy to generate the Rich tables from the command line? Such as from CSV, TSV, JSON\u002FL,…",[109,120],{"value":110,"source":83,"evidence":111},"Overlaps with existing tools like bat and tqdm",[112,116],{"id":113,"by":114,"text":115},"30154252","chme","Looks similar to bat: https:\u002F\u002Fgithub.com\u002Fsharkdp\u002Fbat",{"id":117,"by":118,"text":119},"30152924","pletnes","tqdm already does this. It’s also a python package. https:\u002F\u002Ftqdm.github.io\u002Fdocs\u002Fcli\u002F",{"value":121,"source":83,"evidence":122},"Pipes lose syntax highlighting without a pager",[123],{"id":124,"by":125,"text":126},"30154362","jpm48","One thing that may be nice is a pager mode. If you feed into more or less with a pipe you loose the syntax highlight.",[128,133,139,145],{"value":129,"source":83,"evidence":130},"Built-in pager",[131,132],{"id":101,"by":102,"text":103},{"id":124,"by":125,"text":126},{"value":134,"source":83,"evidence":135},"Git diff rendering",[136],{"id":137,"by":118,"text":138},"30152944","Can it render git diffs \u002F git difftool?",{"value":140,"source":83,"evidence":141},"Progress bar support",[142],{"id":143,"by":87,"text":144},"30151816","Progress bar support would be really interesting - providing a neat way to add progress bars to shell scripts that do a bunch of work. Not sure how to go about designing a CLI…",{"value":146,"source":83,"evidence":147},"RST file support",[148],{"id":101,"by":102,"text":103},[150,157],{"value":151,"source":83,"evidence":152},"How to add a newline in print mode",[153],{"id":154,"by":155,"text":156},"30155340","baggiponte","How do you add a new line? I tried $ rich --print \"\\n hello world\" but it just returned \\n hello world Also, where can I find the list of emoji and the correspondent…",{"value":158,"source":83,"evidence":159},"Tab completion and emoji list",[160,161],{"id":154,"by":155,"text":156},{"id":162,"by":155,"text":163},"30154609","That's beautiful! Maybe adding tab completions would be useful? For example: $ rich \"hello world\" -p -a \u003CTAB> ... Where \"...\" is all the possible values that can be taken in.",[165,169,173],{"value":166,"source":83,"evidence":167},"bat",[168],{"id":113,"by":114,"text":115},{"value":170,"source":83,"evidence":171},"tqdm",[172],{"id":117,"by":118,"text":119},{"value":174,"source":83,"evidence":175},"pv",[176],{"id":143,"by":87,"text":144},{"comments":178,"answered":33,"key":179},9,[180,181,184],{"id":52,"text":53},{"id":182,"text":183},"30151958","This is good idea. Will investigate how to pipe data and display a progress bar at the same time.",{"id":185,"text":186},"30153018","Nope, but that would be a nice addition.",{"commenters":188,"max_depth":44,"maker_replies":178,"first_comment_mins":189,"lifespan_hours":190},15,12,160,[192,194,196,198,200,203,204,205,207,209,210,212,214,215,218,221,222,224,226,228,231,232,236,237,242,245,247,249,251,253,254,258,262],[52,39,39,193,11,42],"project\u002Fneutral\u002Fnone",[143,39,35,195,87,39],"project\u002Fneutral\u002Fidea",[182,39,39,197,11,42],"maker\u002Fneutral\u002Fidea",[117,39,42,199,118,39],"project\u002Fcritical\u002Fidea",[201,39,39,202,87,39],"30153700","commenter\u002Fneutral\u002Fnone",[137,39,35,193,118,39],[185,39,39,193,11,42],[154,39,35,206,155,39],"project\u002Fneutral\u002Fdocs",[97,39,44,208,98,39],"maker\u002Fpositive\u002Fnone",[101,39,44,208,102,39],[211,39,39,193,11,42],"30168871",[213,39,44,208,102,39],"30172878",[105,39,44,208,106,39],[216,42,44,217,125,39],"30153531","project\u002Fpositive\u002Fnone",[219,42,39,220,11,42],"30154223","maker\u002Fneutral\u002Fnone",[124,42,35,193,125,39],[223,42,39,206,11,42],"30155023",[86,34,44,225,87,39],"project\u002Fpositive\u002Fidea",[227,34,44,225,155,39],"30154468",[229,34,42,199,230,39],"30154562","tinalumfoil",[113,35,42,199,114,39],[233,33,35,234,235,39],"30242300","project\u002Fmixed\u002Fexecution","zsolt_terek",[90,44,44,225,91,39],[238,239,39,240,241,39],"30151420",6,"other\u002Fneutral\u002Fnone","mr-karan",[162,243,44,244,155,39],7,"project\u002Fpositive\u002Fdesign",[246,243,39,220,11,42],"30155116",[248,243,39,202,155,39],"30155261",[250,243,39,202,87,39],"30155511",[252,243,39,202,155,39],"30155527",[75,243,39,220,11,42],[255,256,44,217,257,39],"30154571",8,"josephg",[259,178,35,260,261,39],"30153155","project\u002Fmixed\u002Fdesign","patrick91",[263,178,39,264,11,42],"30153259","maker\u002Fneutral\u002Fdesign",[],[267,271,276,281,285,289],{"id":268,"name":269,"points":270,"category":20},"30137984","fahrrad-tools.de",631,{"id":272,"name":273,"points":274,"category":275},"30149370","Magistrate",279,"web_saas",{"id":277,"name":278,"points":279,"category":280},"30103906","Hibiki HTML",232,"languages",{"id":282,"name":283,"points":284,"category":280},"30152714","High-order Virtual Machine (HVM)",150,{"id":286,"name":287,"points":288,"category":20},"30106502","Triplelog Writer",140,{"id":290,"name":291,"points":292,"category":293},"30183465","Usage",123,"infrastructure",false,"v2",{"id":297,"name":5,"line":6,"ai":294,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":298,"top":18,"kw":299,"maker":11,"domain":10,"tier":19,"attempts":39,"strip":300,"url":9,"mix":301,"praise":82,"objection":110,"sub":21},30150219,0.28,[24,25,26,27,28],"030103035505550305511350500000530",[32,33,34,35],1794036616361]