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

Lib/search: lint, cleanup, and small fixes #1932

Merged
merged 6 commits into from
Jan 29, 2022

Conversation

gaelicWizard
Copy link
Contributor

@gaelicWizard gaelicWizard commented Sep 9, 2021

Please review commit notes as appropriate.

Description

This is a partial PR covering only the lib/search portion of #1917 in support of #1696.

Motivation and Context

My shellcheck branch (#1917) got a bit large, so I'm splitting it up. This PR is inclusive of my helpers (#1934) branch.

How Has This Been Tested?

The full test suite and shellcheck have run on #1917 and this is part of my main branch.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.
  • If my change requires a change to the documentation, I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • If I have added a new file, I also added it to clean_files.txt and formatted it using lint_clean_files.sh.
  • I have added tests to cover my changes, and all the new and existing tests pass.

@gaelicWizard gaelicWizard force-pushed the search branch 9 times, most recently from a8004dd to 99f4a91 Compare September 9, 2021 05:51
@gaelicWizard gaelicWizard mentioned this pull request Sep 9, 2021
6 tasks
@gaelicWizard gaelicWizard force-pushed the search branch 9 times, most recently from 64b3f71 to 641e894 Compare September 17, 2021 20:18
@gaelicWizard gaelicWizard force-pushed the search branch 11 times, most recently from ddf1c05 to b9d2ee9 Compare September 20, 2021 05:56
@gaelicWizard gaelicWizard force-pushed the search branch 4 times, most recently from cf73bb9 to 61373df Compare January 4, 2022 22:58
lib/utilities.bash Outdated Show resolved Hide resolved
lib/helpers.bash Outdated Show resolved Hide resolved
@gaelicWizard gaelicWizard force-pushed the search branch 7 times, most recently from a19e718 to 0395716 Compare January 10, 2022 06:46
@gaelicWizard gaelicWizard force-pushed the search branch 2 times, most recently from 9f4c7f2 to 55174c9 Compare January 25, 2022 05:29
@gaelicWizard gaelicWizard marked this pull request as ready for review January 25, 2022 05:29
@gaelicWizard
Copy link
Contributor Author

Rebased on current master and ready to go!

@gaelicWizard gaelicWizard force-pushed the search branch 2 times, most recently from 0e494fe to 24636b6 Compare January 26, 2022 18:25
gaelicWizard and others added 6 commits January 28, 2022 13:35
Couldn't even `shellcheck` until I did a first pass...too much noise! ♥
SC2076
SC2091
SC2004
SC2086
SC2207
1. `$text_black` isn't a parameter provided by _Bash It_. Typo?
2. `$bold_yellow` is meant for prompt strings and putputs `\[`; ditto `$bold_red`.
3. The color was never returned to normal after.
My apologies to future `git blame` hunters ♥
Improve `_bash-it-erase-term()`, `_bash-it-flash-term()`, `_bash-it-rewind()`, `_bash-it-search-result()`, and `_bash-it-search-component()`. Minor tweaks to `_bash-it-is-partial-match()`, and `_bash-it-search()`.
@NoahGorny NoahGorny merged commit 39e5652 into Bash-it:master Jan 29, 2022
@gaelicWizard gaelicWizard deleted the search branch January 29, 2022 22:22
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.

3 participants