insert_line: Insert various lines

insert_lineR Documentation

Insert various lines

Description

These functions insert sequence of symbols (the line) which by default starts at the cursor position and ends at symbol (column) 79. (It is recommended that the line of code would not be longer than 80 symbols.)

Use rs_insert_line_ss() to insert ⁠------⁠;
rs_insert_line_ds() to insert ⁠======⁠;
rs_insert_line_sw() to insert ⁠~~~~~~⁠ at the cursor position.

Usage

rs_insert_line(
  symbol,
  start = rs_get_index_first_selected_col(),
  end = getOption("addins.rs.line_end", 79)
)

rs_insert_line_ss()

rs_insert_line_ds()

rs_insert_line_sw()

Arguments

symbol

(character)
The symbol that will be repeated to create a line.

start

(numeric)
The number of column the line begins at.

end

(numeric)
The number of column the line ends at.

See Also

Other 'Insert at cursor position' addins: insert_arrows


GegznaV/addins.rs documentation built on May 5, 2023, 11:12 p.m.