Skip to content

Commit 63a4ab6

Browse files
Add last-region option to manpage and shell completions (#3893)
* add --last-region to manpage * Add shell completions for --last-region
1 parent 5c8244f commit 63a4ab6

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

Diff for: data/man/man1/flameshot.1

+8
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ Valid for subcommands: config
147147
.RE
148148
.
149149
.PP
150+
\-\-last-region
151+
.RS 4
152+
Repeat screenshot with previously selected region
153+
.br
154+
Valid for subcommands: full, gui, screen
155+
.RE
156+
.
157+
.PP
150158
\-m, \-\-maincolor <color-code>
151159
.RS 4
152160
Define the main UI color

Diff for: data/shell-completion/flameshot.bash

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ _flameshot() {
1111
prev="${COMP_WORDS[COMP_CWORD-1]}"
1212
cur="${COMP_WORDS[COMP_CWORD]}"
1313
cmd="gui full config launcher screen"
14-
screen_opts="--number --path --delay --raw -p -d -r -n"
15-
gui_opts="--path --delay --raw -p -d -r"
16-
full_opts="--path --delay --clipboard --raw -p -d -c -r"
14+
screen_opts="--number --path --delay --raw --last-region -p -d -r -n"
15+
gui_opts="--path --delay --raw --last-region -p -d -r"
16+
full_opts="--path --delay --clipboard --raw --last-region -p -d -c -r"
1717
config_opts="--contrastcolor --filename --maincolor --showhelp --trayicon --autostart -k -f -m -s -t -a"
1818

1919
case "${prev}" in

Diff for: data/shell-completion/flameshot.fish

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ __flameshot_complete gui -l "path" -s "p" -rk -d "Output file or
7878
__flameshot_complete gui -l "clipboard" -s "c" -f -d "Copy screenshot to the clipboard"
7979
__flameshot_complete gui -l "delay" -s "d" -frk -d "Delay time in milliseconds"
8080
__flameshot_complete gui -l "region" -frk -d "Screenshot region to select (WxH+X+Y)" -a "(__flameshot_complete_region gui)"
81+
__flameshot_complete gui -l "last-region" -f -d "Repeat screenshot with previously selected region"
8182
__flameshot_complete gui -l "raw" -s "r" -f -d "Print raw PNG capture"
8283
__flameshot_complete gui -l "print-geometry" -s "g" -f -d "Print geometry of the selection"
8384
__flameshot_complete gui -l "upload" -s "u" -f -d "Upload the screenshot"
@@ -91,6 +92,7 @@ __flameshot_complete screen -l "path" -s "p" -rk -d "Output file or
9192
__flameshot_complete screen -l "clipboard" -s "c" -f -d "Copy screenshot to the clipboard"
9293
__flameshot_complete screen -l "delay" -s "d" -frk -d "Delay time in milliseconds"
9394
__flameshot_complete screen -l "region" -frk -d "Screenshot region to select (WxH+X+Y)" -a "(__flameshot_complete_region screen)"
95+
__flameshot_complete screen -l "last-region" -f -d "Repeat screenshot with previously selected region"
9496
__flameshot_complete screen -l "raw" -s "r" -f -d "Print raw PNG capture"
9597
__flameshot_complete screen -l "upload" -s "u" -f -d "Upload the screenshot"
9698
__flameshot_complete screen -l "pin" -f -d "Pin the screenshot to the screen"
@@ -101,6 +103,7 @@ __flameshot_complete full -l "path" -s "p" -rk -d "Output file or
101103
__flameshot_complete full -l "clipboard" -s "c" -f -d "Copy screenshot to the clipboard"
102104
__flameshot_complete full -l "delay" -s "d" -frk -d "Delay time in milliseconds"
103105
__flameshot_complete full -l "region" -frk -d "Screenshot region to select (WxH+X+Y)" -a "(__flameshot_complete_region full)"
106+
__flameshot_complete full -l "last-region" -f -d "Repeat screenshot with previously selected region"
104107
__flameshot_complete full -l "raw" -s "r" -f -d "Print raw PNG capture"
105108
__flameshot_complete full -l "upload" -s "u" -f -d "Upload the screenshot"
106109

Diff for: data/shell-completion/flameshot.zsh

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ _flameshot_gui_opts=(
2121
{-c,--clipboard}'[Save the capture to the clipboard]'
2222
{-d,--delay}'[Delay time in milliseconds]'
2323
"--region[Screenshot region to select <WxH+X+Y or string>]"
24+
"--last-region[Repeat screenshot with previously selected region]"
2425
{-r,--raw}'[Print raw PNG capture]'
2526
{-g,--print-geometry}'[Print geometry of the selection in the format WxH+X+Y. Does nothing if raw is specified]'
2627
{-u,--upload}'[Upload screenshot]'
@@ -42,6 +43,7 @@ _flameshot_screen_opts=(
4243
{-c,--clipboard}'[Save the capture to the clipboard]'
4344
{-d,--delay}'[Delay time in milliseconds]'
4445
"--region[Screenshot region to select <WxH+X+Y or string>]"
46+
"--last-region[Repeat screenshot with previously selected region]"
4547
{-r,--raw}'[Print raw PNG capture]'
4648
{-u,--upload}'[Upload screenshot]'
4749
"--pin[Pin the capture to the screen]"
@@ -60,6 +62,7 @@ _flameshot_full_opts=(
6062
{-c,--clipboard}'[Save the capture to the clipboard]'
6163
{-d,--delay}'[Delay time in milliseconds]'
6264
"--region[Screenshot region to select <WxH+X+Y or string>]"
65+
"--last-region[Repeat screenshot with previously selected region]"
6366
{-r,--raw}'[Print raw PNG capture]'
6467
{-u,--upload}'[Upload screenshot]'
6568
)

0 commit comments

Comments
 (0)