Post #2083745
2024-12-05 00:04 UTC
@danwwilson please share your how to 🤩
Replies (1)
-
@danwwilson@rstats.me 2024-12-05 00:12
@lwpembleton I have this in a package: ``` tar_load_selection <- function(..., store = targets::tar_config_get("store")) { target_names <- as.character(as.list(substitute(...()))) targets::tar_load(target_names, store = store, envir = globalenv()) } ``` keybinding like: ``` { "key": "l", “name": "load target at cursor", "type": "command", "command": "r.runCommandWithSelectionOrWord", "args": “tdctargets::tar_load_selection($$)" }, ```