-
-
Notifications
You must be signed in to change notification settings - Fork 454
Global copy to clipboard #851
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
Conversation
We don't want to clear the clipboard if nothing is selected
|
@Flow-Launcher/team
So, Copy the path by distinguishing between folders and files, or After reducing the path in subtitle output method, It is expected that there will be a way to copy the path in form like subtitle + Title example current version B Title: configs modify version B Title: configs |
|
I think it's best we let the plugin delegate what's copied to clipboard. Default behavior is to copy We can supply a new field for plugins to populate with what they think is most relevant for the clipboard. Should we delay this feature for this functionality? |
Yes. I don't think it's actually very useful that the default value is Title. I think most basic plugins and users will use ctrl+c as either file copy or path copy. Shortcut keys should not be inserted in a state that does not operate with this function. It is good to work for the purpose used in the plug-in, but this function must be preceded first. This is because it causes confusion if it changes in the future. Anyway, this is my opinion, and I don't know what others think. We need to discuss more. I hate answering tightly, but your three PR take 3 hotkeys in important place. (It's in the middle of New York) The functions you choose to fix are also very important in terms of long-term UX, and I think it's better to plan ahead because if the shortcut changes, there will be confusion. On the one hand, if we don't tell the shortcut anyway, no one will use it, and I think it's okay to put it in because it's necessary for plug-in development for now. I don't think flow launcher will be downloaded a lot.😂 |
|
Agree with @onesounds to use ctrl + c as a file copy and ctrl+shift+c as a file path copy. I think this maybe best implemented at plugin level, where plugin decide when ctrl + c is pressed, what exactly to copy- title, subtitle, title+subtitle, or the actual file. This reduces complications because otherwise flow will have to decide in what scenario to copy what. @Garulf you got it to copy title ATM, what scenario will require in copying title ATM? |
Capture.24.mp4 |
5bf1722 to
c5be5b8
Compare
|
@Garulf I moved the actual copy logic into MainViewModel and added notification for file/folder/text copied. Just a FYI, general rule of thumb, avoid application/business logic in your Views, i.e. MainWindow.xaml.cs, this will make it easier when later wanting to change the view, and it follows the MVVM pattern. |
Invoking CTRL+C will copy the selected results title to clipboard.
2021-12-02.03-51-35.mp4
Selected Query text is copied otherwise result title is added to the clipboard.
Edited:
Invoking CTRL+C on a selected result will: