[dolphin] [Bug 487770] New: Feature Request: Option to bind arbitrary command lines to shortcut keys and/or custom toolbar buttons

ocalhoun bugzilla_noreply at kde.org
Wed May 29 23:35:04 BST 2024


https://bugs.kde.org/show_bug.cgi?id=487770

            Bug ID: 487770
           Summary: Feature Request: Option to bind arbitrary command
                    lines to shortcut keys and/or custom toolbar buttons
    Classification: Applications
           Product: dolphin
           Version: 21.12.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-null at kde.org
          Reporter: 7485697 at gmail.com
                CC: kfm-devel at kde.org
  Target Milestone: ---

SUMMARY
There are instances when I'd really like to be able to do certain tasks more
efficiently, things that could be done with a command line -- or a command line
calling a script -- but I want those things to be done within a specific
folder.

Utilities like xbindkeys can be used to bind global shortcut keys to command
lines, but those commands will always be executed in the same directory. Either
in the home directory or wherever the command specifies.

I think it would be a highly useful and extremely versatile tool to be able to
bind commands to shortcut keys within Dolphin, where the command will be
executed relative to the current directory that's open in the active Dolphin
window. Or, if not shortcut keys, then perhaps custom toolbar buttons. (Of
course, the option to do either/both of those would be great as well.)

In my use-case, I'd use it for things like creating a new document (which
Dolphin currently doesn't allow single-press shortcuts for), or for calling
certain scripts that sort and filter the files within that folder. But that's
just one use-case. This sort of thing potentially has a lot of unforeseen uses
that could be different for every user savvy enough to set them up.

Some other examples of what a user could create:
- a button to call ffmpeg to easily batch-convert all media files in the
current folder to their favorite format
- a button to call an image editing script to batch resize images in the
current folder
- custom batch renaming scripts run on the current folder
- calling rsync to automatically sync the current folder to a pre-specified
destination
- calling a housekeeping script that deletes all files in the folder older than
a certain date
- compile the contents of the current folder
- calling an anti-virus program to scan the current folder
- automatically opening one or more files in the folder, based on various
criteria (such as quickly opening the most recently modified .blend file to
resume work left unfinished)
- one-press commands to compress or extract the contents of the current folder
And probably a lot of other things I'm not thinking of at the moment, all of
which could really help certain people who have to do those tasks frequently,
greatly speeding up their workflow because you could make it so that any of
these actions are done with a single click or key combination.

You'd need a backend that takes these user-entered commands and executes them
when called, and you'd need a frontend that gives the user settings for
entering custom commands and assigning those to shortcut keys and/or custom
toolbar buttons.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list