dev-mattst branch; ST2 support fixed and new folder list scrolling feature#26
dev-mattst branch; ST2 support fixed and new folder list scrolling feature#26
Conversation
There was a problem hiding this comment.
Hm, worth getting to the bottom of this probably
|
Perhaps update Readme? |
|
Looking good, will finish reviewing later! |
|
Hi, Concerning your query about the import: It is due to the new syntax for explicit relative imports introduced in Python v3. See the following StackOverflow answer: python: how to import the class within the same directory or sub directory However it only seems to be required in packages, as explained at length on another StackOverflow page, here: Relative imports in Python 3 The code is a bit ugly but I don't see any way around it. [Except by using a I'll update Are you going to merge the pull request? I seem to have the required permission level to do so but don't want to overstep the mark, especially if you haven't reviewed my code. All the best. |
Usual way to do these things is wait until I +1 it, (after review), then I'll do that when I get a bit of spare time - Feel free to keep pinging me On Thu, Dec 17, 2015 at 5:32 PM, mattst notifications@github.com wrote:
|
Hi there,
There is a minor change and a major change.
pathsandmatchingmodules.The folder list scrolling is similar to the history scrolling feature. A folder list is created from the following possible locations: the user's home folder, the folder of the current file, the project folders, and additional user set folders which can be added in the settings file. The order the folders appear in can be controlled by the user in the
i_opener.sublime-settingswith thefolder_sequencesetting, and the user's additional folders can be set with thefolderssetting.The
i_opener.sublime-settingsfile has detailed instructions.Moving up and down the folder list is almost identical to the history feature except that a modifier key is used.
ctrl+up/downfor Linux/Windows,super+up/downfor OSX.In addition users can change to different folders and folder lists using key bindings.
ctrl+h- display the home folder.ctrl+f- display the folder of current file.ctrl+p- load project folders, display the first one, and allow scrolling through them.ctrl+u- load the user defined folders from the settings file, display the first one, and allow scrolling through them.ctrl+a- load the folders list created usingfolder_sequencesetting, display the first one, and allow scrolling through them. This is the initial folder list when the plugin starts.superin place ofctrl.This feature has made both the
get_current_directory()function and theuse_project_dirsetting redundant; both have been removed.Tested and working with ST v3 and v2 on both Linux and Windows XP. Completely untested on OSX, you wouldn't happen to be an OSX user would you?
A few other minor changes were made; e.g. a few typos, comments, a variable or two renamed, and the check for ST v2 or v3 in
iOpenerCommandis now set to the positive rather than the negative, in keeping with good practice.I hope this meets with your approval.