setKeyboardBindings: Set Rstudio keyboard bindings

View source: R/setKeyboardBindings.R

setKeyboardBindingsR Documentation

Set Rstudio keyboard bindings

Description

Set Rstudio keyboard bindings as mapped on https://github.com/brry/rskey#rskey. By default, this overwrites existing F3:F12 mappings!

Usage

setKeyboardBindings(
  overwrite = TRUE,
  removeLastYank = TRUE,
  workdir2filedir = TRUE,
  roampath = paste0(Sys.getenv("APPDATA"), "/RStudio/keybindings"),
  openfolder = TRUE
)

Arguments

overwrite

Logical. Should existing mappings on F3, F4, ..., F12 be overwritten? Still informs if this occurs. DEFAULT: TRUE

removeLastYank

Logical. Should the annoying Rstudio default to override "Redo" (CTRL+Y) with some weird yank be removed? DEFAULT: TRUE (CTRL+Y becomes "Redo" again)

workdir2filedir

Logical. Set CTRL+H for setWorkingDirToActiveDoc? DEFAULT: TRUE

roampath

Char. If not NULL, both files are also copied to this path, e.g. C:/Users/berry/AppData/Roaming/RStudio/keybindings. Seems to be irrelevant in Rstudio 1.4. DEFAULT: RStudio/keybindings folder at Sys.getenv("APPDATA")

openfolder

Logical: Open folder(s) after writing the files? Uses berryFunctionsopenFile(). DEFAULT: TRUE

Value

Returns nothing

Author(s)

Berry Boessenkool, berry-b@gmx.de, Jan 2019

See Also

addins


brry/rstudioberry documentation built on Jan. 11, 2023, 8:22 a.m.