AncientRoman / SublimeOpenFileOverSSH

A lightweight Sublime Plugin that allows a File to be Opened on a Remote Machine over ssh and seamlessly edited and Saved back to the remote machine
MIT License
6 stars 0 forks source link

[feature] Remember the last selected path #8

Open ydong08 opened 3 weeks ago

ydong08 commented 3 weeks ago

Can an entry be added here to indicate the last selected path ? That will help to achieve faster file navigation. last_path

AncientRoman commented 3 weeks ago

The default selection in the file browser should be the last selected/opened path. If it's not, let me know and I'll fix it. Having the last opened path be the default selection was the fastest way I could think of to reopen or reenter the same file/folders.

ydong08 commented 3 weeks ago

Yeah, it focuses on last selected/opened path per level, which is an efficient way. However, if a project has many directory levels, it's another time-saving way that focus the last selected full path at the first moment. for example, it focuses /home/github directory, and also shows the last selected full path, such as /home/github/branch/project/product/module/source.

AncientRoman commented 3 weeks ago

Alright yeah, I feel you. I'll add that with a setting to control its visibility. Until then, you can set a project directory of sorts by typing the path in the server input like: user@server.ext:github/branch/project/product/ Thanks!

AncientRoman commented 2 days ago

I added a Last Dir action which you can enable by setting the "lastDirAction" setting to true. I will continue to tweak it, but let me know what you think and if it's what you were looking for 👍

ydong08 commented 2 days ago

Yeah, that is all what i want. I try it just now, it works well.

AncientRoman commented 1 day ago

Sweeeet. Appreciate the feedback.