insert_string

Function insert_string 

Source
fn insert_string(_: ())
Expand description

Prompt the user to select a [fkr::FkrOption] and insert its generated string.

The user is shown a selection menu via [ytil_noxi::vim_ui_select::open]; on selection the corresponding generated string is inserted at the cursor using [ytil_noxi::buffer::BufferExt::set_text_at_cursor_pos].

Behaviour:

  • Returns early (no insertion) if fetching user input fails or is canceled.
  • Emits error notifications to Nvim for selection prompt or buffer write failures.