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

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

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 excepti

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

[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 。 --

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

[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