Skip to main content
deleted 26 characters in body
Source Link
Thunderbeef
  • 507
  • 4
  • 13

While navigating file system in :Explore mode, is it possible to select and open multiple files, each in a new tab?

Edit:

I ended up using a function proposed by Jair López, because it works pretty much as I envisioned it, although statox provided a good explanation for built-in netrw mechanics.

For consistency, I also added a normal mode mapping to make ShiftTT open a new tab, while keeping netrw tab in focus. It simplifies opening tabs for multiple files that aren't listed consecutively.

auautocmd Filetype netrw nnoremapnmap <buffer> <silent> TT :call NetrwOpenMultiTab()<CR>VT

While navigating file system in :Explore mode, is it possible to select and open multiple files, each in a new tab?

Edit:

I ended up using a function proposed by Jair López, because it works pretty much as I envisioned it, although statox provided a good explanation for built-in netrw mechanics.

For consistency, I also added a normal mode mapping to make ShiftTT open a new tab, while keeping netrw tab in focus. It simplifies opening tabs for multiple files that aren't listed consecutively.

au Filetype netrw nnoremap <buffer> <silent> TT :call NetrwOpenMultiTab()<CR>

While navigating file system in :Explore mode, is it possible to select and open multiple files, each in a new tab?

Edit:

I ended up using a function proposed by Jair López, because it works pretty much as I envisioned it, although statox provided a good explanation for built-in netrw mechanics.

For consistency, I also added a normal mode mapping to make ShiftTT open a new tab, while keeping netrw tab in focus. It simplifies opening tabs for multiple files that aren't listed consecutively.

autocmd Filetype netrw nmap <buffer> <silent> TT VT
solution
Source Link
Thunderbeef
  • 507
  • 4
  • 13

While navigating file system in :Explore mode, is it possible to select and open multiple files, each in a new tab?

Edit:

I ended up using a function proposed by Jair López, because it works pretty much as I envisioned it, although statox provided a good explanation for built-in netrw mechanics.

For consistency, I also added a normal mode mapping to make ShiftTT open a new tab, while keeping netrw tab in focus. It simplifies opening tabs for multiple files that aren't listed consecutively.

au Filetype netrw nnoremap <buffer> <silent> TT :call NetrwOpenMultiTab()<CR>

While navigating file system in :Explore mode, is it possible to select and open multiple files, each in a new tab?

While navigating file system in :Explore mode, is it possible to select and open multiple files, each in a new tab?

Edit:

I ended up using a function proposed by Jair López, because it works pretty much as I envisioned it, although statox provided a good explanation for built-in netrw mechanics.

For consistency, I also added a normal mode mapping to make ShiftTT open a new tab, while keeping netrw tab in focus. It simplifies opening tabs for multiple files that aren't listed consecutively.

au Filetype netrw nnoremap <buffer> <silent> TT :call NetrwOpenMultiTab()<CR>
edited tags
Link
Jair López
  • 1.9k
  • 1
  • 15
  • 24
Source Link
Thunderbeef
  • 507
  • 4
  • 13
Loading