summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-07-01Set default value for `clipboard_target` optionHEADv2.3.0masterFlorian Pritz1-0/+1
Otherwise the validation will fail with a KeyError Signed-off-by: Florian Pritz <bluewind@xinu.at>
2022-06-26allow single quote as quote char tooThore Bödecker1-1/+1
2022-06-26add support for clipboard_target config optionThore Bödecker2-6/+75
Default behaviour of `xclip` is to copy into the `primary` selection. Default behaviour of `wl-copy` is to copy into the `clipboard`. This commit introduces a new config option called `clipboard_target` that: - allows disabling the copy to any clipboard entirely - enforce copy to `primary` (i.e. for `wl-copy`) - enforce copy to `clipboard` (i.e. for `xclip`)
2022-06-26add wl-clipboard support for waylandv2.2.0Thore Bödecker3-6/+20
2020-10-11Only request API 2.2.0 when necessaryv2.1.1Florian Pritz1-4/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-10-11Fix missing arguments to CURLWrapperFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-10-07Support requesting ids of a minimum lengthv2.1.0Simon Schuster2-3/+15
Uses the new 'minimum-id-length' post parameter to ensure minimum id lengths for created file and multipaste urls. Changes by Florian Pritz: - Raise required API version to 2.2.0 - Rename CLI option to from `--min-url-length` to `--min-id-length` and adjust documentation Signed-off-by: Florian Pritz <bluewind@xinu.at>
2019-02-06Add PKGBUILD to build development packagesv2.0.4Florian Pritz1-0/+33
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2019-02-06Support changing filename when repastingdevFlorian Pritz1-3/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2019-02-06Use constant for default stdin filenameFlorian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2019-02-06Fix error when repasting a single URL/IDFlorian Pritz1-0/+3
`fb id://1234 --name test` would skip uploading the file since it is already uploaded. With this change, the file is first downloaded and then uploaded again to result in a new ID. Setting the file name via --name does not work yet for this example command and is not addressed by this commit. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2019-02-06Extract url_to_file methodFlorian Pritz1-3/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-10-14Remove empty lines from manpageFritz Reichwald1-8/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-05-03Fix python2 compatability of config parserFlorian Pritz1-4/+1
FileNotFoundError does not exist in python2. Also it returns an IOError instead of OSError and IOError is an alias for OSError in python3 so just use IOError here so it works for both versions. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-09-24Fix xclip hanging if fb output is piped elsewherev2.0.32.0.3Florian Pritz1-2/+3
xclip forks a child that listens for clipboard requests and returns the copied content when necessary. When used with a pipe (`echo test | fb | cat`) this leads to cat blocking because cat's stdin is still open. I'm not sure why that happens, but closing stdout and stderr for xclip fixes the problem. This has also been done like this in the older shell client. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-08Fix exception when uploading 0-byte filev2.0.2workingFlorian Pritz1-2/+2
This could be triggered by an empty file (really empty). The assert is supposed to catch progress calls without a proper upload total being set. We can easily use -1 rather than 0 for that. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-08Fix exception when uploading 0-byte fileFlorian Pritz1-1/+1
This could be triggered by uploading /proc/cpuinfo The code actually replaces an object with a string and breaks later access to object variables. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-08fix error with non ascii chars in filenameDirk Mallunat1-2/+2
2016-07-08read binary from stdinDirk Mallunat1-2/+2
2016-07-06Add statistics to history outputFlorian Pritz1-0/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-06Fix defaultConfigFile being defined in the wrong placev2.0.1Florian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-06Fix creation of config dirFlorian Pritz1-1/+1
FBClient.makedirs already determines the dirname itself. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-06Retry on login error when creating API keyFlorian Pritz1-5/+17
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-06Pass error_id in APIExceptionFlorian Pritz1-6/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-06Create API key if missingFlorian Pritz1-7/+51
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-05Close apikey file explicityDirk Mallunat1-1/+1
FP: Reword commit message Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-05Close config fileDirk Mallunat1-4/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-29Disable progress bar if output is not a terminalv2.0.0Florian Pritz1-0/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-28Fix missing setClipboard for multipastesFlorian Pritz1-5/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-11fb.1: Add fancier examplev2.0.0.betaFlorian Pritz1-0/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-11fb.1: Misc updatesFlorian Pritz1-5/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-11Comment FBClient.upload_filesFlorian Pritz1-0/+6
Not sure why I only wrote a comment for this one, but better commit than discard it. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-11Bring --help in line with manpageFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-11Remove unused variablesFlorian Pritz1-2/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-11Remove debug codeFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-11Drop --id optionFlorian Pritz1-6/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-11Fix fb -g missing / in URLFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-04-11fb.1: Document id://Florian Pritz2-5/+15
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-03-28Assert that we get an id for each file we uploadFlorian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-03-28Remove unecessary list comprehensionFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-03-28Remove Paste classFlorian Pritz1-7/+4
Just use one class for clarity. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-03-28Improve "File too big" error messageFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-03-28Clean up already fixed FIXMEFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-03-28Remove already fixed TODOFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-03-27Fix downloading of URLs ending in /Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-03-27Improve naming for FBClient.dl_fileFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-03-27Support mixing IDs and filesFlorian Pritz1-40/+66
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-02-13Add --id option to create multipaste from IDsFlorian Pritz1-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-02-13Add some empty lines for readabilityFlorian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-02-13Handle ctrl-cFlorian Pritz1-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>