Skip to content

Commit

Permalink
Added menu item under package settings
Browse files Browse the repository at this point in the history
changed default key binding for note buffer to 
ctrl+f4 (closes aziz#1)
  • Loading branch information
aziz committed May 28, 2014
1 parent 71f5c51 commit a2acd8d
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 3 deletions.
39 changes: 39 additions & 0 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[
{ "keys": ["f4"], "command": "notes_list" },
{ "keys": ["ctrl+f4"], "command": "notes_buffer" },
{ "keys": ["super+f4"], "command": "notes_new" },

{ "keys": ["enter"], "command": "notes_buffer_open", "context":
[{ "key": "selector", "operator": "equal", "operand": "text.notes_buffer" }]
},



{ "keys": ["tab"], "command": "note_smart_folding", "context":
[{ "key": "selector", "operator": "equal", "operand": "(markup.heading.1.markdown.note | markup.heading.2.markdown.note | markup.heading.3.markdown.note| markup.heading.4.markdown.note| markup.heading.5.markdown.note| markup.heading.6.markdown.note)" }]
},

{ "keys": ["shift+tab"], "command": "note_global_folding", "context":
[{ "key": "selector", "operator": "equal", "operand": "text.html.markdown.note" } ]
},

{ "keys": ["ctrl+enter"], "command": "note_smart_new_line", "context":
[{ "key": "selector", "operator": "equal", "operand": "(markup.heading.1.markdown.note | markup.heading.2.markdown.note | markup.heading.3.markdown.note| markup.heading.4.markdown.note| markup.heading.5.markdown.note| markup.heading.6.markdown.note)" } ]
},

{ "keys": ["super+enter"], "command": "note_todo_pending", "context":
[{ "key": "selector", "operator": "equal", "operand": "text.html.markdown.note" }]
},

{ "keys": ["super+d"], "command": "note_todo_done", "context":
[{ "key": "selector", "operator": "equal", "operand": "markup.list.unnumbered.todo.markdown" }]
},

{ "keys": ["control+c"], "command": "note_todo_cancel", "context":
[{ "key": "selector", "operator": "equal", "operand": "markup.list.unnumbered.todo.markdown" }]
},

{ "keys": ["f1"], "command": "note_change_color", "context":
[{ "key": "selector", "operator": "equal", "operand": "text.html.markdown.note" }]
}
]
File renamed without changes.
37 changes: 37 additions & 0 deletions Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[
{ "keys": ["f4"], "command": "notes_list" },
{ "keys": ["ctrl+f4"], "command": "notes_buffer" },
{ "keys": ["super+f4"], "command": "notes_new" },

{ "keys": ["enter"], "command": "notes_buffer_open", "context":
[{ "key": "selector", "operator": "equal", "operand": "text.notes_buffer" }]
},

{ "keys": ["tab"], "command": "note_smart_folding", "context":
[{ "key": "selector", "operator": "equal", "operand": "(markup.heading.1.markdown.note | markup.heading.2.markdown.note | markup.heading.3.markdown.note| markup.heading.4.markdown.note| markup.heading.5.markdown.note| markup.heading.6.markdown.note)" }]
},

{ "keys": ["shift+tab"], "command": "note_global_folding", "context":
[{ "key": "selector", "operator": "equal", "operand": "text.html.markdown.note" } ]
},

{ "keys": ["ctrl+enter"], "command": "note_smart_new_line", "context":
[{ "key": "selector", "operator": "equal", "operand": "(markup.heading.1.markdown.note | markup.heading.2.markdown.note | markup.heading.3.markdown.note| markup.heading.4.markdown.note| markup.heading.5.markdown.note| markup.heading.6.markdown.note)" } ]
},

{ "keys": ["super+enter"], "command": "note_todo_pending", "context":
[{ "key": "selector", "operator": "equal", "operand": "text.html.markdown.note" }]
},

{ "keys": ["super+d"], "command": "note_todo_done", "context":
[{ "key": "selector", "operator": "equal", "operand": "markup.list.unnumbered.todo.markdown" }]
},

{ "keys": ["control+c"], "command": "note_todo_cancel", "context":
[{ "key": "selector", "operator": "equal", "operand": "markup.list.unnumbered.todo.markdown" }]
},

{ "keys": ["f1"], "command": "note_change_color", "context":
[{ "key": "selector", "operator": "equal", "operand": "text.html.markdown.note" }]
}
]
64 changes: 64 additions & 0 deletions Main.sublime-menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[
{
"caption": "Preferences",
"mnemonic": "n",
"id": "preferences",
"children":
[
{
"caption": "Package Settings",
"id": "package-settings",
"children":
[
{
"caption": "PlainNotes",
"children":
[
{
"command": "open_file",
"args": {"file": "${packages}/PlainNotes/Notes.sublime-settings", },
"caption": "Settings – Default"
},
{
"command": "open_file",
"args": {"file": "${packages}/User/Notes.sublime-settings"},
"caption": "Settings – User"
},
{ "caption": "-" },
{
"command": "open_file",
"args": {
"file": "${packages}/PlainNotes/Default (OSX).sublime-keymap",
"platform": "OSX"
},
"caption": "Key Bindings – Default"
},
{
"command": "open_file",
"args": {
"file": "${packages}/PlainNotes/Default (Linux).sublime-keymap",
"platform": "Linux"
},
"caption": "Key Bindings – Default"
},
{
"command": "open_file",
"args": {
"file": "${packages}/PlainNotes/Default (Windows).sublime-keymap",
"platform": "Windows"
},
"caption": "Key Bindings – Default"
},
{
"command": "open_file",
"args": {"file": "${packages}/User/Default.sublime-keymap", },
"caption": "Key Bindings – User"
},
{ "caption": "-" }
]
}
]
}
]
}
]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# PlainNotes
Simple, efficient and pleasant note taking for SublimeText.
Simple and pleasant note taking for SublimeText.

With PlainNotes you can:
- Organize notes and thoughts
Expand Down Expand Up @@ -28,8 +28,8 @@ It's been designed with these ground rules in mind:
The *Latest Notes quick panel* is sorting files based on their last-edit time, so the note that you have been working on recently should be on top of the list.
- **Shortcut**: By default pressing <kbd>F4</kbd> will open the *Latest Notes quick panel*. For customizing the shortcut see [Keyboard Shortcuts]() section.

#### Notes Index Card (`F3`)
Pressing <kbd>F3</kbd> or selecting `Notes: Index` from the command palette will give you the *Notes Index Card* with the list of all notes sorted alphabetically.
#### Notes Index Card (`ctrl+F4`)
Pressing <kbd>ctrl+F4</kbd> or selecting `Notes: Index` from the command palette will give you the *Notes Index Card* with the list of all notes sorted alphabetically.
Pressing <kbd>Enter</kbd> on any note will open it in a new tab.

<p align="center">
Expand Down

0 comments on commit a2acd8d

Please sign in to comment.