Lech Lorens wrote: > On 08-Jan-2011 Dominique Pellé <[email protected]> wrote: >> Adrien "Axioplase" Piérard wrote: >> >> > Hello, >> > >> > I happen to use :digraphs quite a lot to insert mathematical symbols >> > in documents. >> > However, finding the characters and their input sequence is *very* >> > straining for the eyes. >> > >> > I wonder whether each of the three columns output by :dig could be >> > coloured to help reading? >> > Also, it may help *a lot* too to colour blocks of consecutive related >> > digraphs in similar colours, such as "all maths symbols", "all >> > Japanese symbols", "all Greek letters" and so on. >> >> When looking at the output of :digraph, the "more prompt pager" >> allows pressing keys to move up or down: >> >> -- More -- SPACE/d/j: screen/page/line down, b/u/k: up, q: quit >> >> How about being able to press / or ? to search forward or >> backward in the output of :digraph? (or in the output of any >> other command that uses the "more prompt pager"). >> >> -- Dominique > > The idea (performing a search) was discussed about 2 years ago (the > following message started the thread: > [email protected] ).
Hi Lech I did not find the discussion from 2 years ago. What's the date? > In this specific case I don't believe such a solution would be very > useful: you refer to the output of :dig to find out how to type > a symbol. How can you search for a symbol if you don't know how to input > it? Many digraphs are chosen in a logical way. Sometimes it's enough to correctly guess what the digraph is, but not always. When you can't completely guess, you can sometimes make a correct partial guess and being able to search then helps. 2 examples: - I want to type the the angstrom symbol. I guess that the digraph contains the letter 'a'. Searching with /a narrows down the search. The digraph for the lowercase angstrom symbol is 'aa' so my partial guess was right. But I would not have guessed the full digraph. Finding it in the output of :digraph without being able to search was not simple. I ended up doing a :redir of :digraph to be able to... search. - I want to type a Greek pi letter (3.14...). Same story: I guess that the digraph contains p and I search for /p. I end up finding it: p*. My partial guess was correct and helped. Another use case is to search by copy/pasting the Unicode symbol from somewhere. If I search for angstrom on Wikipedia, I find its Unicode symbol. But of course I don't want to do that all the time to enter that symbol. If I can search for the Unicode symbol in the output of :digraph, I can then use the more convenient digraph aa next time I need to type the character. Cheers -- Dominique -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
