allow any fuzzy finder
This commit is contained in:
		
							
								
								
									
										5
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								Makefile
									
									
									
									
									
								
							| @@ -1,3 +1,6 @@ | |||||||
|  | FZF != command -v sk || command -v fzy || command -v fzf || \ | ||||||
|  | 	{ echo install a fuzzy finder && exit 1 ;} | ||||||
|  |  | ||||||
| help: ## Print the help message | help: ## Print the help message | ||||||
| 	@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \ | 	@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \ | ||||||
| 		sort | \ | 		sort | \ | ||||||
| @@ -31,7 +34,7 @@ database: $(default) ## Make a database for recfiles | |||||||
|  |  | ||||||
| .PHONY: article | .PHONY: article | ||||||
| article: ## Write an article | article: ## Write an article | ||||||
| 	@path=$$(find . -type d -printf '%P\n' | fzy); \ | 	@path=$$(find . -type d -printf '%P\n' | $(FZF)); \ | ||||||
| 	read -p "Title: " title; \ | 	read -p "Title: " title; \ | ||||||
| 	printf '%s\n' '---' >> $$path/$$title.md ; \ | 	printf '%s\n' '---' >> $$path/$$title.md ; \ | ||||||
| 	printf 'title: "%s"\n' "$$title" >> $$path/$$title.md ; \ | 	printf 'title: "%s"\n' "$$title" >> $$path/$$title.md ; \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user