Skip to content

File name not passed to external editor #432

@icyrockcom

Description

@icyrockcom

I set this:

Preferences
  View & Edit
    Use external command
      Command line = vim %F
      Execute command in terminal tab = checked

This launches vim, but %F is not passed. Looking at the code:

options.set('shell_command', split_command[0])

shell_command is only the command itself (vim), while arguments is the full command (vim %F with %F replaced). This is then sent to create_terminal_tab which uses only shell_command

terminal_command = shlex.split(terminal_command.format('', shell_command, path))

I assume you'd want something along the lines of ''.join(options.get('arguments', []) there, right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions