GithubHelp home page GithubHelp logo

pluveto / shortcutmap Goto Github PK

View Code? Open in Web Editor NEW
36.0 1.0 1.0 650 KB

This desktop app helps show shortcuts map for any application quickly. 该工具能够为任何软件显示其快捷键列表

C# 100.00%

shortcutmap's Introduction

Shortcut Map

本程序能够帮助你显示当前使用程序的快捷键

This util helps display Shortcuts Keys of Current Running Application

推荐使用 1920x1080 及以上分辨率。

使用方法 Usage

运行 Pluvet.ShortcutMap.exe,你将看到托盘有一个地图图标。

Run Pluvet.ShortcutMap.exe, you'll see a map icon on windows tray bar.

在程序中按下 Win N 组合键,如果该程序拥有快捷键配置,则会显示出来。

Press Win N together, if current app has its keymap definition config, key map will display.

预览 Preview

预览

创建快捷键配置 Create your own key map config

下面以创建 Blender 的快捷键为例。

首先,你在程序的 shortcuts 目录下,创建文件 blender.json,在 shortcuts\images\目录下放置 png 格式的图标文件,文件名为 icon-blender.png,大小为高度 128 像素及以上。

编辑 blender.json,基本格式如下:

Here's an example of creating a shortcut key config file for 'blender'.

First, you create a file in the program's shortcuts directory with name blender.json, place the logo file in PNG format in the directory shortcuts/images, and the file name is icon-blender.png (The size is 128 pixels and above in height).

Editorblender.jsonThe basic format is as follows:

{
  "app": "程序名",
  "moduleName": "应用程序的模块名,正则表达式",
  "author": "本文件编写者",
  "version": "本文件版本",
  "description": "本文件描述",
  "groups": [
    {
      "name": "组名",
      "shortcuts": [
        {
          "keys": ["按键"],
          "action": "作用"
        }
      ]
    }
  ]
}

对于 Blender 的示例如下:

{
  "app": "Blender",
  "moduleName": "^blender\\.exe$",
  "author": "pluveto",
  "version": "1.0",
  "description": "Shortcuts for Blender",
  "groups": [
    {
      "name": "Window",
      "shortcuts": [
        { "keys": ["Ctrl", "Left"], "action": "Arrow Go to Previous Screen" },
        { "keys": ["Ctrl", "Right"], "action": "Arrow Go to Next Screen" },
        { "keys": ["Ctrl", "Up"], "action": "Arrow Maximize Window" },
        {
          "keys": ["Ctrl", "Down"],
          "action": "Arrow Retrun to Previous Window Size"
        },
        { "keys": ["Shift", "F4"], "action": "Data View" },
        { "keys": ["Shift", "F5"], "action": "3D Window" },
        { "keys": ["Shift", "F6"], "action": "IPO Window" },
        { "keys": ["Shift", "F7"], "action": "Buttons Window" },
        { "keys": ["Shift", "F8"], "action": "Sequence Window" },
        { "keys": ["Shift", "F9"], "action": "Outliner Window" },
        { "keys": ["Shift", "F10"], "action": "Image Window" },
        { "keys": ["Shift", "F11"], "action": "Text Window" },
        { "keys": ["Shift", "F12"], "action": "Action Window" }
      ]
    }
  ]
}

现在,重启程序,进入 Blender 并按下 Win N,即可看到快捷键列表。

Now, restart the program, enter blender and press win n to see the list of shortcut keys.

自定义背景的方法 Custom Background Image

替换 bg.png 文件。

分享快捷键配置 Share your configs

前往 Issues 区。

shortcutmap's People

Contributors

pluveto avatar

Stargazers

 avatar fan.zhang avatar  avatar zhang zhiguo avatar  avatar Reao Wang avatar Peng Liu avatar  avatar 四朵鱼 avatar  avatar  avatar  avatar  avatar baobao avatar James YAO avatar  avatar miniat avatar Wang avatar ingramchen avatar  avatar Shunin avatar  avatar  avatar KeLee avatar  avatar  avatar Andre Wei avatar  avatar  avatar 法号阿兴 avatar  avatar Chris Wu avatar 胡泽善 avatar Code_PhantomPain avatar bacao avatar Jarrett Ye avatar

Watchers

 avatar

Forkers

yongzhi444

shortcutmap's Issues

Intellj IDEA 快捷键分享

Download

shortcuts.zip

Preview

{
  "app": "IntelliJ IDEA",
  "moduleName": "^idea(\\d*).exe$",
  "author": "pluveto",
  "version": "1.0",
  "description": "Shortcuts for IntelliJ IDEA",
  "groups": [
    {
      "name": "Most useful",
      "shortcuts": [
        {
          "keys": ["Ctrl", "Alt", "L"],
          "action": "Reformat code"
        },
        {
          "keys": ["Shift", "F6"],
          "action": "Rename"
        },
        {
          "keys": ["Ctrl", "Alt", "O"],
          "action": "Optimize imports"
        },
        {
          "keys": ["Shift", "Shift"],
          "action": "Search Everywhere"
        },
        {
          "keys": ["Ctrl", "Shift", "A"],
          "action": "Find Action/Commands"
        },
        {
          "keys": ["Alt", "F7"],
          "action": "Find Usages"
        },
        { "keys": ["Ctrl", "F"], "action": "Find" },
        { "keys": ["Ctrl", "R"], "action": "Replace" },
        { "keys": ["Ctrl", "LFind"], "action": "next" }
      ]
    },
    {
      "name": "Run / Debug",
      "shortcuts": [
        {
          "keys": ["Shift", "F10"],
          "action": "Run"
        },
        {
          "keys": ["Shift", "F9"],
          "action": "Debug"
        },
        {
          "keys": ["F7"],
          "action": "Step into"
        },
        {
          "keys": ["F8"],
          "action": "Step over"
        },
        {
          "keys": ["Shift", "F7"],
          "action": "Smart step into"
        },
        {
          "keys": ["Shift", "F8"],
          "action": "Step out"
        }
      ]
    },
    {
      "name": "Refactoring",
      "shortcuts": [
        {
          "keys": ["Ctrl", "Alt", "M"],
          "action": "Extract Method"
        },
        { "keys": ["Ctrl", "Alt", "V"], "action": "Extract Variable" },
        { "keys": ["Ctrl", "Alt", "F"], "action": "Extract Field" },
        { "keys": ["Ctrl", "Alt", "C"], "action": "Extract Constant" },
        { "keys": ["Ctrl", "Alt", "P"], "action": "Extract Parameter" }
      ]
    }
  ]
}

小建议

能否修改默认调用快捷键
有挺多软件默认 Win+N 已经占用。

几个建议

~新增自定义快捷键的功能
~快捷键列表字体无法自定义,中文字体显示效果不佳
~呼出快捷键一览界面后,只有按 Esc 或 Windows + N 组合键才能退出界面,建议提供相关提示,或任意键均可退出
~目前每组(列)最多只能显示13个快捷键,更多内容无法显示(不过可能常用的快捷键也不会有3×13=39个这么多哈)
~呼出快捷键一览界面时,可以考虑半透明界面,以及加入界面显示出现淡入效果,让界面更优雅

另外,代码可以写成下面这样挺方便的,我用 Excel 做好后复制到文本编辑器,
然后把 Tab 批量替换删掉即可。
{ "keys": ["Ctrl", "Alt", "V"], "action": "Extract Variable" }

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.