New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoreplacement or «Catalog» function #81
Comments
ghost
assigned cloose
Nov 11, 2013
cloose
added a commit
that referenced
this issue
Nov 12, 2013
Add a new value type struct for a snippet.
cloose
added a commit
that referenced
this issue
Nov 12, 2013
Add the new class SnippetRepository for the management of snippets.
cloose
added a commit
that referenced
this issue
Nov 12, 2013
Add the new class SnippetCompleter. This class provides autocompletion in the markdown editor for the snippets contained in the SnippetRepository.
cloose
added a commit
that referenced
this issue
Nov 12, 2013
Add autocompletion support for snippets to the MarkdownEditor class using SnippetCompleter and SnippetRepository.
cloose
added a commit
that referenced
this issue
Nov 12, 2013
Add a new JSON file with a first cut of the built-in snippets.
cloose
added a commit
that referenced
this issue
Nov 13, 2013
Add new page to the options dialog for the maintenance (add, edit, remove) of user-defined snippets.
cloose
added a commit
that referenced
this issue
Nov 13, 2013
Add support for loading & saving user-defined snippets in a JSON file.
cloose
referenced
this issue
Nov 14, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using CuteMarkED quite consistent to get used to all possibilities. In my daily work, I have the challenge to use several special codings or text standards quite often. For this opportunity it would be a nice support, if the editor would look in a replacement list of words beginning (for example) with a "." As an example this would change
.kbd
→<kbd>|</kbd>
, where "|" is the new cursor position.As good as an automatic replacement a user maintained „catalog» could help a lot. This is a shortcut, perhaps ALT SPACE, that opens a list beyond the cursor. Typing autoselects best matching option, enter puts it into the text and closes the «catalog».
The catalog (as well as the autoreplacement) itself can be a simple txt (or md)-file, organized in lines with two options:
First entry is the name for finding the desired replacement text, everythin behind ":" , expept leading blanks is inserted, if a special symbol, in this case "|" is part of it, the cursor is placed there, otherwise behind the inserted text (which means, that sample "1" or "br" are standard condition, where no | is required).
The text was updated successfully, but these errors were encountered: