Re: [Fish-users] Completion on a function

2016-11-25 Thread Kurtis Rader
On Fri, Nov 25, 2016 at 7:54 PM, Shiyao Ma  wrote:

> Is it possible to see what a command is wrapped to?
>
> Like, 'fish_wrapped_by e' gives env.
>

I think the only practical solution is to run `complete` (no arguments or
flags) and find `--command e` and see if it has a `--wraps` flag.

FWIW, I think the `complete` command should have a query option to make it
easy to output only the completions for a specific command. That's another
enhancement request someone could make if they felt strongly about it.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users


Re: [Fish-users] Completion on a function

2016-11-25 Thread Shiyao Ma
Is it possible to see what a command is wrapped to?

Like, 'fish_wrapped_by e' gives env.
--
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users


Re: [Fish-users] Completion on a function

2016-11-25 Thread Kurtis Rader
On Fri, Nov 25, 2016 at 7:46 PM, Shiyao Ma  wrote:

> Thanks.
>
> Problem solved.
>

You're welcome. For the record the issue about `functions $funcname` not
showing the `--wraps` flag is issue #1625
.


-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users


Re: [Fish-users] Completion on a function

2016-11-25 Thread Shiyao Ma
Thanks.

Problem solved.
--
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users


Re: [Fish-users] How to specify the completion layout length?

2016-11-25 Thread Kurtis Rader
No, you cannot customize the completion layout. Fish tries really hard to
avoid needing to "knobs" the user can tweak to customize such things.
You're welcome to open an issue describing why you want to have more
control over the layout. But don't be surprised if the answer is "no, we're
not going to provide a way to let the user customize the layout." However,
depending on how you explain why you want a different layout we might
improve the auto-layout.

On Fri, Nov 25, 2016 at 7:41 PM, Shiyao Ma  wrote:

> Hi,
>
>
> In the following snapshot:
> http://imgur.com/a/Bq6Mz
>
> the completion list is layout in a Nx5 grid.
>
> can I make it layout in Nx8 or Nx8, etc?
>
> Regards.
>
>
>
>
>
> --
>
> 吾輩は猫である。ホームーページはhttps://introo.me 。
>
> 
> --
>
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>


-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users


[Fish-users] How to specify the completion layout length?

2016-11-25 Thread Shiyao Ma
Hi,


In the following snapshot:
http://imgur.com/a/Bq6Mz

the completion list is layout in a Nx5 grid.

can I make it layout in Nx8 or Nx8, etc?

Regards.





-- 

吾輩は猫である。ホームーページはhttps://introo.me 。
--
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users


Re: [Fish-users] Completion on a function

2016-11-25 Thread Kurtis Rader
The problem is that `alias` is just a wrapper that creates a `function`.
And while `functions e` doesn't show it (a known issue) the `alias` command
did `function e --wraps env`. So the solution is don't use `alias`. Just
define the function yourself:

function e
env MY_PWD=$PWD emacsclient -t -a "" ^/dev/null
end

Note that you'll need to start a new shell, or manually delete the
completion for `e`, to stop seeing the completions for the `env` command.

On Fri, Nov 25, 2016 at 7:02 PM, Shiyao Ma  wrote:

> Hi,
>
> I've this alias:
> alias e 'env MY_PWD=$PWD emacsclient -t -a "" ^/dev/null'
>
> when I type: e ,
> fish will complete as if I've typed: env .
>
> Indeed, I only want: e  to give a list of files in current dir.
> How to achieve the above effect?
>
>
> Thanks.
>
> --
>
> 吾輩は猫である。ホームーページはhttps://introo.me 。
>
> 
> --
>
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>


-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users


[Fish-users] Completion on a function

2016-11-25 Thread Shiyao Ma
Hi,

I've this alias:
alias e 'env MY_PWD=$PWD emacsclient -t -a "" ^/dev/null'

when I type: e ,
fish will complete as if I've typed: env .

Indeed, I only want: e  to give a list of files in current dir.
How to achieve the above effect?


Thanks.

-- 

吾輩は猫である。ホームーページはhttps://introo.me 。
--
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users