• Login
Community
  • Login

How to set options for the current file?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 462 Views
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.
  • F
    Francoleddu
    last edited by Sep 5, 2024, 11:31 AM

    I have been using TextPad for years and now I would like to start using NPP.
    NPP is very flexible and configurable but there is one thing I can’t do.
    TextPad has the ability to change various settings of the current file ‘on the fly’, without having to change the general settings, with the ‘Document Properties’ command.
    Is it possible to do something similar with NPP?
    At least for some settings such as tab spacing, use of tabs or spaces, screen or print font.

    Thanks for any suggestion!

    A 1 Reply Last reply Sep 5, 2024, 1:06 PM Reply Quote 0
    • A
      Alan Kilborn @Francoleddu
      last edited by Alan Kilborn Sep 5, 2024, 3:06 PM Sep 5, 2024, 1:06 PM

      @Francoleddu

      Sorry, no reasonable way to make it do what you’re asking.

      tab spacing, use of tabs or spaces

      But I do agree that it might be nice to override these things for a single file, occasionally.

      C 1 Reply Last reply Sep 5, 2024, 5:01 PM Reply Quote 1
      • C
        Coises @Alan Kilborn
        last edited by Sep 5, 2024, 5:01 PM

        @Alan-Kilborn said in How to set options for the current file?:

        But I do agree that it might be nice to override these things for a single file, occasionally.

        Just speculating… if some glutton for punishment were to try to implement this concept in a plugin, which would make more sense to you?

        1. Have a set of features (word wrap, tabs/spaces, etc.) each of which could be enabled for per-tab memory? Enabled settings would be remembered separately for each tab, and some method would have to be devised for establishing default settings for new tabs (since changing a setting would only affect the current tab, and there is always a current tab).

        2. Have an “isolate tab” property which, when turned on for a specific tab, would cause any changes in any of the settings the plugin manages to be kept independently for that tab (neither changing nor being affected by the global settings), leaving other tabs (that are not marked isolated) to behave as they do now.

        3. Something else (like file-name-based memory).

        A 1 Reply Last reply Sep 5, 2024, 8:25 PM Reply Quote 2
        • A
          Alan Kilborn @Coises
          last edited by Sep 5, 2024, 8:25 PM

          @Coises

          Actually, I think any of those ideas could be made to work well.

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors