GithubHelp home page GithubHelp logo

anyshortcut / anyshortcut-cli Goto Github PK

View Code? Open in Web Editor NEW
93.0 93.0 3.0 142 KB

CLI (Commnad line interface) version of Anyshortcut

Home Page: https://anyshortcut.com

License: Apache License 2.0

Rust 95.13% Shell 4.00% PowerShell 0.87%
cli command-line-app command-line-tool productivity-tools rust shortcuts

anyshortcut-cli's Introduction

Anyshortcut

Chrome Web Store Mozilla Add-on license-apache

Forget mouse clicks, embrace shortcuts! Customize keyboard shortcuts for your frequently visited websites.

https://anyshortcut.com

Installation

Contribution

$ git clone [email protected]:anyshortcut/anyshortcut.git
Cloning into 'anyshortcut'...

$ cd anyshortcut

$ tree -L 1  
.
├── README.md
├── build # The Webpack build directory
├── extension # The destination directory build from Webpack for the whole extension.
├── manifest # Generate platform-specific manifest.json respectively.
├── package-lock.json
├── package.json
├── src # The source code directory of Anyshortcut

$ npm install

$ npm run build_production # For Chromium

$ npm run build_production:firefox # For Firefox

The extension/ directory is the destination directory of extension.

Custom build lodash

lodash include command

Reference: https://lodash.com/custom-builds

npm i -g lodash-cli
lodash include=isEmpty,pickBy,extend,escape,cloneDeep,forOwn,forEach,debounce,throttle,sortBy -d -o src/js/vendor/lodash.includes.js

then configure in webpack config file,

resolve: {
    alias: {
        'lodash$': path.join(__dirname, '..', 'src/js/vendor/lodash.includes.js'),
    }
}

Precompile lodash templates to avoid use unsafe-eval

There is an awesome way to precompile templates by custom build.

Use the template command to pass the file path pattern used to match template files to precompile.

Note: Precompiled templates are assigned to the _.templates object.

lodash template="./*.jst"

lodash settings="{variable:'data'}" template="./src/templates/*.html" -d -o src/js/script/templates.js

anyshortcut-cli's People

Contributors

folyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

anyshortcut-cli's Issues

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/xxxx/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/socket2-0.3.8/src/sockaddr.rs:153:9
|
153 | mem::transmute::<SocketAddrV4, sockaddr_in>(v4);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: SocketAddrV4 (48 bits)
= note: target type: sockaddr_in (128 bits)

For more information about this error, try rustc --explain E0512.
error: could not compile socket2 due to previous error

没明白这个报错的原因,是因为rust版本的原因吗?(我rust版本是rustc 1.65.0 (897e37553 2022-11-02)),并且Cargo.toml清单文件中并没有依赖socket2-0.3.8这个crate

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.