Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t9md/atom-phrase
Collect phrase, and refer quickly.
https://github.com/t9md/atom-phrase
atom
Last synced: 7 days ago
JSON representation
Collect phrase, and refer quickly.
- Host: GitHub
- URL: https://github.com/t9md/atom-phrase
- Owner: t9md
- License: mit
- Created: 2015-06-24T05:51:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-27T15:57:18.000Z (over 9 years ago)
- Last Synced: 2024-10-29T18:24:56.081Z (about 2 months ago)
- Topics: atom
- Language: CoffeeScript
- Homepage: https://atom.io/packages/phrase
- Size: 129 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Development phase
Alpha# Phrase
Frequently used phrase registry.
# Why?
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.# Features
- 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.# Command
* `phrase:open`: open or save selected text to phrase file based on cursor scope.
# How to use
## Save phrase
1. Select buffer
2. Invoke `phrase:open` command.
3. Your selected code is pasted at top of phrase file(nomral TextEditor).
4. You collect bunch of phrases this way.## Refer phrase
1. Invoke `phrase:open` command without selection.
## Share phrase
[my phrase collection](https://github.com/t9md/phrase)
[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 repositoryConfigure phrase repository
- `phrase:open-config`# Keymap
No keymap by default.e.g.
```coffeescript
'atom-workspace:not([mini])':
'ctrl-alt-p': 'phrase:open'
```# TODO
- [ ] `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`?