Feature request: add separators and key shortcuts to dropdown menu

未关闭
#582 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
desktop

调研方向

The payload names no files or entry points. Start by locating where the extension builds its template dropdown menu and where template names and shortcuts are stored. The issue asks for two things: visual separators for templates whose names begin with special characters, and showing each item's keyboard shortcut in the menu. Settle the separator naming rule with a maintainer before coding. Done means both behaviours appear in the menu and existing templates still work.

由索引模型根据 Issue 内容生成。

描述

With lots of dropdown menus I've recently implemented a few upgrades to my templates, first being the group separators within a group:

Image

This leads to a suggestion that some templates could be treated as separators for visual clarity: eg. the ones starting with double hyphen or some other special character/combination - looking cleaner, not enabled for click.

Also, I've added keyboard shortcuts to a few items but then I realized I do not even remember previously added ones. To remember those, I've had to look them up in settings.

It would be a huge upgrade to have the keyboard shortcut added to menu items that have keyboard shortcuts.

Thing with templates is some are used everyday, some are used depending on the situational context for a while and then they are left just sitting there for a long time. Keyboard shortcuts would be easier to memorize with just being there in the menu for when you don't remember them.
I'd add them in a template name but, besides the risk of making a mistake, forgetting to edit the name while editing the shortcut, I'd rather not use [] chars in templates' names, as [[]] are special chars for QuickText.

主要语言
JavaScript
星标
283
派生
62
平均合并
1 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

jobisoft/quicktext 的其他 Issue

查看 jobisoft/quicktext 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。