Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc tools #229

Merged
merged 4 commits into from May 21, 2022
Merged

Misc tools #229

merged 4 commits into from May 21, 2022

Conversation

thibran
Copy link
Contributor

@thibran thibran commented May 21, 2022

Some of my favorite functions.

skim is a wrapper around the sk command-line tool. I would love, if the basic list-select functionality would become a part of Nushell, as it is so handy.

> ls | get name | skim --preview 'ls --color {}'
# move the cursor (emacs key-bindings) or fuzzy find,
# then press enter to select the value
Downloads

group-list helps to quick-and-dirty parse lists of data with a repeating header+body schema. I need the capability of group-list quite often and wonder, why there is no other tool (as far as I know) with this functionality.

> [id_a 1 2 id_b 3] | group-list id_
╭───┬──────┬────────────────╮
│ # │ key  │     values     │
├───┼──────┼────────────────┤
│ 0 │ id_a │ [list 2 items] │
│ 1 │ id_b │ [list 1 item]  │
╰───┴──────┴────────────────╯

Shortcut that is very handy when creating file names.

> ymd
2022-05-21
> dmy
21-05-2022

@fdncred
Copy link
Collaborator

fdncred commented May 21, 2022

We have no problem accepting a script for skim. Unfortunately skim is not cross-platform, as it doesn't run on windows thanks to the termion crate not supporting windows. I assume that's the skim you're talking about. The one like broot and fzf.

@fdncred fdncred merged commit f14024e into nushell:main May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants