|  |  | @ -29,16 +29,16 @@ vim.keymap.set("i", "<CR>", press_enter, { desc = "On enter", noremap = true, ex | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | local function toggle_todo() |  |  |  | local function toggle_todo() | 
			
		
	
		
		
			
				
					
					|  |  |  | 	-- create a variable called openpattern with a pattern that matches a string that starts with any amount of spaces or tabs followed by "- [ ]" |  |  |  | 	-- create a variable called openpattern with a pattern that matches a string that starts with any amount of spaces or tabs followed by "- [ ]" | 
			
		
	
		
		
			
				
					
					|  |  |  | 	local openpattern = "^%s*%- %[[ x]%]" |  |  |  | 	local openpattern = "^%s*%- %[[ ]%]" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	-- create a variable called closepattern with a pattern that matches a string that starts with any amount of spaces or tabs followed by "- [x]" |  |  |  | 	-- create a variable called closepattern with a pattern that matches a string that starts with any amount of spaces or tabs followed by "- [x]" | 
			
		
	
		
		
			
				
					
					|  |  |  | 	local closedpattern = "^%s*%- %[[ x]%]" |  |  |  | 	local closedpattern = "^%s*%- %[[x]%]" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	-- create a variable called titleopenpattern with a pattern that matches a string that starts with "# [ ]" |  |  |  | 	-- create a variable called titleopenpattern with a pattern that matches a string that starts with "# [ ]" | 
			
		
	
		
		
			
				
					
					|  |  |  | 	local titleopenpattern = "^# [ ]" |  |  |  | 	local titleopenpattern = "^# [ ] " | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	-- create a variable called titleclosedpattern with a pattern that matches a string that starts with "# [x]" |  |  |  | 	-- create a variable called titleclosedpattern with a pattern that matches a string that starts with "# [x]" | 
			
		
	
		
		
			
				
					
					|  |  |  | 	local titleclosedpattern = "^# [x]" |  |  |  | 	local titleclosedpattern = "^# [x] " | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	local line = vim.api.nvim_get_current_line() |  |  |  | 	local line = vim.api.nvim_get_current_line() | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |