Alpha
Frequently used phrase registry.
Phrase is workable code fragments or example code which you want to refer later. While you are try&error some code and reach some conclusion. You want to save that useful phrase to central place. This package helps you to save and refer those phrases quickly within Atom editor.
- Paste selected text to bottom of
phrase
buffer. - Refer phrases you collected quickly.
- Scope aware: when saved to phrase file, scope at cursor position is respected.
phrase:open
: open or save selected text to phrase file based on cursor scope.
- Select buffer
- Invoke
phrase:open
command. - Your selected code is pasted at top of phrase file(nomral TextEditor).
- You collect bunch of phrases this way.
- Invoke
phrase:open
command without selection.
[NOTE] Features and commands described in this Share phrase
section is NOT yet implemented.
But concepts are like bellow.
This package provide, mechanism to share your phrases to others. This need phrase registries on web. Phrase ragistries might be
-
Dropbox folder
-
Gist
-
github repositiory
-
update phrases
-
phrase:update-all
-
phrase:update
: select repository -
phrase:publish
: publish current phrase file to repository
Configure phrase repository
phrase:open-config
No keymap by default.
e.g.
'atom-workspace:not([mini])':
'ctrl-alt-p': 'phrase:open'
-
phrase:find
command let you select phrase title from select-list. - Auto insert result to
Output:
placeholder. - Select phrase and run with one commmand like
phrase:update-output
. - Put cursor to title with
tab
?