Skip to content

Commit

Permalink
interactive history (#2)
Browse files Browse the repository at this point in the history
* refactor: optimize bat language detection in gh_query

* chore: Update minimum FZF version and remove unused variable

* fix: improve version checking logic in gh-find-code

* chore: improve fzf style and history features

* refactor: Improve error handling and prompt changes

* feat: add command history and delete line functionality

removed the "--history" flag from fzf as it only saved when the query upon exiting, and unable to
delete lines interactively, as the lines were restored by fzf.

* feat: add examples to empty history file

* refactor: move history cleanup to add_to_history function

* feat: add reload binding to history commands

* chore: update pre-commit hooks and add binary check

* feat: Add dynamic preview window size adjustment
  • Loading branch information
LangLangBart authored Mar 22, 2024
1 parent 1b41dee commit 9aab182
Show file tree
Hide file tree
Showing 4 changed files with 205 additions and 144 deletions.
1 change: 1 addition & 0 deletions .github/workflows/quality_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: luizm/action-sh-checker@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHELLCHECK_OPTS: --external-sources --norc
SHFMT_OPTS: --simplify --indent 0 --case-indent
with:
sh_checker_comment: true
28 changes: 21 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,32 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: typos-v0.10.21
rev: v1.19.0
hooks:
- id: typos
args: [--format, brief, --write-changes]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
- repo: local
hooks:
# doesn't require a local version of 'shellcheck'
- id: shellcheck
- id: binaries
name: binary check for shellcheck/shfmt
entry: |
bash -c '
for tool in shellcheck shfmt; do
if ! command -v shellcheck &> /dev/null; then
echo "$tool could not be found, please install it"
exit 1
fi
done'
language: system
pass_filenames: false
fail_fast: true
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
# requires a local version of 'shellcheck'
- id: shellcheck
name: shellcheck
args: [--external-source, --norc]
# requires a local version of 'shfmt'
- id: shfmt
name: shfmt
Expand All @@ -39,13 +53,13 @@ repos:
hooks:
- id: yamlfix
- repo: https://github.com/tcort/markdown-link-check
rev: v3.11.2
rev: v3.12.1
hooks:
- id: markdown-link-check
name: markdown link check
args: [--quiet]
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.14.1
rev: v3.20.0
hooks:
- id: commitizen
stages: [commit-msg]
Loading

0 comments on commit 9aab182

Please sign in to comment.