Suzannejoiner/idea-string-manip

Duplicate and increment/decrement should select the newly inserted text

GoogleCodeExporter opened this issue · 5 comments

What steps will reproduce the problem?
1. type h1, h2 {}
2. highlight ", h1"
3. press alt-M then N

What is the expected output? What do you see instead?
  ", h3" is inserted after ", h2", as expected, but the cursor jumps to some place after that that seems to depend things I don't understand, possibly the text after that.
  what I'd prefer is if the newly inserted text was selected, so you could repeat the operation immediately. after all, if you're just doing it once, it's no big deal to do it manually. where the big gain comes in is if you're doing it multiple times, and selecting the inserted text makes ding that much more efficient.
  there may be other actions that should be handled the same way.


What version of the product are you using? On what operating system?
version 2.1.1 on Windows 7 Pro.


Please provide any additional information below.
thanks again for this, good stuff (:-)

Original issue reported on code.google.com by dmerr...@paperthin.com on 26 Apr 2013 at 3:56

makes sense, thanks.

Original comment by vojta.kr...@gmail.com on 26 Apr 2013 at 8:28

  • Changed state: Accepted
Done in version 2.2.

Original comment by vojta.kr...@gmail.com on 26 Apr 2013 at 9:24

  • Changed state: Fixed
!Great, thanks, looking forward to it

Original comment by dmerr...@paperthin.com on 27 Apr 2013 at 11:32

Got this, perfect, it's a beautiful thing, thanks!

Original comment by dmerr...@paperthin.com on 29 Apr 2013 at 12:53

My pleasure.

Original comment by vojta.kr...@gmail.com on 29 Apr 2013 at 7:54