Skip to content

commandline -f ops reordered with respect to other commandline operations #3031

@laughedelic

Description

@laughedelic

I observe strange behaviour regarding the execution order of commandline calls with -f option and without.

Example: I define the following function and bind it to a ctrls:

function __surround
    commandline -f backward-kill-path-component
    commandline -i '"'
    commandline -f yank
    commandline -a '"'
end

bind \cs '__surround'

(in my fish_user_key_bindings.fish)

What happens instead:

  • cut + paste (those with -f)
  • insert + append

Here is a demo: asciicast

This is just a simplified example, I have encountered this behaviour in more situations and if this is not enough, I can provide more examples.


  • Fish version: fish, version 2.3b2 (homebrew install --devel fish)
  • Operating system: OS X El Capitan
  • Terminal emulator: iTerm2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions