Expand description
Token classification under cursor (URL / file / directory / word).
Retrieves current line + cursor column, extracts contiguous nonโwhitespace token, classifies via filesystem inspection or URL parsing, returning a tagged Lua table.
Enumsยง
- Token
Under Cursor - Classified representation of the token found under the cursor.
Functionsยง
- convert_
visual_ ๐to_ byte_ idx - Convert a visual (character) index into a byte index for the supplied string
s. - extract_
https_ ๐or_ http_ link - extract_
markdown_ ๐link - get
- Retrieve and classify the non-whitespace token under the cursor in the current window.
- get_
token_ ๐under_ cursor_ in_ normal_ buffer - get_
token_ ๐under_ cursor_ in_ terminal_ buffer - get_
word_ ๐at_ index - Find the non-whitespace token in the supplied string
scontaining the visual indexidx.