这是indexloc提供的服务,不要输入任何密码
Skip to content

[FEAT]: Enhanced Keyboard Navigation for Preset Prompts Menu #2019

@MrSimonC

Description

@MrSimonC

What would you like to see?

Firstly, I don't think I've really ever said thanks for your work on Anything LLM - huge thanks to the Anything LLM team for creating such an amazing open-source product, licensed under MIT. The separate workspaces with RAG segregation, and prompt menu (hence this feature) and different models per workspace. Love it. Thanks so much.

Feature Request:

When clicking into the prompt window, users can type / to open the preset prompts menu. Currently, navigation within this menu requires using the mouse. To streamline the interaction, I propose adding keyboard navigation to this menu.

Specifically:

  1. After typing / to open the menu, allow users to navigate the menu items using the Up and Down key.
  2. Provide two options to interact with the selected menu item:
    • Press Escape to close the menu and return to the prompt window.
    • Press Enter to add the selected preset prompt to the chat.

Benefits:

This feature would significantly reduce the need to switch between keyboard and mouse, making the interaction more efficient and user-friendly. By keeping the user on the keyboard, we can reduce the back-and-forth between input methods and improve the overall experience.

Current Behavior:

Currently, users need to:

  1. Click into the prompt window with the mouse.
  2. Type / with the keyboard to open the menu.
  3. Switch back to the mouse to select a menu item.
  4. Click back into the prompt window to return to keyboard input.

Example Use Case:

A user wants to explore different preset prompts to generate creative content. With the proposed feature, they can type / to open the menu, navigate using the Up and Down arrow key, and select a prompt using Enter. This workflow would be more seamless and efficient.

Hopefully it's something you also think would improve the user experience and might not be too much work (I would attempt to even implement this, but I can't seem to get github-codespaces (and not locally) dev set up working (it sits there typing to build some dependencies forever - I might look at this tomorrow).

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions