denite.vim 㧠Platinum Searcher ã試ã
Windows,Macå ±ã«deniteãæç¨ãã¦ããã、Windowsã§Grepãå®è¡ããã¨、ã¨ã©ã¼ãåºã¦ãã¦ä½¿ããªããªã£ã。 ç¾è±¡ã¨ãã¦ã¯、Vimã®Deniteãã©ã°ã¤ã³ã§grepãåºæ¥ãªã。ã¨åãã¨ã©ã¼ãåºã¦ãã。
[denite] Traceback (most recent call last):
[denite] File "<string>", line 9, in _temporary_scope
[denite] File "C:\Users\username\vimfiles\bundles\.cache\vimrc\.dein/rplugin/python3\denite\ui\default.py", line 71, in start
[denite] self._start(context['sources_queue'][0], context)
[denite] File "C:\Users\username\vimfiles\bundles\.cache\vimrc\.dein/rplugin/python3\denite\ui\default.py", line 120, in _start
[denite] self.gather_candidates()
[denite] File "C:\Users\username\vimfiles\bundles\.cache\vimrc\.dein/rplugin/python3\denite\ui\default.py", line 668, in gather_candidates
[denite] self._denite.gather_candidates(self._context)
[denite] File "C:\Users\username\vimfiles\bundles\.cache\vimrc\.dein/rplugin/python3\denite\denite.py", line 66, in gather_candidates
[denite] source.context, source)
[denite] File "C:\Users\username\vimfiles\bundles\.cache\vimrc\.dein/rplugin/python3\denite\denite.py", line 75, in _gather_source_candidates
[denite] candidates = source.gather_candidates(context)
[denite] File "c:\users\username\vimfiles\bundles\.cache\vimrc\.dein\rplugin\python3\denite\source\grep.py", line 183, in gather_candidates
[denite] context['__proc'] = process.Process(args, context, context['path'])
[denite] File "C:\Users\username\vimfiles\bundles\.cache\vimrc\.dein/rplugin/python3\denite\process.py", line 25, in __init__
[denite] cwd=cwd)
[denite] File "C:\Phyton37\Lib\subprocess.py", line 676, in __init__
[denite] restore_signals, start_new_session)
[denite] File "C:\Phyton37\Lib\subprocess.py", line 957, in _execute_child
[denite] startupinfo)
[denite] FileNotFoundError: [WinError 2] æå®ããããã¡ã¤ã«ãè¦ã¤ããã¾ãã。
[denite] Please execute :messages command.
ã¨ãããã、grepãå·®ãæ¿ããã°ãªãã¨ããªãããã®ç²¾ç¥ã§、å·®ãæ¿ããå ãæ¤ç´¢。 Platinum Searcherãè©å¤ãè¯ããããªã®ã§、å°å ¥ãããã¨ã«ãã。
Goã®ã¤ã³ã¹ãã¼ã«
Download and installã«ã¢ã¯ã»ã¹ã、ã¤ã³ã¹ãã¼ã«ãã。
Platinum Searcherã®ã¤ã³ã¹ãã¼ã«
Platinum Searcherã以ä¸ã®ã³ãã³ãã§ã¤ã³ã¹ãã¼ã«ãã。
go get -u github.com/monochromegane/the_platinum_searcher/
ç°¡å。
deniteã®è¨å®
以ä¸ã.vimrcã«è¨è¿°ãã。:help deniteã«æ¸ãã¦ããå 容ããã®ã¾ã¾ã³ãã。
call denite#custom#var('grep', {
\ 'command': ['pt'],
\ 'default_opts': [
\ '-i', '--nogroup', '--nocolor', '--smart-case'],
\ 'recursive_opts': [],
\ 'pattern_opt': [],
\ 'separator': ['--'],
\ 'final_opts': [],
\ })
ææ³
ããã§、Denite grepåºæ¥ãããã«ãªã£ã¦、大å楽ã«ãªã£ã。
ã³ã¡ã³ã
ã³ã¡ã³ããæ稿