Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surround arguments with ' in config file #16

Open
anvandaren opened this issue Oct 29, 2021 · 0 comments
Open

Surround arguments with ' in config file #16

anvandaren opened this issue Oct 29, 2021 · 0 comments

Comments

@anvandaren
Copy link

Hi,

Just installed lazycli on Ubuntu 18.04 and tried it with ls -l. Operations for files that contain spaces does not work with the default config file as the argument is not surrounded by '. When I add that for example rm works. Example:

  - name: ls -l
    registered_commands:
      - ls -l
    key_bindings:
      - key: d
        command: rm -rf '$8'
        confirm: true
      - key: o
        command: xdg-open '$8'
      - key: u
        command: cd '$8'
    lines_to_skip: 1

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant