@@ -18,7 +18,7 @@ module.config.public = {
1818 fuzzy_backlinks = false ,
1919 roam_base_directory = " " ,
2020 node_name_randomiser = false ,
21- node_name_snake_case = false ,
21+ node_name_snake_case = false ,
2222}
2323
2424module .load = function ()
@@ -325,13 +325,13 @@ module.public = {
325325 -- Map <C-n> to create a new node with the given title in the default note vault
326326 map (" i" , " <C-n>" , function ()
327327 local prompt = module .private .telescope_modules .state .get_current_line ()
328- local title_token = prompt
329- if module .config .public .node_name_randomiser then
330- title_token = name_tokeniser (prompt )
331- elseif module .config .public .node_name_snake_case then
332- title_token = title_token :lower ()
333- title_token = title_token :gsub (" " , " _" )
334- end
328+ local title_token = prompt
329+ if module .config .public .node_name_randomiser then
330+ title_token = name_tokeniser (prompt )
331+ elseif module .config .public .node_name_snake_case then
332+ title_token = title_token :lower ()
333+ title_token = title_token :gsub (" " , " _" )
334+ end
335335 module .private .telescope_modules .actions .close (prompt_bufnr )
336336
337337 -- Ensure the vault directory exists
@@ -422,13 +422,13 @@ module.public = {
422422 function (_ , opt )
423423 -- Input query is in opt.__call_opts.query
424424 local prompt = opt .__call_opts .query
425- local title_token = prompt
426- if module .config .public .node_name_randomiser then
427- title_token = name_tokeniser (prompt )
428- elseif module .config .public .node_name_snake_case then
429- title_token = title_token :lower ()
430- title_token = title_token :gsub (" " , " _" )
431- end
425+ local title_token = prompt
426+ if module .config .public .node_name_randomiser then
427+ title_token = name_tokeniser (prompt )
428+ elseif module .config .public .node_name_snake_case then
429+ title_token = title_token :lower ()
430+ title_token = title_token :gsub (" " , " _" )
431+ end
432432
433433 -- Ensure the vault directory exists
434434 local vault_dir = base_directory
0 commit comments