Git Product home page Git Product logo

shortcutplus's Introduction

对系统中的快捷键提供更好的应用体验

alt+tab(任务切换)

模仿案例:Alt Tab Terminator

目前只做了windows的版本

特性

  • 技术栈:vite + vue3 + typescript + electron + ffi-napi
  • 提供了可以基于程序名称分类的任务展示
  • 可以搜索运行中的任务

效果图

动画.gif

需要完成的功能

  • 获取当前系统中所有显示在alt-tab显示栏中的应用
  • 获取到的任务窗口需要根据当前的所属的程序来归类
  • 任务点击后能够切换
  • 任务窗口获取对应的图标信息
  • 要有任务的缩略图的预览

项目搭建

参考如下: 1.ts+vite 构建 electron 项目

安装使用

  • 获取项目代码

git clone https://gitee.com/yellres/shortcutsplus.git

  • 安装依赖

npm i

npm i 时候会安装ffi-napi这个包,其中ffi-napi依赖于node-gyp。其中node-gyp要求电脑中有pythonvisual C++ Build Tools等工具。

  • 运行项目

npm run dev

项目中遇到的问题

  1. 如何获取当前系统中所有运行中的程序?

electron中并没有提供直接的api调用。 所以这里我使用node-ffi调用系统原生dll函数,来获取所有的进程信息。 参考了如下:

  1. 系统中的icon图标,进程的预览图如何传递到渲染进程中?

目前icon图标使用了electron中自带的 app.getFileIcon方法。 当前进程的预览图暂时没有方法来获取。

vite 中 tailwindcss 配置失败

shortcutplus's People

Contributors

yellres avatar

Stargazers

 avatar Roman avatar

Watchers

 avatar

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.