aboutsummaryrefslogtreecommitdiff
path: root/runtime/pack/dist/opt/netrw/plugin
Commit message (Collapse)AuthorAge
* feat(net): vim.net.request(outbuf) writes response to buffer #36164Yochem van Rosmalen2026-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Non-trivial to write output of vim.net.request to buffer. Requires extra code in plugin/net.lua which can't be reused by other plugin authors. ``` vim.net.request('https://neovim.io', {}, function(err, res) if not err then local buf = vim.api.nvim_create_buf(true, false) if res then local lines = vim.split(res.body, '\n', { plain = true }) vim.api.nvim_buf_set_lines(buf, 0, -1, true, lines) end end end) ``` Solution: Accept an optional `outbuf` argument to indicate the buffer to write output to, similar to `outpath`. vim.net.request('https://neovim.io', { outbuf = buf }) Other fixes / followups: - Make plugin/net.lua smaller - Return objection with close() method - vim.net.request.Opts class - vim.validate single calls - Use (''):format(...) instead of `..`
* vim-patch:0bda783: runtime(netrw): upstream snapshot v184Jaehwang Jung2025-09-13
| | | | | | | | | | | | | | | | | This change includes the following upstream commits: - fix: remove black lines in directory listing - fix: correctly create new file when using Lexplore - refactor: remove print functionality The main highlight is removing print functionality that was broken both in neovim and vim. closes: vim/vim#17847 https://github.com/vim/vim/commit/0bda7830ac140d2a347fe81edc95314b020b7ca6 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
* vim-patch:2249cc0: runtime(netrw): remove the fun from netrw :)Jaehwang Jung2025-09-13
| | | | | | | | closes: vim/vim#17584 https://github.com/vim/vim/commit/2249cc0a4704c46583a08fa36b428d8c04004a49 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
* vim-patch:d1a975a: runtime(netrw): upstream snapshot of v181Jaehwang Jung2025-09-13
| | | | | | | | closes: vim/vim#17461 https://github.com/vim/vim/commit/d1a975ae6418b391088ba11aa85e00b6ab0db80a Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
* vim-patch:d623773: runtime(netrw): upstream snapshot of v180Jaehwang Jung2025-09-13
| | | | | | | | | | | | | | | | | relevant commits: - fix(gvim): don't set previous jump - don't overwrite copy, copydir, mkdir and move command options - fix: correctly name deprecate function - refactor: remove s:NetrwBufRemover - refactor: s:NetrwDelete -> netrw#fs#Remove - defaults!: remove g:netrw_use_errorwindow fixes: vim/vim#17114 closes: vim/vim#17123 https://github.com/vim/vim/commit/d62377386c92e500365009412efd3b1232a02c82 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
* vim-patch:29d596c: runtime(netrw): upstream snapshot of v179Jaehwang Jung2025-09-13
| | | | | | | | closes: vim/vim#16787 https://github.com/vim/vim/commit/29d596c80ab08a1f966a16912788576a14c217ad Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
* vim-patch:5b97947: runtime(netrw): runtime(netrw): upstream snapshot of v178Jaehwang Jung2025-09-13
| | | | | | | | | | | | | | | | | | | | | | relevant commits: - refactor: netrw#own#Deprecate -> netrw#msg#Deprecate - refactor: netrw#own#PathJoin -> netrw#fs#PathJoin - fix: typos - refactor: netrw#own#Open -> netrw#os#Open - deprecate!: netrw#WinPath - refactor: netrw#WinPath -> netrw#fs module - refactor: s:ShellEscape -> netrw#os module - refactor: s:NetrwExe -> netrw#os module - refactor: s:NetrwGlob -> netrw#fs module - refactor: s:NetrwGetcwd -> netrw#fs module - refactor: s:NetrwFullPath -> netrw#fs module - refactor: s:ComposePath -> netrw#fs module closes: vim/vim#16718 https://github.com/vim/vim/commit/5b97947bbd197fb3aee504c459a52d3a5683740a Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
* vim-patch:73d8222: runtime(netrw): upstream snapshot of v177Jaehwang Jung2025-09-13
| | | | | | | | | | | | | | | | | | relevant commits: - defaults!: use 'suffixes' for 'g:netrw_sort_sequence' - refactor: remove associated buffer when deliting a file - refactor: s:NetrwLocalRm - refactor: s:NetrwDelete - refactor: s:NetrwLocalRmFile - feat: use vim.notify on neovim - fix: prefer v:lua instead of luaeval for vim.deprecate - chore: remove old batteries closes: vim/vim#16638 https://github.com/vim/vim/commit/73d8222b31be47d274e2a194e3dde25088c6bb69 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
* vim-patch:ec961b0: runtime(netrw): upstream snapshot of v176Jaehwang Jung2025-09-13
| | | | | | | | | | | | | | | | | | | | | | relevant commits: - deprecate!: netrw#Launch, netrw#Open and gx mappings - refactor: move some utility functions in a private file - feat: add function to deprecate features - refactor!: remove NetrwClean command and function - refactor: use appropriate directories to store temporary files - refactor: better way to call vim.ui.open - refactor(Open): prefer lua wrapper function instead of cmdline - refactor!: drop vim 7 checks - refactor: use vim.ui.open when using neovim - refactor: remove s:CheckIfKde - refactor: balloon functionality - refactor!: remove netrw#Access function closes: vim/vim#16519 https://github.com/vim/vim/commit/ec961b05dcc1efb0a234f6d0b31a0945517e75d2 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
* vim-patch:becf184: runtime(misc): removing saccarosium from maintainer list ↵zeertzjq2025-09-13
| | | | | | | | | (#35740) closes: vim/vim#17848 https://github.com/vim/vim/commit/becf1844e03462b2c997689caafc77bc9c812252 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
* feat(net): vim.net.request(), :edit [url] #34140Tom Ampuero2025-07-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Nvim depends on netrw to download/request URL contents. Solution: - Add `vim.net.request()` as a thin curl wrapper: - Basic GET with --silent, --show-error, --fail, --location, --retry - Optional `opts.outpath` to save to a file - Operates asynchronously. Pass an `on_response` handler to get the result. - Add integ tests (requires NVIM_TEST_INTEG to be set) to test success and 404 failure. - Health check for missing `curl`. - Handle `:edit https://…` using `vim.net.request()`. API Usage: 1. Asynchronous request: vim.net.request('https://httpbingo.org/get', { retry = 2 }, function(err, response) if err then print('Fetch failed:', err) else print('Got body of length:', #response.body) end end) 2. Download to file: vim.net.request('https://httpbingo.org/get', { outpath = 'out_async.txt' }, function(err) if err then print('Error:', err) end end) 3. Remote :edit integration (in runtime/plugin/net.lua) fetches into buffer: :edit https://httpbingo.org/get
* vim-patch:ba47934: runtime(netrw): remove netrwSettings.vim (#34747)Luca Saccarola2025-07-03
| | | | | | | | relevant commits: - distribution: remove NetrwSettings.vim closes: vim/vim#17635 https://github.com/vim/vim/commit/ba479348d4a02f96080bae51c693580dc3d2bab0
* vim-patch:c729d6d: runtime: decouple Open and Launch commands and gx mapping ↵Luca Saccarola2025-02-20
| | | | | | | | from netrw (#32506) closes: vim/vim#16494 fixes: #vim/vim#16486 https://github.com/vim/vim/commit/c729d6d154e097b439ff264b9736604824f4a5f4
* vim-patch:d402ba8: runtime(netrw): upstream snapshot of v175Christian Clason2025-01-20
| | | | | | | | | | | | | | | | Relevant commits: - release: netrw v175 - fix: prevent netrw to load into the built-in terminal - fix: restore correctly cpo settings - fix(docs): mispelled original authors name - chore: move viml files to new formatting standard fixes: vim/vim#16463 closes: vim/vim#16465 https://github.com/vim/vim/commit/d402ba81e256b21e73a98ec809bd4a9482613553 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
* vim-patch:9cfdabb: runtime(netrw): change netrw maintainerChristian Clason2025-01-18
Dr. Chip retired some time ago and is no longer maintaining the netrw plugin. However as a runtime plugin distributed by Vim, it important to maintain the netrw plugin in the future and fix bugs as they are reported. So, split out the netrw plugin as an additional package, however include some stubs to make sure the plugin is still loaded by default and the documentation is accessible as well. closes: vim/vim#16368 https://github.com/vim/vim/commit/9cfdabb074feefc9848e9f7a4538f201e28c7f06 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>