mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
Reword open
completion descriptions, don't use sed
Fixes issue with (null) junk in -b completions
This commit is contained in:
parent
f79ff72096
commit
b1bbb58af6
1 changed files with 12 additions and 12 deletions
|
@ -1,14 +1,14 @@
|
|||
if test (uname) = 'Darwin' # OS X
|
||||
complete -c open -s a -d 'Open APP, or open FILE(s), if supplied, with APP' -r -a "(mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications 'kMDItemContentType==com.apple.application-*' | sed -E 's/.+\/(.+)\.app/\1/g')"
|
||||
complete -c open -s b -d 'Bundle Identifier of APP to open, or to be used to open FILE' -x -a "(mdls (mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications 'kMDItemContentType==com.apple.application-*') -name kMDItemCFBundleIdentifier | sed -E 's/kMDItemCFBundleIdentifier = \"(.+)\"/\1/g')"
|
||||
complete -c open -s e -d 'Open FILE(s) with /Applications/TextEdit'
|
||||
complete -c open -s t -d 'Open FILE(s) with default text editor from LaunchServices'
|
||||
complete -c open -s f -d 'Open STDIN/PIPE with default text editor. End input with C-d.'
|
||||
complete -c open -s F -d 'Don\'t restore previous application windows. Except Untitled documents.'
|
||||
complete -c open -s W -d 'Wait until APP has exited'
|
||||
complete -c open -s R -d 'Reveal FILE(s) in Finder'
|
||||
complete -c open -s n -d 'Open new instace of APP'
|
||||
complete -c open -s g -d 'Open in background'
|
||||
complete -c open -s h -d 'Finds and opens for a header whose name matches the given string. Better performance with full names i.e. NSView.h' -r
|
||||
complete -c open -l args -d 'Pass arguments to opened APP in the argv parameter to main()' -x
|
||||
complete -c open -s a -d 'specify app name' -r -a "(mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications 'kMDItemContentType==com.apple.application-*' | string replace -r '.+/(.+).app' '\$1')"
|
||||
complete -c open -s b -d 'specify app bundle id' -x -a "(mdls (mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications 'kMDItemContentType==com.apple.application-*') -name kMDItemCFBundleIdentifier | string replace -rf 'kMDItemCFBundleIdentifier = \"(.+)\"' '\$1')"
|
||||
complete -c open -s e -d 'open in TextEdit'
|
||||
complete -c open -s t -d 'open in default editor'
|
||||
complete -c open -s f -d 'open stdin with editor'
|
||||
complete -c open -s F -d 'open app with fresh state'
|
||||
complete -c open -s W -d 'wait for app to exit'
|
||||
complete -c open -s R -d 'reveal in Finder'
|
||||
complete -c open -s n -d 'open new instance of app'
|
||||
complete -c open -s g -d 'open app in background'
|
||||
complete -c open -s h -d 'open library header file' -r
|
||||
complete -c open -l args -d 'pass remaining args to app' -x
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue