How shortest/simplest way, in Kate editor, to find all other words from a word which the cursor is being on, down to the beginning of doc/file, then counting and determining how many nth order is the word the cursor currently being on ?
It’s no use just putting the cursor on a word, you need to highlight or copy the word and search for it.
Selecting a word will highlight all other instances of that string in the document; then ‘Find All’ in the search/replace dialog will tell you how many there are in the whole document (click ‘Find All’).
I’m not sure how you’d do anything else in kate, but you can manually count by hitting Shift_F3 to jump to the previous instances back to the start of the file.
FWIW it’s a bit strange to say ‘DOWN to the BEGINNING’ as the beginning of the documents, in English, usually lie at the top.
Counting DOWN (to the end) just hit F3 and count until you get to the end.
this is not a find or search function.
these tools are designed to locate and count the number of matches in the whole document, not part of a document.
you cursor position and other stats can be found in the status area at the bottom to give an idea where your cursor is among the matches.
the search feature shows your matches in a separate frame where you can manually count the matches above or below a certain point.
but to find the nth instance of a match would require some kind of script.