Loading ...
Sorry, an error occurred while loading the content.

24537Delete all but the current selection

Expand Messages
  • Axel Berger
    Aug 21, 2014
      From graphics programs I have become accustomed to being able to select a
      block and either delete it or delete everything around it and leave only
      the block itself.

      I have found a solution (untried as of now), but I wonder, if someone here
      can think of a more elegant one:

      ^!Set %varALL%=^$GetSelection$
      ^!Select ALL
      ^!InsertText ^%varALL%
      ^!Jump TEXT_START
      ^!ClearVariable %varALL%

      It's an old habit from the time of much smaller machines, but I try to
      avoid placing (potentially) huge chunks of text into variables.

      Danke
      Axel
    • Show all 3 messages in this topic