Menu

Please do not indent if selection is in-line

2007-03-21
2012-11-13
  • Nobody/Anonymous

    Whenever anything is selected on a line, pressing the TAB key will _always_ indent the line. This is annoying to me, especially when I want to replace in-line spaces by tabs.

    Could you please disinguish between a selection that contains the start of the line, or starts in the white space before any character, and a simple selection of any text (or spaces, as in my case) after or starting from the first character and ending on the same line?

    Whenever there is an End-Of-Line in the selection, it's fine with me if all lines are indented.

     
    • Chris Severance

      Chris Severance - 2007-10-01

      The normal TAB behavior can be restored by turning off TextFX Settings +Disable subclassing and advanced features. Several other features will disappear too which is fine if you aren't using them.

       
    • Nobody/Anonymous

      Yes, that's bugging me too.

       
    • Nobody/Anonymous

      Cool... I'm not alone in being totally irritated by the Tab key behavior.  Also, I went to Shortcut mapper to change the behavior.  It sorta worked.  However, now I want to restore the original behavior and don't see a way to do so.  For example, I mapped "E:Stick indent <blah> <blah>" (which used to map to TAB) to Ctrl-TAB.  Now, I want to restore just the TAB behavior and find that Shortcut Mapper refuses to enable the OK button when no checkboxes are checked.  Catch 22.

       
      • MMTsuchi

        MMTsuchi - 2007-09-25

        Thanks nobody :-) it is exactly what I was looking for.
        instead or Ctrl-Tab, i set alt-capslock (no used for me)

         
    • MJG

      MJG - 2007-04-19

      I think you can open up your "shortcuts.xml" file (either in %APPDATA%/Notepad++ or wherever you installed Notepad++) in *regular Notepad* and delete these lines if that is the only command you changed:

          <PluginCommands>
      . . . . <PluginCommand moduleName="NPPTextFX.dll" internalID="84" Ctrl="yes" Alt="no" Shift="no" Key="9" />
          </PluginCommands>

      If there is more than one PluginCommand, only delete the one above, which is the mapping for ctrl-TAB to "E:Indent Text Sticky Left Margin".

      The reason for using regular Notepad is that I'm not sure if Notepad++ will overwrite your change with its internal copy, restoring the unwanted behavior.  --Joel

       
    • Nobody/Anonymous

      When I want to insert a (blank) line, and the text on the next line is already indented, but less than the previous line, the indentation of the previous line will be _added_ to the current indentation.

      First of all, it makes no sense to make the _total_ indentation more than the indentation of the prevous line, if that would have to be used as the "continuing" indentation.

      Next to that, why (more) indent a line that I _separate_ from the previous line by inserting a new or blank line? What benefit could I ever get from that???

      Could you make this indentation somehow smarter, i.e. less persistent?
      Another improvement would be to check if a line is already indented. This would solve the extra indentation problem...

       
MongoDB Logo MongoDB