Skip to content

Commit

Permalink
Fix fzf-lua on multiline string and add screenshots to integrations (C…
Browse files Browse the repository at this point in the history
  • Loading branch information
deathbeam authored Mar 9, 2024
1 parent bc8d3a4 commit d65bf4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ Requires [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) plug
},
```

![image](https://github.com/CopilotC-Nvim/CopilotChat.nvim/assets/5115805/14360883-7535-4ee3-aca1-79f6c39f626b)

### fzf-lua integration

Requires [fzf-lua](https://github.com/ibhagwan/fzf-lua) plugin to be installed.
Expand Down Expand Up @@ -406,6 +408,8 @@ Requires [fzf-lua](https://github.com/ibhagwan/fzf-lua) plugin to be installed.
},
```

![image](https://github.com/CopilotC-Nvim/CopilotChat.nvim/assets/5115805/743455bb-9517-48a8-a7a1-81215dc3b747)

## Roadmap (Wishlist)

- Use vector encodings to automatically select code
Expand Down
2 changes: 1 addition & 1 deletion lua/CopilotChat/integrations/fzflua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function M.pick(pick_actions, config, opts)
opts = vim.tbl_extend('force', {
prompt = pick_actions.prompt .. '> ',
preview = fzflua.shell.raw_preview_action_cmd(function(items)
return string.format('echo %s', pick_actions.actions[items[1]])
return string.format('echo "%s"', pick_actions.actions[items[1]])
end),
actions = {
['default'] = function(selected)
Expand Down

0 comments on commit d65bf4e

Please sign in to comment.