diff --git a/NEWS.md b/NEWS.md index 1e59cc73..1a24dda4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,7 +3,7 @@ * improvements in `todos()` and `fixmes()` * File extension can now be set [#170](https://github.com/jmbarbone/mark/issues/170), which by default includes `qmd` ([#163]((https://github.com/jmbarbone/mark/issues/163))) and `py` files * new parameter `ignore` to ignore any files - * file paths and line numbers can now be _clicked_ within RStudio ([#171]((https://github.com/jmbarbone/mark/issues/171))) output format is changed + * file paths and line numbers can now be _clicked_ within RStudio ([#171]((https://github.com/jmbarbone/mark/issues/171))) # mark 0.6.0 diff --git a/R/todos.R b/R/todos.R index 4ea7b815..b18e7ddc 100644 --- a/R/todos.R +++ b/R/todos.R @@ -156,6 +156,7 @@ do_todo <- function( # nolint: cyclocomp_linter. set_names(as.list(Reduce(rbind, finds)), c("line", text)) )) + out[["file"]] <- fs::path_rel(out[["file"]], getwd()) out <- out[, c("line", "file", text)] ind <- tolower(tools::file_ext(out[["file"]])) %in% c("md", "qmd", "rmd")