Luca Saccarola
c363ca1ecd
runtime(netrw): change indent size from 1 to 2
...
closes : #16248
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-12-19 20:16:18 +01:00
Christian Brabandt
5c42c77315
runtime(netrw): do not pollute search history with symlinks
...
fixes : #16206
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-12-12 19:13:08 +01:00
Christian Brabandt
92b36663f8
runtime(netrw): only check first arg of netrw_browsex_viewer for being executable
...
fixes : #16185
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-12-08 09:52:37 +01:00
Konfekt
eda923e9c9
runtime(netrw): do not detach when launching external programs in gvim
...
On Debian 12 when detaching the program wouldn't launch at all
closes : #16168
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-12-04 20:12:44 +01:00
GuyBrush
d7745acbd8
runtime(netrw): Fixing powershell execution issues on Windows
...
closes : #16094
Signed-off-by: GuyBrush <miguel.barro@live.com>
2024-11-23 14:13:10 +01:00
Christian Brabandt
cacfccf803
runtime(netrw): update netrw's decompress logic
...
Detect a few more default archive types, correctly handle file
extensions with digits in it.
fixes : #16099
closes : #16104
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-11-23 13:28:01 +01:00
Konfekt
460799d885
runtime(netrw): small fixes to netrw#BrowseX
...
- do not enter dir in Netrw on opening
- double quotes after start cause error on Windows
See @chrisbra 's comments at
[0]
[0]: ff82e7a9db (diff-39baf27d8f62071617bbef12f874cce31c0ebd02ec99e7b119474ca870c636a3R5279)
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-11-14 21:42:27 +01:00
Christian Brabandt
5b63b236a0
runtime(netrw): directory symlink not resolved in tree view
...
closes : #16020
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-11-10 20:22:34 +01:00
Tom Benham
64a536d4fa
runtime(netrw): fix several bugs in netrw tree listing
...
fixes : #5630
fixes : #9807
fixes : #14623
closes : #15996
Signed-off-by: Tom Benham <tom.benham13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-11-07 21:31:49 +01:00
Christian Brabandt
a063b22b3b
runtime(netrw): prevent polluting the search history
...
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-11-07 14:31:09 +01:00
Tom Benham
4d618006ec
runtime(netrw): fix E874 when browsing remote directory which contains ~
character
...
closes : #15964
Signed-off-by: Tom Benham <tom.benham13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-10-31 10:47:23 +01:00
Christian Brabandt
8b0fa7a565
runtime(netrw): make :Launch/Open autoloadable
...
fixes : #15959
closes : #15962
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-10-31 09:21:23 +01:00
Christian Brabandt
9f32069b8c
runtime(netrw): fix regression with x mapping on Cygwin
...
related: #13687
Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-10-30 18:37:06 +01:00
Christian Brabandt
aa2ce6f580
runtime(netrw): fix filetype detection for remote files
...
fixes : #15961
while at it, remove the Decho comments in the s:NetrwOptionsRestore()
function
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-10-30 18:27:03 +01:00
Konfekt
3d7e567ea7
runtime(netrw): simplify gx file handling
...
It did not work very well, at least on Debian 12, and I am not sure Git
Bash and WSL, for example, were taken care of as maintenance stalled.
The whole logic was somewhat convoluted with some parts repeatedly invoking
failed commands.
The file handling was outdated, for example, nowadays Netscape is rarely
used, and also opinionated, for example mainly Microsoft Paint and Gimp for
Image files.
Instead, let's use (xdg-)open and similar commands on other systems
which respects the user's preferences.
closes : #15721
Co-authored-by: Luca Saccarola <96259932+saccarosium@users.noreply.github.com>
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-10-27 22:16:49 +01:00
Luca Saccarola
a7d456191d
runtime(netrw): deprecate and remove netrwFileHandlers#Invoke()
...
closes : #15895
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-10-21 21:31:29 +02:00
Peter Aronoff
be551dacb8
runtime(netrw): remove extraneous closing bracket
...
fixes : #15717
closes : #15718
Signed-off-by: Peter Aronoff <peter@aronoff.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-09-22 11:29:40 +02:00
yasuda
c18a9d5835
runtime(netrw): using inefficient highlight pattern for 'mf'
...
Fixes E872 too many '(' in highlight pattern for `mf` selection
fixup for #15551
closes : #15700
Signed-off-by: yasuda <yasuda@kyoto-sr.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-09-19 18:09:51 +02:00
Christian Brabandt
0f5effbd1f
runtime(netrw): delete confirmation not strict enough
...
fixes : #15680
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-09-15 19:17:23 +02:00
yasuda
c75dad0177
runtime(netrw): Change line on mx
if command output exists
...
closes : #15550
Signed-off-by: yasuda <yasuda@kyoto-sr.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-08-22 21:06:32 +02:00
yasuda
38cfa2b662
runtime(netrw): Fix mf
-selected entry highlighting
...
closes : #15551
Signed-off-by: yasuda <yasuda@kyoto-sr.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-08-22 20:54:47 +02:00
Damien
1fbccc1e96
runtime(netrw): Drop committed trace lines
...
closes : #15501
Signed-off-by: Damien <141588647+xrandomname@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-08-15 22:01:24 +02:00
Damien
b4d1164425
runtime(netrw): Error popup not always used
...
Problem: g:netrw_use_errorwindow=2 does not work
without +balloon_eval.
Solution: Check for popup_atcursor().
related: #15501
Signed-off-by: Damien <141588647+xrandomname@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-08-15 22:00:45 +02:00
Damien
7c754110ff
runtime(netrw): ErrorMsg() may throw E121
...
Move variables declaration
related: #15501
Signed-off-by: Damien <141588647+xrandomname@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-08-15 22:00:10 +02:00
Ivan Shapovalov
c527d90fae
runtime(netrw): honor g:netrw_alt{o,v}
for :{S,H,V}explore
...
Make `:Sexplore` / `:Hexplore` / `:Vexplore` commands honor the user
`&split{right,below}` settings (or netrw-specific `g:netrw_alt{o,v}`)
instead of hardcoding a split direction. Similarly, update banged
variants of the two latter commands to follow the inverted preference.
closes : #15417
Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-08-02 19:43:12 +02:00
Travis Shelton
e34d0e37e3
runtime(netrw): removing trailing slash when copying files in same directory
...
closes : #14756
Signed-off-by: Travis Shelton <tshelton.mail@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-30 21:10:38 +02:00
Christian Brabandt
581d4a7b35
runtime(netrw): escape filename before trying to delete it
...
fixes : #15330
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-23 21:14:06 +02:00
Damien
9d57ea5cd3
runtime(netrw): Fix endless recursion in netrw#Explore()
...
Problem: ':E /etc BOOM' give E132 error.
Solution: Avoid recursion call with same arguments.
fixes : #5723
closes : #15318
Signed-off-by: Damien <141588647+xrandomname@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-22 20:25:34 +02:00
Enno
3146d63267
runtime(netrw): fix remaining case of register clobber
...
complements 62f7b55c1a
closes : #15114
Signed-off-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-04 19:45:36 +02:00
Christian Brabandt
62f7b55c1a
runtime(netrw): save and restore register 0-9, a and unnamed
...
fixes : #15077
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-23 20:23:40 +02:00
Christian Brabandt
440746158c
runtime(netrw): correctly test for windows in NetrwGlob()
...
use has("win32") instead of has("win64") otherwise it
won't work on x86 systems.
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-14 08:19:22 +02:00
Christian Brabandt
1487947fb6
runtime(netrw): glob() on windows fails with [] in directory name
...
fixes : #14952
closes : #14991
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-13 21:25:35 +02:00
Christian Brabandt
98b73eb645
runtime(netrw): prevent accidental data loss
...
fixes : #14915
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-04 18:18:16 +02:00
Christian Brabandt
43f2edc096
runtime(netrw): prefer scp over pscp
...
regression introduced in ce2ad9ffd7
The current logic is a bit funny, in that it checks for an executable of
scp, then pscp and if neither exists, it uses: scp :/
Anyway, let's fall back to the logic used before the above commit.
related: #14739
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-13 21:01:06 +02:00
Nir Lichtman
c16c4a21eb
runtime(netrw): Recursively delete directories by default with netrw delete command
...
closes : #14742
Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-10 23:43:29 +02:00
Nir Lichtman
ce2ad9ffd7
runtime(netrw): Remove hardcoded private.ppk logic from netrw
...
closes : #14739
Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-09 20:20:36 +02:00
Nir Lichtman
1e34b95e44
runtime(netrw): Remove and cleanup Win9x legacy from netrw
...
closes : #14732
Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-08 19:19:34 +02:00
Christian Brabandt
08d2401fbc
runtime(netrw): filetype not detected when editing remote files
...
fixes : #14400
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-03 22:47:54 +02:00
dkearns
4b715bdaf4
runtime(netrw): Fix typo in netrw#NetWrite ( #14283 )
...
Fix typo in netrw#NetWrite (http) error message call.
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-24 17:47:37 +01:00
Christian Brabandt
8fad5d5887
runtime(doc,netrw): update "Last Change header", remove trailing whitespace
...
Update Last-Change Header for netrw and doc/indent.txt, fix a trailing
whitespace in indent.txt and make CI happy.
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-29 18:13:04 +01:00
Christian Brabandt
56b7da3c05
runtime(netrw): handle file/dir symlinks specifically in tree mode
...
fixes : #2386
related: #3609
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-29 17:48:14 +01:00
Christian Brabandt
f9ca139e3a
runtime(misc): announce adoption of various runtime files
...
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-19 20:46:49 +01:00
MiguelBarro
c46c21b4ca
runtime(netrw): fixing remote file removal via ssh ( #13942 )
...
Make pattern, which retrieves the path component from e.g.
`scp://user@host//opt/program/file.ext` non-greedy.
Signed-off-by: GuyBrush <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-31 20:07:17 +01:00
user202729
bdb9d9afba
runtime(netrw): Use :exec norm! <leftmouse> before :call mapping in netrw ( #12180 )
...
fixes : #12143
Signed-off-by: user202729 <25191436+user202729@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-28 23:29:21 +01:00
K.Takata
a262d3f41b
runtime(netrw): Don't change global options ( #13910 )
...
Originally reported at: https://github.com/vim-jp/issues/issues/1428
'isk' was unintentionally changed by netrw, regression
introduced in Commit: 71badf9547
Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-24 20:10:19 +01:00
MiguelBarro
6e5a6c9965
runtime(netrw): minor changes to fix move cmd on windows ( #13823 )
...
Signed-off-by: GuyBrush <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-17 21:35:36 +01:00
K.Takata
2357765304
runtime(netrw): Decode multibyte percent-encoding filename correctly ( #13842 )
...
Use `printf("%c")` instead of `nr2char()` to handle '%xx' as a byte.
Close #13787
Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-12 17:30:01 +01:00
K.Takata
71d0ba07a3
runtime(netrw): Sync with netrw 174b ( #13836 )
...
* Import netrw v174b
* Revert unwanted changes
* Fix indent
* Revert some changes
* Update tags
* Break long line
Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-09 19:21:05 +01:00
Christian Brabandt
fbd72d2d47
runtime(netrw): prevent E11 on FocusGained autocommand ( #13718 )
...
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-12-19 20:22:18 +01:00
Christian Brabandt
9a775b4a2a
runtime(netrw): escape curdir in BrowseUpDir ( #13681 )
...
fixes #13678
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-12-14 20:09:07 +01:00