Menu

#78 Add support from txt files to use each line words

1.13
accepted
nobody
None
Feature
5
2020-07-08
2020-04-28
No

Hello , okay this pluggin helped me so very much but i have to enter one word at a time and then add it to the list

i need to be able to add a list of words as one word per line from a txt file

so i can use this marked words to bookmark each line contains any words from these line

any idea or is it possible . thank you

Discussion

  • Mattes H.

    Mattes H. - 2020-06-07

    Hi,
    this sounds for me you should please have a look into the pattern file format.
    It is very simple and does probably the job you want.

    make some test patterns
    click save
    open the just now saved file in NPP

    <?xml version="1.0" encoding="UTF-8" ?>
    <AnalyseDoc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./AnalyseDoc.xsd">
        <SearchText>this</SearchText>
        <SearchText>is</SearchText>
        <SearchText>a</SearchText>
        <SearchText>test</SearchText>
    </AnalyseDoc>
    

    Assuming you want to do this programmatically you could use e.g. the NPP macros to prepare a text selection into valid pattern file format.

    AP allows you to add multiple times new pattern files and prepend or append the pattern lists.
    Hope that matches your needs?
    Regards,
    Mattes

     
    • Mattes H.

      Mattes H. - 2020-06-07

      re itterating your idea:
      add a line detector into context command "add selection as text"
      this could be for sure also done and may be useful ;-)
      Thanks for the proposal.

       
  • Mattes H.

    Mattes H. - 2020-06-07
    • status: open --> accepted
    • Group: 1.12 --> 1.13
     
  • Mattes H.

    Mattes H. - 2020-06-14

    I just played a bit with macro recording and saw that plugin commands are not working with macros. Will have to check ...

     
  • Anonymous

    Anonymous - 2020-07-08
    its not working , i give up .
    
     

Anonymous
Anonymous

Add attachments
Cancel