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.

lib/utilities.bash Outdated Show resolved Hide resolved
lib/helpers.bash Outdated Show resolved Hide resolved
@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 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()`.
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