• Feature request: Save text direction in session file

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Sorting 'Folder Workspace'

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    7 Posts
    4k Views
    Eiren SmithE
    Thanks, Scott. I later noticed that. Oh, well.
  • FEATURE REQUEST: Replace and Preserve case

    Locked case replace text search
    12
    0 Votes
    12 Posts
    6k Views
    guy038G
    Hello, MacGyver27 and All Thinking to your problem, I’ve just imagined a particular search/replacement, that changes the case of each letter, of the replacement word, ACCORDINGLY TO the case of each corresponding letter, in the searched word :-))) Hypotheses : The searched and replacement words are supposed made of any word character. That is to say that they may contain possible digit characters and/or any underscore symbol as, for instance, the words TEST_02 or MY_FUNCTION Three cases are possible : A) The searched and replacement words have the same size : For instance, if the searched word is device, whatever its capitalization form, and the exact replacement word is SySTeM, here are, below, the results of this S/R, for some forms of the searched word : DeVIce => SySTem dEVicE => sYSteM devICe => sysTEm dEvIcE => sYsTeM B) The searched word have less letters than the replacement word : For instance, if the searched word is device, whatever its capitalization form, and the exact replacement word is lOCatIOn, here are, below, the results of this S/R, for some forms of the searched word : DeVIce => LoCAtiOn dEVicE => lOCatIOn devICe => locATiOn dEvIcE => lOcAtIOn Note, in that example, that the 7th and 8th remaining letters, of the replacement word, which cannot be associated to a corresponding letter, in the searched word, keep their initial capitalization form ! C) The searched word have more letters than the replacement word : For instance, if the searched word is device, whatever its capitalization form, and the exact replacement word is TeSt, here are, below, the results of this S/R, for some forms of the searched word : DeVIce => TeST dEVicE => tESt devICe => tesT dEvIcE => tEsT Remarks : If a character of the searched word is NOT a letter, the associated character, in the replacement word, will NOT be changed If a character of the replacement word is NOT a letter, it will NOT be changed, of course ! To perform these capitalization changes, TWO consecutive S/R will be mandatory. In addition, I need a dummy character, NOT used yet, in your file. I chose the # character, but feel free to chose any other one ! So : Let M be the number of letters of the SEARCHED word Let N be the number of letters of the REPLACEMENT word Then : For case A) ( M = N ) OR case B) ( M < N ) FIRST S/R : SEARCH (?i)\b<SEARCHED word, in ANY case>\b REPLACE #<REPLACEMENT word, in ANY case>$0# SECOND S/R : SEARCH #|(?-is)(?=\w{<N>}(?:(\u)|(\l)))(\w)(?=\w*#)|(?i)<SEARCHED word, in ANY case># REPLACE \u(?1\3)\l(?2\3) For case C) ( M > N ) FIRST S/R : SEARCH (?i)\b(<The N FIRST letters>)(<The M-N LAST letters>)\b, of the SEARCHED word, in ANY case REPLACE #<REPLACEMENT word, in ANY case>\1#\2 SECOND S/R : SEARCH #|(?-is)(?=\w{<N>}(?:(\u)|(\l)))(\w)(?=\w*#)|(?i)<The N FIRST letters>#<The M-N LAST letters> , of the SEARCHED word, in ANY case REPLACE \u(?1\3)\l(?2\3) Then, from the examples, above : For case A), from the original text : DeVIce dEVicE devICe dEvIcE SEARCH (?i)\bdevice\b REPLACE #system$0# We obtain, after the 1ST S/R : #systemDeVIce# #systemdEVicE# #systemdevICe# #systemdEvIcE# SEARCH #|(?-is)(?=\w{6}(?:(\u)|(\l)))(\w)(?=\w*#)|(?i)device# REPLACE \u(?1\3)\l(?2\3) And, finally, after the 2ND S/R : SySTem sYSteM sysTEm sYsTeM For case B), from the original text : DeVIce dEVicE devICe dEvIcE SEARCH (?i)\bdevice\b REPLACE #location$0# We obtain, after the 1ST S/R : #locationDeVIce# #locationdEVicE# #locationdevICe# #locationdEvIcE# SEARCH #|(?-is)(?=\w{8}(?:(\u)|(\l)))(\w)(?=\w*#)|(?i)device# REPLACE \u(?1\3)\l(?2\3) And, finally, after the 2ND S/R : LoCAtion lOCatIon locATion lOcAtIon For case C), from the original text : DeVIce dEVicE devICe dEvIcE SEARCH (?i)\b(devi)(ce)\b REPLACE #test\1#\2 We obtain, after the 1ST S/R : #testDeVI#ce #testdEVi#cE #testdevI#Ce #testdEvI#cE SEARCH #|(?-is)(?=\w{4}(?:(\u)|(\l)))(\w)(?=\w*#)|(?i)devi#ce REPLACE \u(?1\3)\l(?2\3) And, finally, after the 2ND S/R : TeST tESt tesT tEsT Best Regards, guy038 P.S. : A last example, with my_function_n008 as a searched word and ABCD_123IjklmnOP as a replacement word, which, both, contain 16 characters ! So, Let’s supposed the example text, below : My_Function_N008 mY_fUNCTION_n008 my_FUNCTION_n008 MY_fUnCtIoN_N008 SEARCH (?i)\bmy_function_n008\b REPLACE #ABCD_123IjklmnOP$0# We obtain, after this 1ST S/R : #ABCD_123IjklmnOPMy_Function_N008# #ABCD_123IjklmnOPmY_fUNCTION_n008# #ABCD_123IjklmnOPmy_FUNCTION_n008# #ABCD_123IjklmnOPMY_fUnCtIoN_N008# SEARCH #|(?-is)(?=\w{16}(?:(\u)|(\l)))(\w)(?=\w*#)|(?i)my_function_n008# REPLACE \u(?1\3)\l(?2\3) And, after the final 2ND S/R : AbCD_123ijklMnOP aBCd_123IJKlmnOP abCD_123IJKlmnOP ABCd_123IjKlMnOP
  • option to not re-arrange tab lines

    5
    2 Votes
    5 Posts
    3k Views
    Michael DiGregorioM
    I agree with this post. This behavior is very annoying.
  • Search and focus to open file - Feature request - maybe

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Select Inline text and then add to beginning & end of selection

    Locked
    8
    0 Votes
    8 Posts
    6k Views
    Blair BrennerB
    Thanks guy038! Looks good. Will be using this on Monday. Best Blair
  • Purge Undo

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    S
    @John-Ng You could do “File” menu -> “Reload from Disk” – this will provide a point from which there is no further undo-ing.
  • Easy feature request: Shortucut key for next tip

    4
    0 Votes
    4 Posts
    3k Views
    C
    I’m just curious, why do you think it’s an easy feature ?
  • CSS Code Coloring for @media directives

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Constant Crashing

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    S
    @Kim-Kløve You have the “Show End of Line” feature turned on. Turn off by the “View” menu, “Show Symbol” submenu. Uncheck “Show End of Line”.
  • 0 Votes
    2 Posts
    2k Views
    Trevor AndersonT
    Yes, we are running into this same issue as well.
  • Suggestion for Post-it (F12)

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • PluginManager missing on 64bit installer

    Locked
    2
    -1 Votes
    2 Posts
    5k Views
    S
    It is work in progress: https://notepad-plus-plus.org/community/topic/12483/new-version-of-plugin-manager-for-testing/3
  • sorry, but what difference between 32bit & 64bit versions?

    4
    0 Votes
    4 Posts
    28k Views
    Jorge CornejoJ
    64 bit by some reason doesn’t include Plugin Manager. Just as a software note.
  • "Hide Lines" feature has a bug.

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Alternative Icon

    2
    1 Votes
    2 Posts
    4k Views
    S
    Thank you for this!!! Using this guide and mentioned tool, I was able to change the icon rather painlessly.
  • npp 7 - regression

    4
    1 Votes
    4 Posts
    5k Views
    Justin KleinJ
    +1 more very disappointed by the icon option’s removal from the installer. Guess I’ll revert to 6.9.2, in which I can have my text document icons look like…text documents… :/
  • 0 Votes
    6 Posts
    3k Views
    Claudia FrankC
    @Telealex how to assign this new style for all new/opened txt files? currently npp doesn’t support a udl to be the default language so you need to tweak it like stated here. If it is only about already created files you can of course assign an file extension to the udl, see udl dialog Ext field. q3: is it really needed? I thought multiline is the default behavior. If you still need to define eol, here is described how. Cheers Claudia
  • 0 Votes
    3 Posts
    3k Views
    Frank OrellanaF
    Try the Quick Color Picker + plugin. It does basically all that already.