smart-scan icon indicating copy to clipboard operation
smart-scan copied to clipboard

Option to leave point at the beginning of the next symbol

Open purcell opened this issue 10 years ago • 5 comments

It'd be nice to have the option to move to the start of the next matching symbol, rather than the end.

purcell avatar Nov 01 '13 13:11 purcell

+1

chalmagean avatar Nov 02 '13 18:11 chalmagean

Would something like this help?

(defun smartscan-symbol-go-forward-beginning () "Jumps forward to the beginning of the next symbol like the one at point" (interactive) (smartscan-symbol-goto (smartscan-symbol-at-pt 'end) 'forward) (smartscan-symbol-at-pt 'beginning))

duerrp avatar Nov 12 '13 08:11 duerrp

FWIW, the behaviour of highlight-symbol-nav-mode (in the highlight-symbol package) is pretty nice: it leaves the cursor at the same position in the next symbol as in the starting symbol.

purcell avatar Nov 12 '13 09:11 purcell

That's interesting, thanks...

duerrp avatar Nov 13 '13 13:11 duerrp

+1 for purcell's suggestion of using the same position in the next symbol, at least as a defcustom option.

waymondo avatar Mar 05 '15 18:03 waymondo