Code Monkey home page Code Monkey logo

st-quickopenfile's Introduction

QuickOpenFile

Feature

Dynamically generate context menus for you, allowing you to open other files in the current directory with the right mouse button. English menu

Installation

This plugin depends on the dctxmenu plugin. Before installing this plugin, you must install dctxmenu plugin.

The following steps assume that you already have Package Control installed.

  1. Copy the URL of this repository: https://github.com/absop/QuickOpenFile
  2. Enter into Sublime Text, press down the shortcut Ctrl+Shift+P to enter into Command Palette
  3. Input the command pcar(Package Control: Add Repository)
  4. Press down the shortcut Ctrl+V, then Enter
  5. Using Package Control to install this package
    1. Press down Ctrl+Shift+P
    2. Input pcip(Package Control: Install Package)
    3. Input QuickOpenFile

Examples

If you mainly use English, with the default settings, click the right mouse button, you will get menu similar to the one shown below English menu

Or Chinese, with the following settings

{
    "caption" : "快速打开",

    "file_menus" : [
        {
            "caption" : "在Sublime Text中打开",
            "command" : "open_file",
            "args" : {"file" : "${path}"},
        },
        {
            "caption" : "选择打开方式",
            "command" : "open_file_with",
            "args" : {"file" : "${path}"},
        },
        {
            "caption" : "用默认应用打开",
            "command" : "open_file_with_default_application",
            "args" : {"file" : "${path}"},
        },
        {
            "caption" : "查看图片",
            "command" : "open_file_with_default_application",
            "args" : {"file" : "${path}"},
            "selector" : [
                "*.pdf",
                "*.png",
                "*.jpg",
                "*.jpeg"
            ]
        }
    ]
}

the plugin will crate some menus like this for you Chinese menu

Key Bindings

Quick open files with popup menu.

[
    {
        "keys": ["alt+m"],
        "command": "open_file_popup_menu",
        "args": {
            "command": "open_file"
        }
    },
    {
        "keys": ["alt+shift+m"],
        "command": "open_file_popup_menu",
        "args": {
            "command": "open_file_with_default_application"
        }
    }
]

st-quickopenfile's People

Contributors

absop avatar

Watchers

James Cloos avatar  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.