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

Port before_v0.60/fuzzy, before_v0.60/ls-mods and before_v0.60/nu_101 #845

Merged
merged 13 commits into from
May 26, 2024

Commits on May 12, 2024

  1. Configuration menu
    Copy the full SHA
    d7ff2b7 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2024

  1. port fuzzy_command_search.nu

    - replace all `-` dashes in variable names with `_`
    - merge `help commands | get subcommands` and `help commands | reject subcommands` together because now `help commands` contains the flatten data
    - `$it.description` -> `$it.usage`
    - `seq $required-tabs` -> `seq 0 $required-tabs`
    - remove `echo $"(seq ...)"` ->  seq ...
    - fix: assign fzf result to `let command` and then check with `is-not-empty` before sending to the `help` and the system clipboard
    - `str collect` -> `str join`
    - `get Column1` -> `get column1.0` explicitly get the first value from the table
    39555 committed May 25, 2024
    Configuration menu
    Copy the full SHA
    1699b56 View commit details
    Browse the repository at this point in the history
  2. port ls-less.nu

    - `empty?` -> `is-empty`
    - `if {] {}` -> `if {} else {}`
    39555 committed May 25, 2024
    Configuration menu
    Copy the full SHA
    054861f View commit details
    Browse the repository at this point in the history
  3. port ls-wide-with-color.nu

    - `empty?` -> `is-empty`
    - remove `echo`
    - remove additional `ansi_size` because `fill -l` already computes with ansi
    - `if {} {}` -> `if {} else {}`
    - remove empty else blocks
    - `each -n` -> `enumerate | each`
    - remove commented old code
    - explicitly join together strings with `let new_line` and $"()()" instead of old implicit return. line 39
    - `str rpad -c` -> `fill -a r -c`
    - remove `autoview`
    - `str collect` -> `str join`
    - explicit `print`
    39555 committed May 25, 2024
    Configuration menu
    Copy the full SHA
    8912049 View commit details
    Browse the repository at this point in the history
  4. port ls-wide.nu

    - `if {} {}` -> `if {} else {}`
    - remove logging
    - `empty?` -> `is-empty`
    - `each -n` -> `enumerate | each`
    - remove autoview
    - remove empty else blocks
    - add missing `let is_columns_empty =` in the `run_ls` function
    - `str collect` -> `str join`
    - str rpad lpad` -> `fill`
    39555 committed May 25, 2024
    Configuration menu
    Copy the full SHA
    9bff81f View commit details
    Browse the repository at this point in the history
  5. port nu_101/inner_outer_loop.nu

    - `str collect` -> `str join`
    - `$()()(char newline)` ->  `$"()()"` and `str join (char newline)` do not print newline at the end, how it was in the old nu
    39555 committed May 25, 2024
    Configuration menu
    Copy the full SHA
    2004e0c View commit details
    Browse the repository at this point in the history
  6. port nu_101/nothing.nu

    - change flag -> optional positional argument for checking for the `null`. Flags now return a boolean value
    - `if {} {}` -> `if {} else {}`
    - remove unnecessary `echo`
    - `empty?` -> `is-empty`
    - `$true` `$false` -> `true` `false`
    - `$nothing` -> `null`
    39555 committed May 25, 2024
    Configuration menu
    Copy the full SHA
    2c879df View commit details
    Browse the repository at this point in the history
  7. fix: move the nu_101 module to sourced

    - delete the duplicated README.md from the old module
    - remove `demo.nu`. This script has already been ported to `sourced/nu_101/demo.nu`
    
    - move `nothing.nu`
    - move `inner_outer_loop.nu`
    39555 committed May 25, 2024
    Configuration menu
    Copy the full SHA
    d0e0563 View commit details
    Browse the repository at this point in the history
  8. port ls-hidden.nu

    - change `where` to `filter` for clarity, because we passing a closure
    - check `--dir` if empty
    39555 committed May 25, 2024
    Configuration menu
    Copy the full SHA
    db6a65e View commit details
    Browse the repository at this point in the history
  9. fix: move fuzzy to sourced

    39555 committed May 25, 2024
    Configuration menu
    Copy the full SHA
    b7e9655 View commit details
    Browse the repository at this point in the history
  10. fix: adjust fuzzy/README.md

    39555 committed May 25, 2024
    Configuration menu
    Copy the full SHA
    6fec130 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2024

  1. add export for ls_mods commands

    39555 committed May 26, 2024
    Configuration menu
    Copy the full SHA
    c430bb0 View commit details
    Browse the repository at this point in the history
  2. turn fuzzy into module

    - move from `sourced/` to `modules/`
    - add `export`
    39555 committed May 26, 2024
    Configuration menu
    Copy the full SHA
    26e988d View commit details
    Browse the repository at this point in the history