Skip to content

the output is added to the end of the file #77

@jabbalaci

Description

@jabbalaci

Say I want to sort these lines:

bb                                                                                                                                                                        
dd    
cc    
aa

In Vim it works like this: select the four lines, press "!", type "sort", Enter, and the four selected lines are replaced by the sorted result.

I want to redo this with this plugin. I have this at the moment:

    {
	    "keys": ["ctrl+enter"],
	    "command": "shell_command",
	    "args": {
	      "prompt": "shell command: ",
	      "region": "stdin",
	      "target": "point"
	    }
    }

I select the four lines, press Ctrl + Enter, type in "sort", Enter, and the problem is this: the sorted result is appended to the end of the file. What I want: overwrite the selected four unsorted lines. Is it possible? How?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions