Giter Site home page Giter Site logo

lpatalas / showcolumns Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 542 KB

Prettier Get-ChildItem replacement and ability to display lists of objects in columns

Home Page: https://www.powershellgallery.com/packages/ShowColumns

License: MIT License

PowerShell 50.89% C# 49.11%
powershell dir ls columns format

showcolumns's Introduction

ShowColumns

PowerShell Gallery

ShowColumns provides prettier Get-ChildItem replacement and ability to display lists of objects in columns.

Available cmdlets are:

  • Show-Columns - displays any data piped into it in columns with auto-calculated widths.
  • Show-ChildItemColumns - invokes Get-ChildItem with given parameters and displays results using Show-Columns.

Example

Example

Installation

Install module from PowerShell Gallery:

Install-Module ShowColumns -Scope CurrentUser

Then import module in your PowerShell profile and overwrite ls alias:

Import-Module ShowColumns
Set-Alias ls Show-ChildItemColumns -Option AllScope

Features

  • Automatic calculation of column widths based on available screen space
  • Ability to display any property either by name or using arbitrary expression
  • Ability to group items by property value or expression
  • Ability to configure colors and text decoration based on input objects
  • Drop-in replacement for Get-ChildItem cmdlet for convenient use

Documentation

See docs/ShowColumns.md for module documentation.

showcolumns's People

Contributors

lpatalas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

showcolumns's Issues

How to set alias for Show-ChildItemColumns

Hello, thanks for the project. I want to set alias for the command with some parameters.
Here is what I did

function ls_alias { Show-ChildItemColumns -exclude .* $args}
Set-Alias -Name ls -Value ls_alias  -Option AllScope

the $args does not seem to work correctly. I managed to get the first parameters passed in. But I cannot get it fully working correctly. Sorry I'm not familiar with powershell. Could you help me with the alias?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.