Closed petobens closed 2 years ago
@petobens Sorry for a late response. You are using rupa/z? Then, _z()
is an internal function, and it sends its output to stderr intentionally (See here). rupa/z defines z()
for usual use.
:lua require('telescope').extensions.z.list({cmd = {'bash', '-c', 'source /usr/share/z/z.sh && z -l'}})
You can get expected results with commands above, I think.
Since the
z
module is not in my PATH in order to run thez
executable I do:The output of this line, which gets the command output, is:
which implies that the
_z
executable output is thrown into the stderr rather than the stdout as per https://github.com/nvim-telescope/telescope.nvim/blob/f262e7d56d37625613c5de0df5a933cccacf13c5/lua/telescope/utils.lua#L426 .Any pointers about what's going on? Thanks in advance