Skip to main content

from_window

Function from_window 

Source
pub fn from_window(window: &Window) -> Option<String>
Expand description

Try every contiguous 2- or 3-word window inside window.words that includes the cursor word. Longest wins (IS NOT NULL beats IS NULL beats IS). Returns the rendered markdown when a multi-word keyword matches.