Skip to main content

insert_block

Function insert_block 

Source
pub fn insert_block(text: &str, block: &str) -> String
Expand description

Insert the block, under the “user customizations” heading where there is one.

In Oh My Tmux that heading sits inside a heredoc, which is what makes the insertion safe from the cut | sh pass that file gets put through. Appended at the end otherwise.