evandrocoan / AmxxEditor

Auto-complete and Build System for Amx Mod X on Sublime Text
GNU General Public License v3.0
9 stars 3 forks source link

Suggestion: Add command to create the `Amx Mod X` #5

Closed xpt1x closed 6 years ago

xpt1x commented 6 years ago

You should use a Menu itself not submenu from packages It allows users quickly to start a New Plugin You should add Edit Plugins.ini too and maybe get its path from include_directory which is already defined in Amxmodx.SublimeSettings by trimming it a lil bit 😊

What you think @evandrocoan ?

oldstyle

evandrocoan commented 6 years ago

I could add a command to create the menu and detect the plugins.ini.

I already include a full menu when installing the https://github.com/evandrocoan/AmxxChannel, currently you can add the menu by creating this file on you Packages/User/Main.sublime-menu folder of Sublime Text:

[
    {
        "caption": "Amx Mod X",
        "id": "amxmodx",
        "children":
        [
            {
                "command": "new_amxx_include",
                "caption": "New Include"
            },
            {
                "command": "new_amxx_plugin",
                "caption": "New Plug-In"
            },
            {
                "command": "open_file",
                "args": {"file": "${packages}/User/Amxmodx/AmxxPawn.sh"},
                "caption": "Configure Linux/Cygwin Compiler"
            },
            {
                "command": "open_file",
                "args": {"file": "${packages}/User/Amxmodx/AmxxPawn.bat"},
                "caption": "Configure Windows/Bat Compiler"
            },
            { "caption": "-" },
            {
                "command": "open_file",
                "args": { "file": "${packages}/User/AmxmodxConsole.sublime-settings" },
                "caption": "Edit Amxmodx Console Settings"
            },
            {
                "command": "open_file",
                "args": { "file": "${packages}/User/Amxmodx.sublime-settings" },
                "caption": "Edit Amxmodx Autocompletion Settings"
            },
        ]
    },
]
janosharsanyi commented 6 years ago

Why would you use the menu? @xpt1x Shift+Ctrl+P New plugin Can you imagine what would happen if every plugin put their menu there?

xpt1x commented 6 years ago

@janosharsanyi yeah i underatand that's why i highlighted plugins. Ini part coz i would really like to see this in New update i already added the menu for my convenience ( which was jst a normal suggestion as default amx studio too have this type ) but adding edit plugins. Ini in menu will be great, will you do that @evandrocoan ?

evandrocoan commented 6 years ago

Some day I may add this. But not this year at least.

evandrocoan commented 6 years ago

I just added a command to create the menu. But it will only be available when the version 3.0.0 of the package is released. I will release it soon as the following pull request gets merged:

  1. https://github.com/wbond/package_control_channel/pull/7193 Renamed Amxmodx package to AmxxEditor

After that, you will be able to access the command on:

Prefences -> Package Settings -> AmxxEditor -> Install AmxxEditor Menu

image