Récemment, un collègue m'a dit : « Nous utilisions l'expression XYZ, mais nous l'avons supprimée à un certain moment. Saviez-vous où nous l'avions utilisée et quand nous l'avons supprimée ? »
D'après mes connaissances, il n'existe aucun moyen d'effectuer une telle recherche dans Paratext. Corrigez-moi si je me trompe – j'aimerais beaucoup savoir comment faire !
Après quelques essais et erreurs, j'ai réussi à trouver comment le faire en externe à l'aide des outils Mercurial (hg). Depuis la racine du dossier du projet, exécutez la commande
hg grep --all -I '*.SFM' 'XYZ'
Où --all signifie « rechercher dans toutes les révisions », -I '*.SFM' signifie « ne chercher que dans les fichiers avec l'extension .SFM », et votre terme de recherche est XYZ.
Si XYZ est en ASCII, j'ai réussi à faire fonctionner la recherche sous Windows. Pour rechercher des caractères Unicode, la seule façon dont j'ai pu faire fonctionner l'outil était de l'exécuter sous Linux.
Recently a teammate said to me, “We used to use the phrase XYZ, but deleted it at some point. Do you know where we used it, and when we deleted it?”
To the best of my knowledge there is no way to do such a search inside of Paratext. Please correct me if I’m wrong–I’d love to know how to!
After a bit of trial and error, I was able to figure out how to do it externally using the hg Mercurial tools. From the root of the project folder, run the command
hg grep --all -I '*.SFM' 'XYZ'
Where --all means “search all of the revisions”, -I '*.SFM' means “only look in the files with .SFM endings”, and your search term is XYZ.
If XYZ is ascii, I was able to get the search to work in Windows. To search for unicode the only way I could get it to work was to run the tool inside of Linux.
Traduit automatiquement depuis English