Skip to content
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

Closed
BsNoSi opened this issue Oct 30, 2013 · 0 comments
Closed

Autoreplacement or «Catalog» function #81

BsNoSi opened this issue Oct 30, 2013 · 0 comments
Assignees
Milestone

Comments

@BsNoSi
Copy link

BsNoSi commented Oct 30, 2013

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:

br : Best Regards|
kbd : <kbd>|</kbd>
1 : This is simply a text that replaces »1« and moves the cursor at the end|
2: |same as »1« but cursor at the beginning of the inserted text

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).

@ghost 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
Conflicts:
	3rdparty/hunspell
	app/app.pro
@cloose cloose closed this as completed Nov 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants