Skip to content

Commit

Permalink
2024.07.22:
Browse files Browse the repository at this point in the history
* changed: deploy/notepad++/plugins/MultiReplace/Lists/tacklebar/copy_shortcut_target_by_list.replace_DESTDIR_by_shortcut_SRCDIR.csv: improved expression to match back and forward slash paths with and without pipe sign
  • Loading branch information
andry81 committed Jul 22, 2024
1 parent d136fd5 commit dd5d897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024.07.22:
* changed: deploy/notepad++/plugins/MultiReplace/Lists/tacklebar/copy_shortcut_target_by_list.replace_DESTDIR_by_shortcut_SRCDIR.csv: improved expression to match back and forward slash paths with and without pipe sign

2024.07.18:
* new: deploy/notepad++/plugins/MultiReplace/Lists/tacklebar/copy_shortcut_target_by_list.join_shortcut_PARENTDIR_and_FILENAME.csv: expression to join `># <shortcut-dir>\|<file-name>` field into `># <shortcut-file-path>`
* refactor: copy_shortcut_target_by_list.split_shortcut_FILEPATH_to_PARENTDIR_and_FILENAME.csv: file renamed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Selected,Find,Replace,WholeWord,MatchCase,UseVariables,Regex,Extended
1,"^([^\\r\\n\\|]+)(?:\\|([^\\r\\n\\|]+)(?:\\|([^\\r\\n\\|]+)(?:\\|([^\\r\\n\\|]+))?)?)?","init({DESTDIR="""",REPLACETO=""""}); if CAP1 ~= nil and string.sub(CAP1,1,3) == ""#> "" then if CAP2 ~= nil and string.len(CAP2) > 0 then DESTDIR=string.match(string.sub(CAP1,4,-1),""^(.+)"") else DESTDIR=string.match(string.sub(CAP1,4,-1),""^(.+\\\\)"") end; elseif CAP1 ~= nil and string.sub(CAP1,1,1) ~= ""#"" and DESTDIR ~= nil and string.len(DESTDIR) > 0 and CAP2 ~= nil then REPLACETO=DESTDIR..""|""..CAP2 else REPLACETO=nil end; cond(CAP1 ~= nil and CAP2 ~= nil and string.len(CAP1) > 0 and string.len(CAP2) > 0 and string.sub(CAP1,1,1) ~= ""#"" and REPLACETO ~= nil and string.len(REPLACETO) > 0, REPLACETO)",0,0,1,0,1
1,"^([^\\r\\n\\|]+)(?:\\|([^\\r\\n\\|]+)(?:\\|([^\\r\\n\\|]+)(?:\\|([^\\r\\n\\|]+))?)?)?","init({DESTDIR="""",DESTFILE="""",REPLACETO=""""}); if CAP1 ~= nil and string.sub(CAP1,1,3) == ""#> "" then if CAP2 ~= nil and string.len(CAP2) > 0 then DESTDIR=string.sub(CAP1,4) else DESTDIR=string.match(string.sub(CAP1,4),""^.+[\\\\/]"") end elseif CAP1 ~= nil and string.sub(CAP1,1,1) ~= ""#"" and DESTDIR ~= nil and string.len(DESTDIR) > 0 then if CAP2 ~= nil then REPLACETO=DESTDIR..""|""..CAP2 else DESTFILE=string.match(CAP1,""[^\\\\/]+$""); if DESTFILE ~= nil then REPLACETO=DESTDIR..DESTFILE else REPLACETO=nil end end else REPLACETO=nil end; cond(CAP1 ~= nil and string.len(CAP1) > 0 and string.sub(CAP1,1,1) ~= ""#"" and REPLACETO ~= nil and string.len(REPLACETO) > 0, REPLACETO)",0,0,1,0,1

0 comments on commit dd5d897

Please sign in to comment.