Skip to content
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

text/uri-list from clipboard become default select #54

Closed
sfischme opened this issue Feb 23, 2017 · 10 comments
Closed

text/uri-list from clipboard become default select #54

sfischme opened this issue Feb 23, 2017 · 10 comments

Comments

@sfischme
Copy link

When marking files in a file manager for copying (Ctrl-C), it creates multi-part mime type (text/uri-list and text/plain). It would be great if there were an option that any files in text/uri-list would become the default selection when launching kupfer.

The use of it is to mark a couple of files for copying and then pipe them into an action in kupfer. Tke a look here at 1:05 https://www.youtube.com/watch?v=xfJHYX7venM

Steps:

  1. open thunar
  2. select a file
  3. press Ctrl-C
  4. launch kupfer

Environment

Kupfer Version: kupfer v311-4-gd8a469d4
Window Manager: i3
Desktop Environment: none
Linux Distribution: archlinux

Actual Behaviour

kupfer launched as normal

Expected Behaviour

kupfer launched with the files select and the focus is on the action box.

@SanskritFritz
Copy link
Contributor

I was about to answer "just use the Show with Selection" shortcut, but as I tried that, here it doesn't even work. But that should be another bug report probably.

@bluss
Copy link
Member

bluss commented Feb 23, 2017

Yes. File manager integration was kind of the holy grail. Back in the good old days there was a plugin to nautilus that broadcasted its selected files over d-bus, and a Selected File proxy object that used that. That idea should come back.

For Thunar I have documented what I use, like this: https://kupferlauncher.github.io/help/en/plugin-thunar.html I think that works well and Thunar is the best integrated file manager, since it has a nice D-Bus API so that we can have Select in File Manager, Copy File using Thunar's progress window and so on.

kupfer launched with the files select and the focus is on the action box.

I have wondered about this. I think this is a change we should consider in several places, for example, when selecting the result of an action? When dropping or pasting files?

@bluss
Copy link
Member

bluss commented Feb 23, 2017

@SanskritFritz Show with Selection seems to work. It was designed to summon kupfer with the selected files as priority (from Nautilus), if not that, then the current text selection.

The selected file does not work, but the selected text object works fine (It is implemented in the clipboard plugin, so if that is disabled, you get nothing).

The question is how to extend this so that Show with Selection can summon the Clipboard File (another proxy object supplied by the clipboard plugin) too.

I'm not sure, can we or should we use the same show with selection for this? Maybe we should just add another one (show with clipboard?)

@SanskritFritz
Copy link
Contributor

I'll open a separate bug report then.

@bluss
Copy link
Member

bluss commented Feb 24, 2017

Ok. A new global shortcut for show with clipboard seems fine then?

@bluss
Copy link
Member

bluss commented Feb 24, 2017

By the way, Kupfer has a major bug. I can't find the way to put uri list on the clipboard in Gtk 3 using pygi. Meaning that files → copy to clipboard is broken since the Gtk 3 port, only copies it as text.

@bluss
Copy link
Member

bluss commented Feb 24, 2017

Come to think about it, you canmake your own show with X for any proxy object. Use select in kupfer from higher order actions and a trigger.

@bluss
Copy link
Member

bluss commented Feb 24, 2017

I have decided to close the issue of shortcut for a clipboard file: Kupfer already has this feature.

Enable: Higher order actions, Clipboard and Trigger plugins.

Combine Clipboard File, Select In Kupfer, Ctrl + Return to build command object and add a trigger.

Selecting the action pane by default after this is a separate bug.

@bluss bluss closed this as completed Feb 24, 2017
@bluss
Copy link
Member

bluss commented Feb 24, 2017

Focus action is issue #57

@bluss
Copy link
Member

bluss commented Feb 24, 2017

Only tangentially related, but it's a start:

Kupfer v312 has new accelerators in the interface (no setting for them by default, I'll try them out and pick something later).

  • Select Cliboard File, Select Cliboard Text,
  • Select Pane {1, 2, 3}

So that's another way to do it. It's independent of triggers and global keybinds which are have an uncertain future (wayland and other future tech will obsolete current global keybinding code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants