;ui: editFileAtPositionCommand doc tweaks (#1572)
This commit is contained in:
		
							parent
							
								
									aa0a8d079b
								
							
						
					
					
						commit
						6df8b6d46e
					
				| @ -43,32 +43,32 @@ runEditor mpos f = editFileAtPositionCommand mpos f >>= runCommand >>= waitForPr | |||||||
| -- | Get a shell command line to open the user's preferred text editor | -- | Get a shell command line to open the user's preferred text editor | ||||||
| -- (or a default editor) on the given file, and to focus it at the | -- (or a default editor) on the given file, and to focus it at the | ||||||
| -- given text position if one is provided and if we know how. | -- given text position if one is provided and if we know how. | ||||||
| -- We know how to focus on position for: emacs, vi, nano, VS code. | -- We know how to focus on position for: emacs, vim, nano, VS code, kakoune. | ||||||
| -- We know how to focus on last line for: vi. | -- We know how to focus on last line for: vi. | ||||||
| -- | -- | ||||||
| -- Some tests: | -- Some tests: | ||||||
| -- @ | -- @ | ||||||
| -- EDITOR program is:  LINE/COL specified ?  Command should be:                  | -- EDITOR program is:  LINE/COL specified ?  Command should be:                  | ||||||
| -- ------------------  --------------------  -----------------------------------  | -- ------------------  --------------------  -----------------------------------  | ||||||
| -- emacs               LINE COL              EDITOR +LINE:COL FILE | -- emacs,              LINE COL              EDITOR +LINE:COL FILE | ||||||
| -- emacsclient         LINE                  EDITOR +LINE     FILE | -- emacsclient,        LINE                  EDITOR +LINE     FILE | ||||||
| -- kak                                       EDITOR           FILE | -- kak                                       EDITOR           FILE | ||||||
| -- | -- | ||||||
| -- nano                LINE COL              nano +LINE,COL FILE | -- nano                LINE COL              EDITOR +LINE,COL FILE | ||||||
| --                     LINE                  nano +LINE     FILE | --                     LINE                  EDITOR +LINE     FILE | ||||||
| --                                           nano           FILE | --                                           EDITOR           FILE | ||||||
| -- | -- | ||||||
| -- code                LINE COL              code --goto FILE:LINE:COL | -- code                LINE COL              EDITOR --goto FILE:LINE:COL | ||||||
| --                     LINE                  code --goto FILE:LINE | --                     LINE                  EDITOR --goto FILE:LINE | ||||||
| --                                           code        FILE | --                                           EDITOR        FILE | ||||||
| -- | -- | ||||||
| -- vi, & variants      LINE [COL]            vi +LINE FILE | -- vi/vim variants     LINE [COL]            EDITOR +LINE FILE | ||||||
| --                     LINE (negative)       vi +     FILE | --                     LINE (negative)       EDITOR +     FILE | ||||||
| --                                           vi       FILE | --                                           EDITOR       FILE | ||||||
| -- | -- | ||||||
| -- (other PROG)        [LINE [COL]]          PROG FILE | -- other               [LINE [COL]]          EDITOR FILE | ||||||
| -- | -- | ||||||
| -- (not set)           LINE COL              emacsclient -a '' -nw +LINE:COL FILE | -- not set             LINE COL              emacsclient -a '' -nw +LINE:COL FILE | ||||||
| --                     LINE                  emacsclient -a '' -nw +LINE     FILE | --                     LINE                  emacsclient -a '' -nw +LINE     FILE | ||||||
| --                                           emacsclient -a '' -nw           FILE | --                                           emacsclient -a '' -nw           FILE | ||||||
| -- @ | -- @ | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user