Skip to content

Commit

Permalink
Merge pull request #209 from thenaterhood/dev
Browse files Browse the repository at this point in the history
Next Release
  • Loading branch information
thenaterhood authored Nov 10, 2024
2 parents acb0c83 + 0dd971c commit 7f1022a
Show file tree
Hide file tree
Showing 17 changed files with 1,474 additions and 724 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# uses: cclauss/GitHub-Action-for-pylint@8ef4d22e119fb1cdc0f58f2e95cb1f8d8b0d55e6
uses: cclauss/[email protected]
with:
args: '"pylint src/ --disable=import-error --disable=no-self-use --disable=no-else-return --disable=too-many-public-methods --disable=too-many-instance-attributes --disable=duplicate-code --disable=useless-object-inheritance --disable=too-few-public-methods" --disable=missing-module-docstring'
args: 'python setup.py lint'

pytest:

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ Other than region selection, gscreenshot's CLI is non-interactive and is suitabl
* %%: A literal %
* The full list of strftime format options in their standard format. See the examples section.

\--gui
: Open the gscreenshot GUI. This is the default if no options are passed to gscreenshot.
This can be combined with other parameters to change, for example, the initial screenshot
taken when gscreenshot starts.s

-c, \--clip
: Copy the resulting screenshot to the clipboard. Relies on xclip or wl-clipboard.

Expand Down
2 changes: 1 addition & 1 deletion dist/completions/bash/gscreenshot
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ _gscreenshot_completions()
;;
esac
fi
opts=$(gscreenshot --help | grep -- -- | cut -d "," -f 2 | awk '{print $1}')
opts=$(gscreenshot --help | grep -E -- "--\w+ " | cut -d "," -f 2 | awk '{print $1}')
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${opts}" -- "$cur")
}

Expand Down
2 changes: 1 addition & 1 deletion dist/completions/zsh/_gscreenshot
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
function _gscreenshot {
suggestions=()

for opt in $(gscreenshot --help | grep -- -- | cut -d "," -f 2 | awk '{print $1}'); do
for opt in $(gscreenshot --help | grep -E -- "--\w+ " | cut -d "," -f 2 | awk '{print $1}'); do
case "$opt" in
--filename)
opt="$opt:file:_directories"
Expand Down
Loading

0 comments on commit 7f1022a

Please sign in to comment.