James Trew

Results 305 comments of James Trew

This is likely an upstream neovim issue that was fixed recently. You can try out the nightly build of neovim. I could try myself but I need a proper minimal...

Hmm.. the prompt buffer is using `buftype='prompt'` and by design it only works on a single line basis. What you're trying to do is probably possible if all newline characters...

> What is the way to convert all newline character line to their escape sequence equalient when pasting text into telescope input? This doesn't exist in telescope. Maybe we can...

Can you be more descriptive about what's not working? Remember, you still can't just paste a multiline block into the buffer. But `--multiline` will let you search like `foo\nbar`

> @jamestrew ![image](https://private-user-images.githubusercontent.com/69033713/311285791-77e21d40-9511-4f51-b349-1f721cb301ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDk5MTYwNTUsIm5iZiI6MTcwOTkxNTc1NSwicGF0aCI6Ii82OTAzMzcxMy8zMTEyODU3OTEtNzdlMjFkNDAtOTUxMS00ZjUxLWIzNDktMWY3MjFjYjMwMWVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzA4VDE2MzU1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2MzA0N2E4MmJlZWU1Y2ZlMTUyMDNiYjJhOGZkYTFhY2Q2NDFhODYzMzUwYmQ0NzFkOWJmN2FmMDk4YmU4YjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gZUE6oycje2FZ3a8E90dRjXU_7vYCg8OTRXI4pETXeA) Technically the function\n should grep the two entires in the file... But it doesn't... you need to escape the parentheses. `function\(\)\n`. This works for me with `--multiline`.

With the way telescope uses a prompt-buffer, this isn't a trivial problem for telescope I think. We're kind of limited to a single line prompt, which disallows literal newlines (need...

workaround for pasting ```lua require("telescope").setup({ defaults = { mappings = { n = { ["p"] = function(prompt_bufnr) local current_picker = action_state.get_current_picker(prompt_bufnr) local text = vim.fn.getreg('+'):gsub("\n", "\\n") -- which register depends...

See related/duplicate: https://github.com/nvim-telescope/telescope.nvim/issues/2704 It's possible with custom configuration as suggested in the comment of the issue above but we're not in the position to add footers to the picker windows...

I'm not quite following the workflow you're describing so I'm not quite sure how and why you'd need to refresh a picker. How do you change a rename a symbol...

Ah I see thanks for the clarification. Problem is, the current definition of `:Telescope resume` is to open the previous picker in the identical state including mulit-selection. I having a...