midgard icon indicating copy to clipboard operation
midgard copied to clipboard

[Feature Request] add more data fields

Open slimjet4u opened this issue 1 year ago • 0 comments

{"type":"text","data":"clipboard"}

the current dictionary has basic data and its good and simple.

Request 1

However, if we can implement a tag field then that would be awesome. That will be useful, as we can then be able to say which device uploaded the code. The each device should be able to do that GET/POST request Example

{"type":"text","data":"clipboard", "tag":"windows11"}

Request 2

midgard is very useful when copying links from one device to another. If there is an ability to apply regex on the fly to the copied content such that the output of regex is then passed to the data field then that would be awesome. We could have a separate file like regex.txt where we can store the different regex and the associated data that will result with that

Example:

{"type":"text","data":"example.com", "original": "https://example.com", "tag":"iphone", ""}

regex.txt

if the text if from tag "iphone" and "windows11" then apply the following regex
^(https:)(?=.*example\.com)

Request 3

Also, please allow the API to get the list of clipboard that was used before

Thank You, I really appreciate your good work

slimjet4u avatar Aug 15 '24 15:08 slimjet4u