Earl Chase <[email protected]> writes: >> What about modifying org-lint-search to skip spaces and also | when >> searching? > > Done. What I ended up doing is extracting the code that is used to > search headlines from org-link-search. I then used that code to create > a new function. In order to avoid false positives, org-link-search > calls this function twice. On the first pass, the same regular text > search of headlines that was done before my patch is run. If that > first search returns nothing, a second search is done where we remove > "|"s from headlines before we check to see if a headline matches our > search query. Besides that, the behavior of org-link-search has not > changed.
Thanks! I am looking at the patch, and I feel like a cleaner approach would be modifying `org-link--normalize-string' instead. That can also be used from `org-clock--create-clean-headline' as it also removes statistic cookies and the pile characters. WDYT? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
