This is a bilingual snapshot page saved by the user at 2024-10-23 19:12 for https://github.com/mantasjasikenas/flow-launcher-shortcuts-plugin?tab=readme-ov-file, provided with bilingual support by Immersive Translate. Learn how to save?
Skip to content

A powerful Flow Launcher plugin for quickly opening users defined shortcuts.

Notifications You must be signed in to change notification settings

mantasjasikenas/flow-launcher-shortcuts-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7abf333 · Sep 25, 2024
Jan 18, 2024
May 6, 2024
Sep 25, 2024
Sep 9, 2024
Sep 9, 2024
Aug 3, 2022
Apr 4, 2024
Sep 25, 2024
Sep 9, 2024
Apr 4, 2024

Repository files navigation

Shortcuts logo

Shortcuts Plugin
Quickly launch your shortcuts
Plugin Phím tắt Khởi chạy nhanh các phím tắt của bạn


Warning Cảnh báo

This is a work-in-progress and not the finished product.
Đây là sản phẩm đang trong quá trình hoàn thiện chứ không phải sản phẩm hoàn thiện.

Feel free to leave suggestions or report bugs in the issues section.
Vui lòng để lại đề xuất hoặc báo cáo lỗi trong phần vấn đề .

Features Đặc trưng

Shortcuts plugin features include:
Các tính năng của plugin phím tắt bao gồm:

  • Multiple shortcut types support
    Hỗ trợ nhiều loại phím tắt
  • System and user defined variables support
    Hỗ trợ các biến do hệ thống và người dùng xác định
  • Import and export shortcuts
    Phím tắt nhập và xuất
  • Duplicate shortcuts Phím tắt trùng lặp
  • Open configuration files Mở tập tin cấu hình
  • Show list of commands Hiển thị danh sách lệnh
  • Show or set plugin keyword
    Hiển thị hoặc đặt từ khóa plugin
  • Allows to modify configuration files directly
    Cho phép sửa đổi tập tin cấu hình trực tiếp
  • Backup and restore shortcuts
    Phím tắt sao lưu và khôi phục

Settings Cài đặt

The following general options are available on the Flow Launcher settings page.
Các tùy chọn chung sau đây có sẵn trên trang cài đặt Flow Launcher.

Setting Cài đặt Description Sự miêu tả
Activation keyword Từ khóa kích hoạt Define the action keyword shortcut to activate plugin
Xác định phím tắt từ khóa hành động để kích hoạt plugin
Shortcuts file path Đường dẫn tập tin lối tắt Path to the shortcuts file. If not set, default path will be used
Đường dẫn đến tập tin phím tắt. Nếu không được đặt, đường dẫn mặc định sẽ được sử dụng
Variables file path Đường dẫn tệp biến Path to the variables file. If not set, default path will be used
Đường dẫn đến tệp biến. Nếu không được đặt, đường dẫn mặc định sẽ được sử dụng

Usage Cách sử dụng

The following commands are available for the Shortcuts plugin.
Các lệnh sau có sẵn cho plugin Phím tắt.

Command Yêu cầu Description Sự miêu tả Example Ví dụ
q Show available commands Hiển thị các lệnh có sẵn q to show available commands
q để hiển thị các lệnh có sẵn
q <shortcut_name> <optional_arguments> Run shortcut Chạy phím tắt q search -q "flow launcher" to run shortcut with name search and pass -q "flow launcher" as arguments. Arguments are optional.
q search -q "flow launcher" để chạy phím tắt có search tên và truyền -q "flow launcher" làm đối số. Đối số là tùy chọn.
q add <shortcut_type> <shortcut_name> <shortcut_arguments> Add new shortcut Thêm phím tắt mới q add directory doc C:\Users\my_user\Documents to add a shortcut named doc to the Documents folder
q add directory doc C:\Users\my_user\Documents để thêm lối tắt có tên doc vào thư mục Documents
q remove <shortcut_name> Remove shortcut Xóa phím tắt q remove doc to remove shortcut with name doc
q remove doc để xóa lối tắt có tên doc
q var list Show all variables Hiển thị tất cả các biến q var list to show all variables
q var list để hiển thị tất cả các biến
q var add <variable_name> <variable_value> Show or set variable Hiển thị hoặc đặt biến q var add appdata C:\Users\my_user\AppData\Roaming to set value of the appdata variable
q var add appdata C:\Users\my_user\AppData\Roaming để đặt giá trị của biến appdata
q var remove <variable_name> Remove variable Xóa biến q var remove appdata to remove variable with name appdata
q var remove appdata để xóa biến có tên appdata
q keyword get Show plugin action keywords
Hiển thị từ khóa hành động plugin
q keyword get to show all plugin action keywords
q keyword get để hiển thị tất cả các từ khóa hành động plugin
q keyword set <keyword> Set plugin keyword Đặt từ khóa plugin q keyword set ss to set plugin keyword to ss. Existing keywords will be removed.
q keyword set ss để đặt từ khóa plugin thành ss . Các từ khóa hiện tại sẽ bị xóa.
q keyword add <keyword> Add additional plugin keyword
Thêm từ khóa plugin bổ sung
q keyword add quick to add quick as a keyword for the plugin.
q keyword add quick để thêm quick làm từ khóa cho plugin.
q keyword remove <keyword> Remove plugin keyword Xóa từ khóa plugin q keyword remove quick to remove quick as a keyword for the plugin.
q keyword remove quick để xóa quick làm từ khóa cho plugin.
q duplicate <shortcut_name> <new_shortcut_name> Duplicate shortcut Phím tắt trùng lặp q duplicate doc doc_copy to duplicate shortcut with name doc to doc_copy
q duplicate doc doc_copy thành sao chép lối tắt có tên doc thành doc_copy
q config Open configuration files Mở tập tin cấu hình q config to show available configuration files
q config để hiển thị các tập tin cấu hình có sẵn
q reload Reload configuration files
Tải lại tập tin cấu hình
q reload to reload configuration files
q reload để tải lại tập tin cấu hình
q import Import shortcuts Nhập phím tắt q import to import shortcuts from JSON file
q import để nhập các phím tắt từ tệp JSON
q export Export shortcuts Xuất phím tắt q export to export shortcuts to JSON file
q export để xuất các phím tắt sang tệp JSON
q settings Open plugin settings Mở cài đặt plugin q settings to open Flow Launcher settings page
q settings để mở trang cài đặt Flow Launcher
q group list Show all groups Hiển thị tất cả các nhóm q group list to show all groups
q group list để hiển thị tất cả các nhóm
q group add <group_name> <existing_shortcuts_keys> Add new group Thêm nhóm mới q group add search google bing duckduckgo to add a group named search`` with shortcuts google, bingandduckduckgo` These shortcuts should already exist.
q group add search google bing duckduckgo để thêm một nhóm có tên search`` with shortcuts google , bing and duckduckgo` Những phím tắt này đã tồn tại.
q group remove <group_name> Remove group Xóa nhóm q group remove search to remove group with name search
q group remove search để xóa nhóm có search tên
q report Report a bug Báo cáo lỗi q report to report a bug
q report để báo lỗi
q help Show help Hiển thị trợ giúp q help to show help
q help để thể hiện sự giúp đỡ
q version Show version Hiển thị phiên bản q version to show installed plugin version
q version để hiển thị phiên bản plugin đã cài đặt
q backup Show available backup commands
Hiển thị các lệnh sao lưu có sẵn
q backup to show available backup commands
q backup để hiển thị các lệnh sao lưu có sẵn
q backup list Show all backups Hiển thị tất cả các bản sao lưu q backup list to show all backups
q backup list để hiển thị tất cả các bản sao lưu
q backup create Create a new backup Tạo bản sao lưu mới q backup create to create a new backup
q backup create để tạo bản sao lưu mới
q backup restore Restore a backup Khôi phục bản sao lưu q backup restore to to display a list of available backups and restore the selected one
q backup restore để hiển thị danh sách các bản sao lưu có sẵn và khôi phục bản sao lưu đã chọn
q backup delete Delete a backup Xóa bản sao lưu q backup delete to to display a list of available backups and delete the selected one
q backup delete to để hiển thị danh sách các bản sao lưu có sẵn và xóa bản sao lưu đã chọn
q backup clear Clear all backups Xóa tất cả các bản sao lưu q backup clear to clear all backups. It will delete all backups.
q backup clear để xóa tất cả các bản sao lưu. Nó sẽ xóa tất cả các bản sao lưu.

Shortcuts Phím tắt

The following shortcut types are available. More types will be added in the future.
Các loại phím tắt sau đây có sẵn. Nhiều loại sẽ được bổ sung trong tương lai.

Shortcut type Kiểu phím tắt Description Sự miêu tả Required arguments Đối số bắt buộc
directory Open directory in file explorer
Mở thư mục trong file explorer
directory - path to the directory
directory - đường dẫn đến thư mục
file Open file in default application
Mở tệp trong ứng dụng mặc định
file - path to the file
file - đường dẫn đến tập tin
url Open URL in default browser
Mở URL trong trình duyệt mặc định
url - URL to open
url - URL để mở
shell Run shell command Chạy lệnh shell type - shell type (cmd or powershell), command - shell command arguments, silent - run command without opening shell window
type - loại shell ( cmd hoặc powershell ), command - đối số lệnh shell, lệnh silent - chạy mà không cần mở cửa sổ shell

Example of adding a new shortcut
Ví dụ về thêm phím tắt mới

If you want to add a new shortcut, you can use the following commands. Keep in mind that if shortcut contains spaces, you should use quotes around the arguments. Also, if you need to use quotes in the arguments, you should escape them. You can do that by using \" or using Unicode escape sequence \u0022. For example, \"C:\Program Files\MyApp\app.exe\"
Nếu bạn muốn thêm một phím tắt mới, bạn có thể sử dụng các lệnh sau. Hãy nhớ rằng nếu phím tắt chứa dấu cách, bạn nên sử dụng dấu ngoặc kép xung quanh các đối số. Ngoài ra, nếu bạn cần sử dụng dấu ngoặc kép trong các đối số, bạn nên thoát khỏi chúng. Bạn có thể làm điều đó bằng cách sử dụng \" hoặc sử dụng chuỗi thoát Unicode \u0022 . Ví dụ: \"C:\Program Files\MyApp\app.exe\"

  • Directory shortcut Phím tắt thư mục
q add directory doc C:\Users\tutta\Documents
q add directory pvp "C:\Users\tutta\OneDrive - Kaunas University of Technology\KTU\6 semester\Product Development Project"
  • File shortcut Phím tắt tập tin
q add file my_file C:\Users\my_user\Documents\my_file.txt
q add file my_file "C:\Users\my user\Documents\my_file.txt"
  • URL shortcut lối tắt URL
q add url google www.google.com
  • Shell shortcut Phím tắt vỏ
q add shell cmd k1 true \"C:\Users\tutta\AppData\Local\Programs\Android Studio\bin\studio64.exe\" \"C:\Users\tutta\AndroidStudioProjects\De mo\DemoApp\"
q add shell powershell k2 false "Write-Host 'Hello, World!'"

Configuration files Tệp cấu hình

The following configuration files are available.
Các tập tin cấu hình sau đây có sẵn.

Configuration file Tệp cấu hình Description Sự miêu tả
shortcuts.json Contains all shortcuts. If not set, default path will be used.
Chứa tất cả các phím tắt. Nếu không được đặt, đường dẫn mặc định sẽ được sử dụng.
variables.json Contains all variables. If not set, default path will be used.
Chứa tất cả các biến. Nếu không được đặt, đường dẫn mặc định sẽ được sử dụng.

File structure Cấu trúc tập tin

Shortcuts Phím tắt

If you manually edit the shortcuts file, make sure to reload the plugin for changes to take effect. You can do that by running q reload command.
Nếu bạn chỉnh sửa tệp lối tắt theo cách thủ công, hãy đảm bảo tải lại plugin để các thay đổi có hiệu lực. Bạn có thể làm điều đó bằng cách chạy lệnh q reload .

Important Quan trọng

Make sure that first attribute of the shortcut is the shortcut type.
Đảm bảo rằng thuộc tính đầu tiên của phím tắt là loại phím tắt.

[
  {
    "Type": "Directory",
    "Path": "C:\\Users",
    "Key": "users"
  },
  {
    "Type": "File",
    "Path": "C:\\Users\\my_user\\Documents\\my_file.txt",
    "Key": "my_file"
  },
  {
    "Type": "Url",
    "Path": "www.google.com",
    "Key": "google"
  },
  {
    "Type": "Shell",
    "ShellType": "Cmd",
    "Arguments": "\u0022C:\\Users\\tutta\\AppData\\Local\\Programs\\Android Studio\\bin\\studio64.exe\u0022 \u0022C:\\Users\\tutta\\AndroidStudioProjects\\De mo\\DemoApp\u0022",
    "Silent": false,
    "Key": "t2"
  },
  {
    "Type": "Shell",
    "ShellType": "Cmd",
    "Arguments": "echo \u0022C:\\Users\\tutta\\AppData\\Local\\Programs\\Android Studio\\bin\\studio64.exe\u0022 \u0022C:\\Users\\tutta\\AndroidStudioProjects\\De mo\\DemoApp\u0022",
    "Silent": false,
    "Key": "t3"
  },
  {
    "Type": "Shell",
    "ShellType": "Powershell",
    "Arguments": "cd C:\\Users\\tutta\\Storage\\Dev\\Scripts\\unsplash; python unsplash.py",
    "Silent": true,
    "Key": "unsplash"
  },
  {
    "Type": "Group",
    "Shortcuts": [
      {
        "Type": "Url",
        "Url": "www.google.com/search?q=${q}"
      },
      {
        "Type": "Url",
        "Url": "www.bing.com/search?q=${q}"
      },
      {
        "Type": "Url",
        "Url": "www.duckduckgo.com/?q=${q}"
      },
      {
        "Type": "Url",
        "Url": "www.wikipedia.org/wiki/${q}"
      }
    ],
    "Key": "search"
  },
  {
    "Type": "Group",
    "Keys": [
      "meow",
      "g",
      "google"
    ],
    "Key": "multi"
  }
]

Variables Biến

Variables are used to store values that can be used in shortcuts. For example, you can store your user name and use it. Variables can be used in shortcuts by using ${variable_name} syntax. To use system variables, use %variable_name% syntax. Valid variable object attributes are Name and Value.
Các biến được sử dụng để lưu trữ các giá trị có thể được sử dụng trong các phím tắt. Ví dụ: bạn có thể lưu trữ tên người dùng của mình và sử dụng nó. Các biến có thể được sử dụng trong các phím tắt bằng cách sử dụng cú pháp ${variable_name} . Để sử dụng các biến hệ thống, hãy sử dụng cú pháp %variable_name% . Các thuộc tính đối tượng biến hợp lệ là NameValue .

[
  {
    "Name": "user",
    "Value": "my_user"
  },
  {
    "Name": "documents",
    "Value": "C:\\Users\\my_user\\Documents"
  }
]

Screenshots Ảnh chụp màn hình

Commands

Commands

Commands

Licence Giấy phép

The source code for this plugin is licensed under MIT.
Mã nguồn của plugin này được cấp phép theo MIT.

About

A powerful Flow Launcher plugin for quickly opening users defined shortcuts.
Plugin Flow Launcher mạnh mẽ để mở nhanh các phím tắt do người dùng xác định.

Resources

Stars

Watchers

Forks

Packages

No packages published