Skip to content

Commit

Permalink
simplify package
Browse files Browse the repository at this point in the history
  • Loading branch information
titoBouzout committed Mar 7, 2024
1 parent 289fa49 commit d6f12d9
Show file tree
Hide file tree
Showing 9 changed files with 128 additions and 2,540 deletions.
116 changes: 0 additions & 116 deletions Commands.sublime-commands
Expand Up @@ -3,130 +3,14 @@
"caption": "aaaaa_side_bar",
"command": "aaaaa_side_bar"
},
{
"caption": "File: New File Relative to Current View",
"command": "side_bar_new_file"
},
{
"caption": "File: New File Relative to Project Root",
"command": "side_bar_new_file2"
},
{
"caption": "File: New Folder Relative to Current View",
"command": "side_bar_new_directory"
},
{
"caption": "File: New Folder Relative to Project Root",
"command": "side_bar_new_directory2"
},
{
"caption": "File: Rename",
"command": "side_bar_rename"
},
{
"caption": "File: Duplicate",
"command": "side_bar_duplicate"
},
{
"caption": "File: Reveal",
"command": "side_bar_reveal"
},
{
"caption": "File: Locate",
"command": "reveal_in_side_bar"
},
{
"caption": "File: Move",
"command": "side_bar_move"
},
{
"caption": "File: Delete",
"command": "side_bar_delete"
},
{
"caption": "Project: Edit",
"command": "side_bar_project_open_file"
},
{
"caption": "File: Copy Name",
"command": "side_bar_copy_name"
},
{
"caption": "File: Copy Name Encoded",
"command": "side_bar_copy_name_encoded"
},
{
"caption": "File: Copy Path",
"command": "side_bar_copy_path"
},
{
"caption": "File: Copy Path Quoted",
"command": "side_bar_copy_path_quoted"
},
{
"caption": "File: Copy Path (Windows)",
"command": "side_bar_copy_path_absolute_from_project_encoded_windows"
},
{
"caption": "File: Copy Path as URI",
"command": "side_bar_copy_path_encoded"
},
{
"caption": "File: Copy Path Absolute To Project",
"command": "side_bar_copy_path_absolute_from_project"
},
{
"caption": "File: Copy Relative Path To Project",
"command": "side_bar_copy_path_relative_from_project"
},
{
"caption": "File: Copy Path Absolute To Project Encoded",
"command": "side_bar_copy_path_absolute_from_project_encoded"
},
{
"caption": "File: Copy Path Relative To Last Selected View ",
"command": "side_bar_copy_path_relative_to_last_selected_view"
},
{
"caption": "File: Copy as Tag a",
"command": "side_bar_copy_tag_ahref"
},
{
"caption": "File: Copy as Tag script",
"command": "side_bar_copy_tag_script"
},
{
"caption": "File: Copy as Tag style",
"command": "side_bar_copy_tag_style"
},
{
"caption": "File: Copy URL",
"command": "side_bar_copy_url"
},
{
"caption": "File: Search Files",
"command": "side_bar_find_files_path_containing"
},
{
"caption": "File: Open In Browser - Testing Server",
"command": "side_bar_open_in_browser",
"args": {
"paths": [],
"type": "testing"
}
},
{
"caption": "File: Open In Browser - Production Server",
"command": "side_bar_open_in_browser",
"args": {
"paths": [],
"type": "production"
}
},
{
"caption": "Side Bar: Refresh",
"command": "refresh_folder_list"
},
{
"caption": "zzzzz_side_bar",
"command": "zzzzz_side_bar"
Expand Down
52 changes: 1 addition & 51 deletions Main.sublime-menu
Expand Up @@ -32,57 +32,7 @@
"file": "${packages}/User/Side Bar.sublime-settings"
},
"caption": "Settings – User"
},
{ "caption": "-" },
{
"command": "open_file",
"args": {
"file": "${packages}/SideBarEnhancements/Default (OSX).sublime-keymap",
"platform": "OSX"
},
"caption": "Key Bindings – Default"
},
{
"command": "open_file",
"args": {
"file": "${packages}/SideBarEnhancements/Default (Linux).sublime-keymap",
"platform": "Linux"
},
"caption": "Key Bindings – Default"
},
{
"command": "open_file",
"args": {
"file": "${packages}/SideBarEnhancements/Default (Windows).sublime-keymap",
"platform": "Windows"
},
"caption": "Key Bindings – Default"
},
{
"command": "open_file",
"args": {
"file": "${packages}/User/Default (OSX).sublime-keymap",
"platform": "OSX"
},
"caption": "Key Bindings – User"
},
{
"command": "open_file",
"args": {
"file": "${packages}/User/Default (Linux).sublime-keymap",
"platform": "Linux"
},
"caption": "Key Bindings – User"
},
{
"command": "open_file",
"args": {
"file": "${packages}/User/Default (Windows).sublime-keymap",
"platform": "Windows"
},
"caption": "Key Bindings – User"
},
{ "caption": "-" }
}
]
}
]
Expand Down

16 comments on commit d6f12d9

@gusrub
Copy link

@gusrub gusrub commented on d6f12d9 Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I just realized the other day I was missing some of the File: operations I use a lot and wondered what happened so I came to see if anything changed and found this commit. Is there a way to put them back in like in a custom Commands.sublime-commands file in the User's folder? I could just modify the package file and revert it but I guess it would be overwritten on the next update.

Thanks for your work!

@titoBouzout
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have a copy of it locally it wont auto update/overwrite. Which commands are you missing from the command pallete?

@gusrub
Copy link

@gusrub gusrub commented on d6f12d9 Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have a copy of it locally it wont auto update/overwrite. Which commands are you missing from the command pallete?

I installed the package through package control... I mostly use the file paths commands:

Screenshot from 2024-03-15 14-21-11

@titoBouzout
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok I will see to add the copy paths commands

@ckm2k1
Copy link

@ckm2k1 ckm2k1 commented on d6f12d9 Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for adding back the copy path commands, I'm a heavy user as well.

Thank you for this extension!

@gusrub
Copy link

@gusrub gusrub commented on d6f12d9 Mar 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok I will see to add the copy paths commands

That would be awesome, thanks again for the extension! I will send you something in gratitude to your paypal! Do you still use the same account?

@titoBouzout
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gusrub @ckm2k1 There I added back the variete of commands related to "copy", and yes my paypal I think it is the same, I am not sure, here is a link https://www.paypal.com/paypalme/drawuy , thanks for your kindness.

@ckm2k1
Copy link

@ckm2k1 ckm2k1 commented on d6f12d9 Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works like a charm, thanks @titoBouzout!

@gusrub
Copy link

@gusrub gusrub commented on d6f12d9 Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks dude! Sent you something through paypal in appreciation for your work.

@CodeByZach
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@titoBouzout If you don't mind my asking, what was the main goal/purpose of this "simplification"?

@titoBouzout
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the menu smaller and remove functionality I practically don't use, easy to maintain, modernize, etc

@silverzhaojr
Copy link

@silverzhaojr silverzhaojr commented on d6f12d9 Apr 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I use these commands very often:


    {
        "caption": "File: New File Relative to Current View",
        "command": "side_bar_new_file"
    },
    {
        "caption": "File: New File Relative to Project Root",
        "command": "side_bar_new_file2"
    },
    {
        "caption": "File: New Folder Relative to Current View",
        "command": "side_bar_new_directory"
    },
    {
        "caption": "File: New Folder Relative to Project Root",
        "command": "side_bar_new_directory2"
    },

Could you please show me how I can add them back by user.setting? Thanks!

@titoBouzout
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The readme has instructions about how to revert to the previous version

@silverzhaojr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The readme has instructions about how to revert to the previous version

Thanks! I just revert to the old version from the README instruction. But I wonder whether the new version will support adding the missing commands, because currently I'll have to stick to the old version and can never get updated.

@ihstlr
Copy link

@ihstlr ihstlr commented on d6f12d9 Apr 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, the side bar enhancements feature to get paths was an excellent and frequently used option, taking that away is taking is main use away! could this be added back in the next update.
I am happy to donate some if that is reverted back in the next release.

Many Thanks

@titoBouzout
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added commands to create files/folders. Im not sure what command are you missing @ihstlr

Please sign in to comment.