Hello

I'm on a non-english macos install (german). There, Apple was so clever to
translate the values for the kMDItemKind attribute as well… 🤯

~ mdls -name kMDItemKind /Applications/iBooks.app
kMDItemKind = "Programm"


And that's why it doesn't work for me.

I submitted a PR which fixes this by using kMDItemContentType instead
(which was found by David Adam on gitter.im @
https://gitter.im/fish-shell/fish-shell?at=5afede24d332ee5fad2bd672).

PR: https://github.com/fish-shell/fish-shell/pull/4997
<https://github.com/fish-shell/fish-shell/pull/4997>

It also fixes the error, that "open -a" supports being given a path name of
an app and fish should support this as well with <tab> completion.

Best regards,
Alexander


Am Do., 17. Mai 2018 um 15:02 Uhr schrieb Alexander Skwar <
alexanders.mailinglists+nos...@gmail.com>:

> Hi David
>
> Thanks a lot.
>
> Seems, that my mac is somehow broken. The following returns nothing here.
>
> mdfind 'kMDItemKind==Application'
>
> I don't get, how that can be…
>
> Well, anyway, thanks. Gotta go and fix my mac – if only I knew, what's
> broken :)
>
> Cheers,
> Alexander
>
>
> Am Do., 17. Mai 2018 um 14:04 Uhr schrieb David Guyot <
> david.gu...@europecamions-interactive.com>:
>
>> Hello.
>>
>> It seems that fish has this completion since dec 2015; see https://gith
>> ub.com/fish-shell/fish-shell/blob/master/share/completions/open.fish
>>
>> Regards.
>>
>> Le jeudi 17 mai 2018 à 10:07 +0200, Alexander Skwar a écrit :
>> > Hello
>> >
>> > To start an application from the command line on macos, there's the
>> > "open" tool (https://ss64.com/osx/open.html). If given a "file", it
>> > starts the default application and loads the file in it, eg.:
>> >
>> >      open README.md             => opens README.md in an editor
>> >      open http://lmgtfy.com/    => opens the URL in a browser
>> >      open .                     => shows the current dir in Finder
>> >
>> > "open" also has a "-a application" option, to start a specified app
>> > instead. To load the current directory in Visual Studio Code, one
>> > would execute:
>> >
>> >      open -a "Visual Studio Code" .
>> >
>> > With quotes or \ escapes. The "string" after "-a" needs to be, what's
>> > in the /Application folder.
>> >
>> > Having to enter the name correctly and completely is annoying. Would
>> > be great, if one could use <tab>-completion there. zsh has this
>> > feature ;)
>> >
>> > How can one configure fish shell to have such a feature as well? :)
>> >
>> > Thanks,
>> > Alexander
>> --
>> David Guyot
>> Administrateur système / Sysadmin
>> Europe Camions Interactive / Stockway
>> Moulin Collot F-88500 Ambacourt
>> Tél : +33 (0)3 29 30 47
>> 85------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Fish-users mailing list
>> Fish-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fish-users
>>
>
>
> --
>
>
> Alexander
> --
> =>        *Google+* => http://plus.skwar.me         <==
> => *Chat* (Jabber/Google Talk) => a.sk...@gmail.com <==
>
>
>

-- 


Alexander
-- 
=>        *Google+* => http://plus.skwar.me         <==
=> *Chat* (Jabber/Google Talk) => a.sk...@gmail.com <==
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to