mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-05 06:32:24 +00:00
Add mark-next-like-this-symbol function
* README.md: Update readme to include mark-next-like-this symbol * features/step-definitions/multiple-cursors-steps.el: Add phrase for mark-next-like-this-symbol * features/support/env.el: Add keyboard shortcut for mark-next-like-this-symbol and fix shortcut for mark-next-like-this-word * mc-mark-more.el: Add mc/mark-next-like-this-symbol function * multiple-cursors-core.el: Add mc/mark-next-like-this-symbol to functions to run only once * multiple-cursors.el: Add to readme section.
This commit is contained in:
@@ -30,7 +30,7 @@ add a cursor to each line:
|
||||
When you want to add multiple cursors not based on continuous lines, but based on
|
||||
keywords in the buffer, use:
|
||||
|
||||
(global-set-key (kbd "C->") 'mc/mark-next-like-this) or (global-set-key (kbd "C->") 'mc/mark-next-like-this-word)
|
||||
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
|
||||
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
|
||||
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)
|
||||
|
||||
@@ -50,6 +50,7 @@ You can [watch an intro to multiple-cursors at Emacs Rocks](http://emacsrocks.co
|
||||
|
||||
- `mc/mark-next-like-this`: Adds a cursor and region at the next part of the buffer forwards that matches the current region.
|
||||
- `mc/mark-next-like-this-word`: Adds a cursor and region at the next part of the buffer forwards that matches the current region, if no region is selected it selects the word at the point.
|
||||
- `mc/mark-next-like-this-symbol`: Adds a cursor and region at the next part of the buffer forwards that matches the current region, if no region is selected it selects the symbol at the point.
|
||||
- `mc/mark-next-word-like-this`: Like `mc/mark-next-like-this` but only for whole words.
|
||||
- `mc/mark-next-symbol-like-this`: Like `mc/mark-next-like-this` but only for whole symbols.
|
||||
- `mc/mark-previous-like-this`: Adds a cursor and region at the next part of the buffer backwards that matches the current region.
|
||||
@@ -102,8 +103,9 @@ You can [watch an intro to multiple-cursors at Emacs Rocks](http://emacsrocks.co
|
||||
- Try pressing `mc/mark-next-like-this` with no region selected. It
|
||||
will just add a cursor on the next line.
|
||||
|
||||
- Try pressing `mc/mark-next-like-this-word` with no region selected. It will mark the word and
|
||||
add a cursor at the next occurance
|
||||
- Try pressing `mc/mark-next-like-this-word` or
|
||||
`mc/mark-next-like-this-symbol` with no region selected. It will
|
||||
mark the word or symbol and add a cursor at the next occurance
|
||||
|
||||
- Try pressing `mc/mark-all-like-this-dwim` on a tagname in html-mode.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user