Git Product home page Git Product logo

flow-launcher-shortcuts-plugin's Issues

Define single key in a group

Is it possible to define single keys in a group?

For example lets say I have a group key to search on image sites (freepik, unsplash etc) but I also use these sites separately as well. Is it possible somehow or I must duplicate those for single usage?

[
  {
    "Type": "Group",
    "Shortcuts": 
    [
      {
        "Type": "Url",
        "Url": "freepik.com/search?q=${q}",
        /* can I set a key here? */
      },
      {
        "Type": "Url",
        "Url": "www.unsplash.com/search?q=${q}"
        /* can I set a key here? */
      }
    ],
    "Key": "search"
  }
]

Feature Request: Add Dynamic Variables (Vars) for URL Web Searches

Feature Request: "Dynamic Variables" (URL)

Description:
Instead of just static variables that are pre-defined before a call to _**q list ShortcutName ** [choose your URL], allow the user to select a URL from q list and then type in an optional search string, then perform the URL load.

Example URL:
https://www.google.com/search?q=**_coding+games_**&sca_esv=5854313 ("coding games" is the "Dynamic Variable (Var)".)

"coding games would be typed after the q list [choose an entry here] coding games.

Use-Case:
This would be helpful for forums, general search engines, etc. I want it for searching online help documents I use for development applications I use.

BUG: Directory and File Shortcuts Fail with Spaces in Paths

Description:
It looks like the plugin has trouble handling paths with spaces. For example, when I try to set up a shortcut for the Startup directory (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp), it throws an "invalid command arguments" error. This happens with both Directory and File shortcuts.

Steps to Reproduce:

  1. Create a shortcut for a path with spaces, like C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp.
  2. Notice that the plugin doesn't recognize the path and gives an error.

Expected Behavior:
The plugin should handle paths with spaces correctly.

Actual Behavior:
It fails and shows an error message, making the plugin unusable for paths with spaces. This is happens with both 'File' and 'Directory' shortcuts.

Request:
Would appreciate it if you could look into this! I'll also be posting a few other minor issues I've noticed.

BUG: Result Suggestions Change Too Quickly While Creating Shortcuts

Description:
The result suggestions change too quickly while creating shortcuts.

Github_issue_post.mp4

Observed Behavior:
When I type the first letter of the keyword, the suggestion immediately changes to "enter path or directory."

Expected Behavior:
The result suggestion should change to "add path/directory" only after the keyword is fully typed.

Request:
I request you to fix or improve this, as it would enhance the overall user experience. However, this should be the least of your priorities, as it has little to no impact on the functionality of the plugin.

Support passing dynamic args & batch run shortcuts

Hey great plugin.

Wondering if you plan to

  1. Support dynamic args so it would be something like q add shopping_urls https://www.google.com/search?q={q}, where user can pass in the arg q shopping_urls -q something
  2. Support batch shortcut open operations where you can trigger all shortcuts with the same name or 'group name'.

Reason for this suggestion is I feel this plugin is a suitable one for solving a popular requested feature in the WebSearch plugin

Feature Request: pull shortcut Icons

It would be great to pull the icons of linked shortcuts/executable files.

This would enhance link identification. Example Below:

8YxuNSBxEg

Great Plugin! Thanks.

Feature Request: Ability to configure(enable/disable) group launch while the group is being configured

When I type the name of a group, it currently displays open group <group_name>, which opens all the shortcuts within that group. I have numerous shell commands within a group that I do not wish to execute simultaneously, although they are related and function with a specific program. Ideally, there should be a feature to toggle the group launch on or off during the initial setup of the group (similar to setting silent to "true" or "false" in the add shell command).

Expected Behaviour

When searching for the group name in the shortcut plugin (before the group name is completely typed), it should display the option open group <group_name> which would lists all the shortcuts. Moreover, typing the full name of the group should not show the result "open group <group_name>", only lists all the shortcuts alone. If the group launch is enabled, the behavior should remain as is, except for the addition of a launch group <group_name> option when selecting the "open group <group_name>," or when the name of the group is fully typed, allowing all shortcuts to be executed simultaneously.

Feature Request: Pull URL Icons/define custom path for Icons

Would love for the URL icons to also be displayed:

20240919_chrome

I assume it’s a lower priority, but it might be simpler to specify a path for .ico files, like this:

[
{
    "Type": "IconDirectory",
    "Directory" : "C:/icons/"
},
{
    "Type": "Url",
    "Url": "calculator:///",
    "Key": "calculator",
}
]

Icons labelled with the corresponding key, such as C:/icons/calculator.ico, could override the default.

Thanks for the updates! This plugin has made my life so much easier!

Add file URL support

It would be nice to have the file Url type. For example...

  {
    "Type": "Url",
    "Path": "vscode://file/c:/programming/code/my_code/vscode/emerald-sky/",
    "Key": "vsc_emerald-sky"
  },

I can add this without error to the shortcuts config file, but nothing happens.

Feature Request: Add Indication of Loading In Progress (to handle files or groups of files that are slow to load)

Greetings! I am appreciating your plugin, but am running into a curious issue. I am on a new, fast desktop computer with a NVMe M.2 SSD. I have defined a shortcut group comprising of 3 files (two Excel spreadsheets and one Access database), all stored on the SSD. When I execute this group via keyword it can take >10 seconds for anything visually to happen on the screen, which has at times led me to mistakenly interpret that the plugin had not executed my command (and so I hit Enter again, which results in files being opened twice eventually).

I have done some testing the and the delay has nothing to do with the plugin, but rather is the result of the Microsoft Access database being slow to open (and it was originally first in the Group). If I change the Group order so that the Excel files are first then I do see both of them open rapidly (and the Access database follows eventually after).

Since the Shortcuts plugin has no way of knowing how long a file will take to load, it seems it could be helpful if there were some sort of visual indication that the executed command was received (so that the user doesn't just keep hitting Enter, errantly). Or is this perhaps something that would be more appropriate to add to Flow Launcher core? Either way, some kind of UI visual feedback that the command was received might be good (if possible). This is not a pressing need for me since I've changed my Group order so that the faster loading Excel files are first, but it seemed worth posting about this since it might come up for other users at some point.

Thanks for reading and considering my suggestion! :)

Feature Suggestion: Set Application

Is it possible to set a specific application for a file or a URL to open in instead of the default application? I could see it reverting to the default app if there is not one manually specified, but personally would find it very useful to set specific apps for different files or particularly URLS.

Thanks for the great plugin!

Feature Request: Add support for the QuickLook plugin to preview folders and files

I've noticed that the latest update includes a preview feature within Flow Launcher. I have enabled the QuickLook Plugin, but any file or folder I preview through the shortcuts plugin only triggers the default FL preview. This might be an issue with the QL plugin. I'm not entirely certain. However, if it's feasible to integrate this feature, I would urge the developer to implement it as soon as possible. Also, the new version is quite impressive!

BUG: Clicking a Result Doesn't Auto-Fill Query in Search Bar

Description:
It looks like the plugin can't automatically fill in the search bar when any one of the results is clicked.

Steps to Reproduce:

  1. Type the plugin keyword 'q add '.
  2. Scroll through any of the results (e.g., file) and click it.
Github_issue_post.mp4

Observed Behavior:
It does nothing and quits the launcher.

Expected Behavior:
When any of the results is clicked, it should automatically fill in that query followed by a space in the search bar, similar to the Plugins Manager plugin.

Request:
I would highly appreciate it if you could look into this and other such queries which have the same issue and provide a fix.

Shell shortcut isn't working properly

I tried to run Android Studio with a parameter using the Shortcut Plugin. The command looks like this:
"C:\Program Files\Android\Android Studio\bin\studio64.exe" "C:\Users\Laurin\AndroidStudioProjects\Todos"
If I use the command
q add shell cmd "Todos" true "C:\Program Files\Android\Android Studio\bin\studio64.exe" "C:\Users\Laurin\AndroidStudioProjects\Todos"
It properly generates the JSON:

[
  {
    "Type": "Shell",
    "ShellType": "Cmd",
    "Arguments": "\u0022C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe\u0022 \u0022C:\\Users\\Laurin\\AndroidStudioProjects\\Todos\u0022",
    "Silent": false,
    "Key": "Todos"
  }
]

(U+0022 is " in Unicode it doesn't work with \" either)
Which looks pretty good, but if i run
q Todos
I get a command prompt with (whole output)

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Laurin\AppData\Local\FlowLauncher\app-1.18.0>

If i use echo like this:

[
  {
    "Type": "Shell",
    "ShellType": "Cmd",
    "Arguments": "echo \u0022C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe\u0022 \u0022C:\\Users\\Laurin\\AndroidStudioProjects\\Todos\u0022",
    "Silent": false,
    "Key": "Todos"
  }
]

It will output (whole output)):

"C:\Program Files\Android\Android Studio\bin\studio64.exe" "C:\Users\Laurin\AndroidStudioProjects\Todos"

C:\Users\Laurin\AppData\Local\FlowLauncher\app-1.18.0>

Which looks pretty good to me. So how is this supposed to work?
Also there isnt much documentation about the shell cmd e.x spaces in the commands or single and double quotes like
'"C:\Program Files\Android\Android Studio\bin\studio64.exe" "C:\Users\Laurin\AndroidStudioProjects\Todos"'
which would be nice to have to better understand the command
If this is my mistake, just blame me and edit the readme to better describe what the shell command really does.

Have a great day!

Feature Request: Ctrl+Tab should replace the entire query with directory path

Pressing CTRL+Tab on a shortcut result, such as a directory, replaces the query with the directory path, but retains the plugin's keyword ("q" by default) at the start. Instead the keybinding should replace the entire query with the directory path, enabling continued browsing with the Flow Launcher's explorer plugin.

skip '-q' for syntax sugar

Thanks for great plugin.

I wanna do search flow launcher intead of q search -q "flow launcher"

skipping plugin keyword can be achievable by setting the keyword as * but i also want to skip -q.

it would be good if the argument value is assigned to the argument name in url automatically, when there is only one argument.

thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.