Community
    • Login

    [bug] Space not inserted for tabs

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 4 Posters 1.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Arthur SchwarezA Offline
      Arthur Schwarez
      last edited by

      Win 11-64
      NPP 8.8.1

      Actions:
      1: edit->blank operations -> Space to tab (leading)
      2: edit ->blank operations -> Space to tab (all)

      At this point all tab entries are retained as tab and not changed to a space.

      Settings->Preferences->Indentation retains “Indent using: Tab Character”

      Manually setting the "Indent using: " to “Space character(s)” fixes the issue.

      Fix: Changing Edit->Blank Operations tab setting should change Settings_Preferences->Indentation" as appropriate when going from Space to Tab (leading)

      PeterJonesP CoisesC 2 Replies Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @Arthur Schwarez
        last edited by

        @Arthur-Schwarez said in [bug] Space not inserted for tabs:

        Changing Edit->Blank Operations tab setting should change Settings_Preferences->Indentation" as appropriate when going from Space to Tab (leading)

        I disagree. I will occasionally use those to temporarily switch from one to the other, without wanting it to change what characters will be used when I add new lines, etc. If it were to change the preference on me, it would annoy me.

        1 Reply Last reply Reply Quote 2
        • CoisesC Offline
          Coises @Arthur Schwarez
          last edited by

          @Arthur-Schwarez

          One of us is confused.

          1: edit->blank operations -> Space to tab (leading)
          2: edit ->blank operations -> Space to tab (all)

          Those commands change spaces to tabs. If you want to change tabs to spaces, use:

          Edit | Blank Operations | TAB to Space

          Testing, I don’t see that either Space to TAB changes any tabs into spaces regardless of the setting at Settings | Preferences… | Indent | Indent using.

          Am I missing something, or are you?

          Terry RT 1 Reply Last reply Reply Quote 1
          • Terry RT Offline
            Terry R @Coises
            last edited by

            @Coises

            As I read it, it seems that the OP wants their Preference to be updated if they use the Edit, Blank Operations, TAB to Space (or Space to TAB).

            Of course, I too could be confused. The lack of detail does make the OP open to interpretation.

            I’m with @PeterJones on this.

            One is a “Preference”, the other a “one-shot function”. This function should not be making changes to a Preference. And at the moment it isn’t, which I believe to be the correct decision.

            Terry

            1 Reply Last reply Reply Quote 1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors