Author Topic: Selection types and modes  (Read 2737 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2185
  • Hero Points: 192
  • Text
Selection types and modes
« on: March 15, 2017, 06:01:47 pm »
Is there a good description of the various selection types and modes in Slickedit?

shift-arrows produce the "normal" Windows/CUA type of selection.
This selection is cleared when you copy, replaced when you type or paste, etc.

"select_char" makes a sticky sort of selection that extends while you navigate.
Otherwise it seems to behave like Windows/CUA selections.

Doing select_char again locks the selection -- the text stays selected even while you move around the buffer and continue editing.
This selection is cleared when you copy, but it not replaced when you type or paste -- in fact you can edit the text inside the selected area.

select_block: Similar to select_char, but as a block selection. Also can be locked.


What other kinds of selections and modes are there?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5768
  • Hero Points: 460
Re: Selection types and modes
« Reply #1 on: March 15, 2017, 06:31:43 pm »
You've covered the basics pretty well.

Block/column selections have a lot of options mostly for emulation purposes. Most of the complicated code is in doBlockModeKey(). The block selections defaults are pretty good. We probably would have defaulted block/column selections to non-inclusive if it wasn't inclusive for so many years.

Tim Kemp

  • Senior Community Member
  • Posts: 537
  • Hero Points: 91
Re: Selection types and modes
« Reply #2 on: March 15, 2017, 06:32:53 pm »
You guys forgot line selection.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5768
  • Hero Points: 460
Re: Selection types and modes
« Reply #3 on: March 15, 2017, 06:35:16 pm »
And I use line selection the most  ;D

Tim Kemp

  • Senior Community Member
  • Posts: 537
  • Hero Points: 91
Re: Selection types and modes
« Reply #4 on: March 15, 2017, 06:42:26 pm »
I probably do too.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3245
  • Hero Points: 461
Re: Selection types and modes
« Reply #5 on: March 24, 2017, 03:26:41 pm »
Just to quickly point out where to find this in the help:

SlickEdit Help > Editing Features > Basic Editing > Selections

rgloden

  • Senior Community Member
  • Posts: 169
  • Hero Points: 5
Re: Selection types and modes
« Reply #6 on: March 25, 2017, 09:58:59 pm »
Noticed that the documentation in "Basic Editing" "Character Selections" shortcut table didn't include the "Shift-Home" and "Shift-End" combinations.

Also: Documentation indicates that select-proc would select procedure and "function heading".  This worked for C++ but didn't work for me in Ada or Perl.

Documentation indicates that a multiline character selection should show something like "1 Line+" in the selection indicator.  What I'm seeing in my experimenting is: "1x0 Block"

Documentation for Block Selections doesn't mention that Alt-Shift-Arrow creates / modifies a block selection.

Documentation for Block Insert Mode appears to be missing 3 figures.

SE 21.0.1 64-bit
Windows 7
« Last Edit: March 25, 2017, 11:05:22 pm by rgloden »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5768
  • Hero Points: 460
Re: Selection types and modes
« Reply #7 on: March 26, 2017, 12:41:07 am »
Thanks. We will update the docs

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3245
  • Hero Points: 461
Re: Selection types and modes
« Reply #8 on: March 28, 2017, 08:28:13 pm »
Quote
Documentation indicates that a multiline character selection should show something like "1 Line+" in the selection indicator.  What I'm seeing in my experimenting is: "1x0 Block"

This will be fixed in the next release.  I'm also updating the docs with respect to this feature.