Finish Tips
This commit is contained in:
		
							parent
							
								
									6c8cd1b111
								
							
						
					
					
						commit
						f5e58a5ca7
					
				| 
						 | 
					@ -432,11 +432,10 @@ _arguments、_alternative、_regex_arguments等的定义处要在正确的地方
 | 
				
			||||||
使用_regex_arguments时要记得在开头写匹配命令的模式(不需要加入匹配动作(action))。
 | 
					使用_regex_arguments时要记得在开头写匹配命令的模式(不需要加入匹配动作(action))。
 | 
				
			||||||
 | 
					
 | 
				
			||||||
记得在_regex_arguments的任何PATTERN(模式)参数后加上null字符$'\0'
 | 
					记得在_regex_arguments的任何PATTERN(模式)参数后加上null字符$'\0'
 | 
				
			||||||
* Tips
 | 
					* 小贴士
 | 
				
			||||||
Sometimes you have a situation where there is just one option that can come after a subcommand, and zsh will complete this
 | 
					有时一个子命令后只会跟一个选项,这时zsh会在tab在子命令后按下时自动补全。如果你想要在补全前先列出选项和描述,
 | 
				
			||||||
automatically when tab is pressed after the subcommand. If instead you want it listed with its description before completing
 | 
					你可以向ACTION(动作)加入另一个空选项(比如\:),如':TAG:DESCRIPTION:((opt1\:"opt1描述" \:))'
 | 
				
			||||||
you can add another empty option (i.e. \:) to the ACTION like this ':TAG:DESCRIPTION:((opt1\:"description for opt1" \:))'
 | 
					注意这只对在定义参数中使用ACTION的工具函数(_arguments、_regex_arguments等)有效。
 | 
				
			||||||
Note this only applies to utility functions that use ACTIONs in their specification arguments (_arguments, _regex_arguments, etc.)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Other resources
 | 
					* Other resources
 | 
				
			||||||
[[https://wikimatze.de/writing-zsh-completion-for-padrino/][Here]] is a nicely formatted short tutorial showing basic usage of the _arguments function,
 | 
					[[https://wikimatze.de/writing-zsh-completion-for-padrino/][Here]] is a nicely formatted short tutorial showing basic usage of the _arguments function,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue