Skip to content

pipe-to not grabbing selection as arguments #11302

Description

@jerabaul29

Summary

I wonder if pipe-to does not grab the selections as arguments as expected - or otherwise I do not understand correctly the documentation about it, and it would be helpful to provide more details about how it should be used :) .

Reproduction Steps

I tried this:

  1. hx
  2. write the world "hello" on a line (without the "")
  3. select the whole line with x
  4. type :pipe-to touch

I expected this to happen:

  1. the command touch hello is executed and the empty file hello gets created

Instead, this happened:

  1. the editor displays an error message: Shell error: touch: missing file operandTry 'touch --help' for more information.

I have also tried a number of variations around this (putting spaces, " , etc)

Helix log

2024-07-24T17:53:10.031 helix_term::commands [ERROR] Shell error: touch: missing file operand
Try 'touch --help' for more information.

Platform

Linux, Ubunt 22.04

Terminal Emulator

GNOME Terminal 3.44.0 using VTE 0.68.0 +BIDI +GNUTLS +ICU +SYSTEMD

Installation Method

app image from latest release

Helix Version

24.7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions