-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add --pin, --upload, --accept-on-select to CLI #1970
Add --pin, --upload, --accept-on-select to CLI #1970
Conversation
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
@mmahmoudian Once you are able, test this and I'll merge. |
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
@mmahmoudian I forgot to tell you this. You can test everything by running the Please don't bother to make any readability improvements, since I plan to change it and automate it one day. |
I love it. Works very nicely. Thank you. While testing and exploring the horizons this PR (42fa9e0) opens, I realized:
flameshot gui --accept-on-select --raw --delay 5
flameshot gui --accept-on-select --upload --clipboard The following is the URL that now I cannot delete form imgur: I think we should not limit the user by making the |
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
the "Latest uploads" entry is created just fine. I tried to upload in all the variants I could think of (various option combinations, from gui without CLI options) and it still works. Please try it again - maybe it was a temporary connection problem or something. You are right about the copy/upload clipboard conflict. But it only arises if the config option I made it so that:
I believe this way there is no need for a warning. If you agree with this decision, I'll merge this. NOTE: The failing builds are due to a server error. Will try to rerun later. |
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
@mmahmoudian Make sure to try the latest commit, I forgot to push it earlier. |
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
Works flawlessly 👍
I'm getting this error constantly and have tried this on your branch and also my own fork and also master branch of the main repo, which means I cannot test this:
I don't have it set in my config. the following is the [General]
contrastOpacity=188
disabledTrayIcon=false
drawColor=#ff00ff
drawFontSize=8
drawThickness=3
savePath=/home/mehrad/Pictures
savePathFixed=false
setSaveAsFileExtension=.png
showStartupLaunchMessage=true
startupLaunch=true
uiColor=#ff7300
undoLimit=100
uploadHistoryMax=0
useJpgForClipboard=false
|
@mmahmoudian The In any case, I'll explain the change in short terms. When both I think the upload issue is either specific to you or a bug that goes beyond the scope of this PR. I suggest you open an issue for that. |
@borgmanJeremy Are you still reviewing or? |
This is even getting confusing for me 😆 I guess we should either up our game in documenting the config options, or include them all in the config file along with their default value.
Makes total sense. Let's merge this.
I don't think it is a bug. I thing as our users are growing, there are less and less available quota and the higher chance that we get error from Imgur. For example I literally just tried and it worked just fine: https://i.imgur.com/I835ijQ.png |
Definitely. As far as this option is concerned, I'll document it in another PR that I have currently open.
I'm against doing this for multiple reasons:
|
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good.
TODO:
flameshot gui
Closes #526.
Closes #1956.
Closes #1964.
Closes #1920.