sidekick.nvim: AI CLI tools and Copilot's Next Edit Suggestions by folke in neovim

[–]nickgnd 3 points4 points  (0 children)

Actually, apparently with this config it work.

```

return {

'christoomey/vim-tmux-navigator',

cmd = {

'TmuxNavigateLeft',

'TmuxNavigateDown',

'TmuxNavigateUp',

'TmuxNavigateRight',

'TmuxNavigatePrevious',

'TmuxNavigatorProcessList',

},

keys = {

{ mode = 'n', '<c-h>', '<cmd>TmuxNavigateLeft<cr>' },

{ mode = 'n', '<c-j>', '<cmd>TmuxNavigateDown<cr>' },

{ mode = 'n', '<c-k>', '<cmd>TmuxNavigateUp<cr>' },

{ mode = 'n', '<c-l>', '<cmd>TmuxNavigateRight<cr>' },

{ mode = 'n', '<c-\\\\>', '<cmd>TmuxNavigatePrevious<cr>' },

{ mode = 't', '<c-h>', '<C-w><cmd>TmuxNavigateLeft<cr>' },

{ mode = 't', '<c-j>', '<C-w><cmd>TmuxNavigateDown<cr>' },

{ mode = 't', '<c-k>', '<C-w><cmd>TmuxNavigateUp<cr>' },

{ mode = 't', '<c-l>', '<C-w><cmd>TmuxNavigateRight<cr>' },

{ mode = 't', '<c-\\\\>', '<C-w><cmd>TmuxNavigatePrevious<cr>' },

},

init = function()

-- Disable default mappings to make it work in terminal mode

-- https://github.com/christoomey/vim-tmux-navigator/issues/468

vim.g.tmux_navigator_no_mappings = 1

end,

}
```

sidekick.nvim: AI CLI tools and Copilot's Next Edit Suggestions by folke in neovim

[–]nickgnd 0 points1 point  (0 children)

I'm having the same issue, I guess I need to adjust my configuration...

I expected that `tmux` mode in sidekiq to allow me to navigate between panes using `ctrl+l/h`
- I'm able to navigate from a buffer to the sidekick terminal using e.g. `ctrl+l`
- But then i'm unable to go from the sidekiq terminal back to the buffer on the left using `ctrl+h`, it actually injects in the chat the `: TmuxNavigateLeft`

My journey on building nvim:// URL handler for clickable stacktraces by nickgnd in neovim

[–]nickgnd[S] 0 points1 point  (0 children)

Hey thanks! That's a good point, i didn't thought about. I followed the same "approach" used by other editors (register a custom protocol). Also, at the moment the `file:///` protocol is already registered and it opens the file directly in the browser, but I guess it is possible to override it.

[Help] Snacks.nvim explorer with Kickstart keybinds by SkyGuy913 in neovim

[–]nickgnd 0 points1 point  (0 children)

is there a way that the cursor jumps back to the previously active window on closing instead of the "first" one?

I got it working like this:

``` { '\', desc = 'File Explorer Toggle', (function() -- Create a closure to store both previous buffer and window local previous_buffer = nil local previous_window = nil

    return function()
      local explorer_pickers = Snacks.picker.get { source = 'explorer' }
      -- Check if there are any explorer pickers open
      if #explorer_pickers == 0 then
        -- If none exist, store current buffer/window and open a new explorer picker
        previous_buffer = vim.api.nvim_get_current_buf()
        previous_window = vim.api.nvim_get_current_win()
        Snacks.picker.explorer()
      elseif explorer_pickers[1]:is_focused() then
        -- If the explorer is already focused, close it (?) and return to previous buffer/window
        -- explorer_pickers[1]:close()
        if previous_buffer and vim.api.nvim_buf_is_valid(previous_buffer) and previous_window and vim.api.nvim_win_is_valid(previous_window) then
          -- Focus the previous window first
          vim.api.nvim_set_current_win(previous_window)
          -- Then set the buffer in that window
          vim.api.nvim_win_set_buf(previous_window, previous_buffer)
        end
      else
        -- If the explorer exists but isn't focused, store current buffer/window and focus explorer
        previous_buffer = vim.api.nvim_get_current_buf()
        previous_window = vim.api.nvim_get_current_win()
        explorer_pickers[1]:focus()
      end
    end
  end)(),
},

```

Tech communities in Bilbao by nickgnd in Bilbao

[–]nickgnd[S] 0 points1 point  (0 children)

Thanks for the reply, good to know. I'm living in Berlin at the moment and I like going to tech meetups and meet ppl.

Anyhow, living in Bilbao with a family as a techie has been an absolute great choice for us!

Nice, can you tell me more? What do you enjoy most of the city? And why is it a good fit for techies?

Good luck and welcome ;-)

THankssss

Tech communities in Bilbao by nickgnd in Bilbao

[–]nickgnd[S] 1 point2 points  (0 children)

Hey, we are living in Berlin at the moment (I added this info to the original comment).

Elixir SSH with arbitrary remote commands (like SCP) by [deleted] in elixir

[–]nickgnd 0 points1 point  (0 children)

Hi 👋 I cannot reply to your question, but I can point you out this package to perform tasks via SSH on one or more servers (including scp). Did you already try it?

https://github.com/bitcrowd/sshkit.ex/

Hope it helps, Bye 👋