agda-mode-vscode icon indicating copy to clipboard operation
agda-mode-vscode copied to clipboard

Unicode input in find/replace

Open barrettj12 opened this issue 3 years ago • 2 comments

At the moment, Unicode input doesn't work in find/replace. While this would be nice to have (if possible), it's not essential.

The real problem is that \ still starts Unicode input mode, so it is impossible to type a \ in the find bar. If you type \ twice, it will enter a backslash somewhere in the Agda file, not in the find bar. This makes it very hard to do regex searches.

Somehow this problem doesn't exist for file search (although you still can't use Unicode input there).

barrettj12 avatar Nov 22 '21 11:11 barrettj12

Thank you for reporting this. I've been able to reproduce the problem.

The condition for triggering the Unicode input mode when typing \, could depend on this context thing. We need to find the correct context so that \ won't trigger anything in the find/replace box.

banacorn avatar Nov 24 '21 05:11 banacorn

If possible, it would actually be quite useful to have Unicode input in find/replace. You would have to ensure that the resulting character ends up in the find/replace bar, rather than the document. Not sure how possible/feasible this is.

barrettj12 avatar Nov 25 '21 19:11 barrettj12