Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 64 additions & 6 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,30 +1,88 @@
[
// Steal open command and use it for iOpener.
{ "keys": ["ctrl+o"], "command": "i_opener" },

// Allow over-riding of iOpener, and show normal system dialog.
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_file" },
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_file" },

// Be especially careful editing the settings below.

////////////////////////////////////////////////////////////////////////////
// Do not edit //
////////////////////////////////////////////////////////////////////////////
// Auto-complete path key.
{
"keys": ["tab"],
"command": "i_opener_complete",
"context": [{"key": "i_opener"}]
},

// Scroll up through history.
{
"keys": ["up"],
"command": "i_opener_cycle_history",
"context": [{"key": "i_opener"}],
"args": {"direction": "up"}
},

// Scroll down through history.
{
"keys": ["down"],
"command": "i_opener_cycle_history",
"context": [{"key": "i_opener"}],
"args": {"direction": "down"}
},

// Scroll up through folder list.
{
"keys": ["ctrl+up"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "scroll_up"}
},

// Scroll down through folder list.
{
"keys": ["ctrl+down"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "scroll_down"}
},

// Show user's Home folder.
{
"keys": ["ctrl+h"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_home_folder"}
},

// Show the folder of the current File.
{
"keys": ["ctrl+f"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_file_folder"}
},

// Show the current Project folders.
{
"keys": ["ctrl+p"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_project_folders"}
},

// Show the User defined folders; set by the "folders" setting.
{
"keys": ["ctrl+u"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_user_folders"}
},

// Show All the folders; set by the "folder_sequence" setting.
{
"keys": ["ctrl+a"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_folder_sequence_folders"}
}
////////////////////////////////////////////////////////////////////////////
]
70 changes: 64 additions & 6 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,30 +1,88 @@
[
// Steal open command and use it for iOpener.
{ "keys": ["super+o"], "command": "i_opener" },

// Allow over-riding of iOpener, and show normal system dialog.
{ "keys": ["super+shift+o"], "command": "prompt_open_file" },
{ "keys": ["super+shift+o"], "command": "prompt_open_file" },

// Be especially careful editing the settings below.

////////////////////////////////////////////////////////////////////////////
// Do not edit //
////////////////////////////////////////////////////////////////////////////
// Auto-complete path key.
{
"keys": ["tab"],
"command": "i_opener_complete",
"context": [{"key": "i_opener"}]
},

// Scroll up through history.
{
"keys": ["up"],
"command": "i_opener_cycle_history",
"context": [{"key": "i_opener"}],
"args": {"direction": "up"}
},

// Scroll down through history.
{
"keys": ["down"],
"command": "i_opener_cycle_history",
"context": [{"key": "i_opener"}],
"args": {"direction": "down"}
},

// Scroll up through folder list.
{
"keys": ["super+up"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "scroll_up"}
},

// Scroll down through folder list.
{
"keys": ["super+down"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "scroll_down"}
},

// Show user's Home folder.
{
"keys": ["super+h"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_home_folder"}
},

// Show the folder of the current File.
{
"keys": ["super+f"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_file_folder"}
},

// Show the current Project folders.
{
"keys": ["super+p"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_project_folders"}
},

// Show the User defined folders; set by the "folders" setting.
{
"keys": ["super+u"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_user_folders"}
},

// Show All the folders; set by the "folder_sequence" setting.
{
"keys": ["super+a"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_folder_sequence_folders"}
}
////////////////////////////////////////////////////////////////////////////
]
72 changes: 65 additions & 7 deletions Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,30 +1,88 @@
[
// Steal open command and use it for iOpener.
{ "keys": ["ctrl+o"], "command": "i_opener" },

// Allow over-riding of iOpener, and show normal system dialog.
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_file" },
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_file" },

// Be especially careful editing the settings below.


////////////////////////////////////////////////////////////////////////////
// Do not edit //
////////////////////////////////////////////////////////////////////////////
// Auto-complete path key.
{
"keys": ["tab"],
"command": "i_opener_complete",
"context": [{"key": "i_opener"}]
},

// Scroll up through history.
{
"keys": ["up"],
"command": "i_opener_cycle_history",
"context": [{"key": "i_opener"}],
"args": {"direction": "up"}
},

// Scroll down through history.
{
"keys": ["down"],
"command": "i_opener_cycle_history",
"context": [{"key": "i_opener"}],
"args": {"direction": "down"}
},

// Scroll up through folder list.
{
"keys": ["ctrl+up"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "scroll_up"}
},

// Scroll down through folder list.
{
"keys": ["ctrl+down"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "scroll_down"}
},

// Show user's Home folder.
{
"keys": ["ctrl+h"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_home_folder"}
},

// Show the folder of the current File.
{
"keys": ["ctrl+f"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_file_folder"}
},

// Show the current Project folders.
{
"keys": ["ctrl+p"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_project_folders"}
},

// Show the User defined folders; set by the "folders" setting.
{
"keys": ["ctrl+u"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_user_folders"}
},

// Show All the folders; set by the "folder_sequence" setting.
{
"keys": ["ctrl+a"],
"command": "i_opener_folder_list",
"context": [{"key": "i_opener"}],
"args": {"operation": "show_folder_sequence_folders"}
}
////////////////////////////////////////////////////////////////////////////
]
59 changes: 23 additions & 36 deletions Main.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@
"caption": "iOpener",
"children":
[
{
"caption": "Settings",
"command": "edit_settings",
"args":
{
"base_file": "${packages}/iOpener/i_opener.sublime-settings",
"user_file": "${packages}/User/i_opener.sublime-settings",
"default": "{\n\t$0\n}\n"
}
},
{ "caption": "-" },
{
"caption": "Settings – Default",
"command": "open_file", "args":
Expand All @@ -41,53 +52,29 @@
{ "caption": "-" },
// Default Key mappings
{
"command": "open_file",
"id": "bindings",
"args": {
"file": "${packages}/iOpener/Default (Windows).sublime-keymap",
"platform": "Windows"
},
"caption": "Key Bindings – Default"
},
{
"command": "open_file",
"args": {
"file": "${packages}/iOpener/Default (OSX).sublime-keymap",
"platform": "OSX"
},
"caption": "Key Bindings – Default"
"caption": "Key Bindings",
"command": "edit_settings",
"args":
{
"base_file": "${packages}/iOpener/Default ($platform).sublime-keymap",
"user_file": "${packages}/User/Default ($platform).sublime-keymap",
"default": "[\n\t$0\n]\n"
}
},
{ "caption": "-" },
{
"command": "open_file",
"id": "bindings",
"args": {
"file": "${packages}/iOpener/Default (Linux).sublime-keymap",
"platform": "Linux"
"file": "${packages}/iOpener/Default ($platform).sublime-keymap",
},
"caption": "Key Bindings – Default"
},

// User Key mappings
{
"command": "open_file",
"args": {
"file": "${packages}/User/Default (Windows).sublime-keymap",
"platform": "Windows"
},
"caption": "Key Bindings – User"
},
{
"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"
"file": "${packages}/User/Default ($platform).sublime-keymap",
},
"caption": "Key Bindings – User"
}
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ Use `cmd + o` or `cntl + o` as usual (or choose `Find File` in the command palle

- Opening a path that doesn't exist will create a new file or directory

Certain paths are available with shortcuts

- Press `ctrl + h` to auto-fill your home directory

- Press `ctrl + f` to auto-fill the folder of the current file

- Press `ctrl + p` to auto-fill and cycle through the current project folders

- Press `ctrl + u` to auto-fill and cycle through user-defined folders in settings

- Press `ctrl + a` to cycle through all of these, based on the order you specify in settings

- Use `ctrl + up` and `ctrl + down` to cycle through the folder lists

![demo](https://raw.github.com/rosshemsley/iOpener/screenshots/demo.gif)

NB
Expand Down
Loading