Skip to content

Support ctrl-w in the Snacks input #376

Answered by dpetka2001
mortymacs asked this question in Q&A
Discussion options

You must be logged in to vote

This is what worked for me

input = {
  win = {
    keys = {
      i_del_word = { "<C-w>", "delete_word", mode = "i" },
    },
    actions = {
      delete_word = function()
        return "<cmd>normal! diw<cr><right>"
      end,
    },
  },
},

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@mortymacs
Comment options

@hellovietduc
Comment options

@dpetka2001
Comment options

@hellovietduc
Comment options

Answer selected by mortymacs
Comment options

You must be logged in to vote
1 reply
@dpetka2001
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants