Skip to content

Commit

Permalink
Merge pull request #58 from rkb965/master
Browse files Browse the repository at this point in the history
add qmd files to search
  • Loading branch information
dokato authored Sep 9, 2023
2 parents 010babc + dfea431 commit dfc4eb1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/todor.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ rex::register_shortcuts("todor")
#' \code{todor_rmd} - when set to TRUE it searches also through Rmd files
#' (default TRUE).
#'
#' \code{todor_qmd} - when set to TRUE it searches also through qmd files
#' (default TRUE).
#'
#' \code{todor_rnw} - when set to TRUE it searches also through Rnw files
#' (default FALSE).
#'
Expand Down Expand Up @@ -64,6 +67,10 @@ todor <- function(todo_types = NULL, search_path = getwd(),
rmdfiles <- list_files_with_extension("Rmd", search_path)
files <- c(files, rmdfiles)
}
if (getOption("todor_qmd", TRUE)) {
qmdfiles <- list_files_with_extension("qmd", search_path)
files <- c(files, qmdfiles)
}
if (getOption("todor_rnw", FALSE)) {
rnwfiles <- list_files_with_extension("Rnw", search_path)
files <- c(files, rnwfiles)
Expand Down

0 comments on commit dfc4eb1

Please sign in to comment.