Extension AltSearch - bugs and requests

@fpy asked me that I could revive the development of AltSearch Adding HTML code to ODT manuscript - #4 by fpy, but it is not so easy for me.

Can you write here the bugs in AltSearch and your ideas to improve it? To see the extent and interest. Unfortunately probably it will not be in my possibility to make some big changes, but it seems I could translate the comments to English to make the code accessible also for non-Czech speakers.

One bug: AltSearch Extension error

4 Likes

Here an other bug fixed: Altsearch assign macro to key fails

2 Likes

This is a task that Deepseek should cope with perfectly. :slight_smile:

well, first (big) picture started from Dependency tree for Bug 146076


And on the side :

  • a “simplified” API : like AltSearch.findAndReplace(oDoc, from, to, flags)
  • headless command line
  • would be nice to kick off some unit tests.
  • also, (suggested) shortcuts :
    _AltSearch: Ctrl+Alt+H (to open the Search dialog);
    _FindNext: Ctrl+Alt+G (to find the next occurrence …
    _FindBack: Ctrl+Shift+Alt+G (to find the previous occurrence
  • move “help” page; to be maintained at Extensions/AltSearch - The Document Foundation Wiki
  • simplify regex (eg for email, use \w instead of [a-zA-Z0-9_] )

although @HeikoTietze didn’t sound hyper enthusiast at first (165725 – Allow targeting of styles and formatting via regular expressions in Find and Replace #c16)
hope this can get some traction, sort of similar to SF :innocent:
Having it in git / gerrit / opengrok … would make a lot of sense.


for reference : https://wiki.documentfoundation.org/Design/Meetings/2021-05-06
1 Like

fingers crossed :wink:

' prida "neco" do seznamu, pokud tam uz neni
' doplnuje pouze na pocatecni pozice seznamu urcene promenou "promene" 
' "pevne" udava pocet polozek na konci seznamu ktere zustavaji beze zmen
sub pridejDoSeznamuA(seznam, neco, promene, pevne)

 if pozvSeznamuA(seznam, neco) >= 0 then exit sub ' uz je to tam, konec
 ' doplnit novou polozku   
 if seznam.itemCount >= (promene+pevne) then ' smazat posledni promennou polozku
    seznam.removeItems(promene-1,1)
   end if 
  seznam.addItem(neco,0)
end sub 

image

Hello

  • Some times ago (maybe 2020), @jucasaca modified the extension to delete the direct format when apply a character style.
  • In 2021 I updated the translations of some string, help and batch file (in spanish)
  • In 2024 I fixed the bug with asign keys to AltSearch (from the extension):
    Altsearch assign macro to key fails
  • Now I have patched AltSearch with your modifications (New function getRealStyleName and changes in GetFindArray and GetReplArray): AltSearch Extension error

The next file is the repacked extension (I changed the version number to 1.4.3)

  • It works well for me. Anyone can try it and who knows if this version can be updated on the official extension website
  • You must rename the file to oxt to install it
  • It is recommended to uninstall the previous version.

altsearch_143beta.oxt.odt (689,1 KB)

1 Like

I prepare to contact the author of AltSearch, maybe he still have the access to oficial extesnion site, but probably after weekend. I had hard programming last 3 weeks, also to run my web and I need a rest.

(post deleted by author)

1 Like