Chris Grieser
e18bffba84
chore: update `vim.loop` to `vim.uv`
2024-05-20 12:02:10 +02:00
Chris Grieser
7f0e1dce80
chore: add version requirement check
2024-05-20 11:45:46 +02:00
Chris Grieser
cd02e898eb
refactor: `trashFile` uses new nvim API
2024-05-20 11:37:24 +02:00
Chris Grieser
dbc30b7122
refactor!: use updated nvim APIs. From now on requires nvim 0.10
2024-05-19 23:14:26 +02:00
ryankav
e7d756970c
fix: moveToFolderInCwd when cwd in hidden folder ( #47 )
...
When trying to move a folder in cwd the current implementation uses the full
file path. As a consequence if you're cwd is a hidden folder or a descendant
of a hidden folder then no options would display.
Proposed solution now is only search for the ignored options in the path
relative to the cwd. That way the currently ignored options are scoped by
the cwd.
2024-04-21 18:22:45 +02:00
Chris Grieser
1e6855be88
improv: moving in cwd with lsp renaming also writes all buffers
2024-04-17 12:25:07 +02:00
Chris Grieser
9f012dba12
improv: save all buffers after lsp-renaming
2024-04-17 12:04:46 +02:00
Chris Grieser
6c9a0ac2ec
fix(moveToFolderInCwd): ignore hidden folders
2024-02-27 22:09:11 +01:00
Chris Grieser
edc6365131
fix: use os-specific path separators instead of `/`
2024-02-16 11:23:56 +01:00
Chris Grieser
3e22df4eb3
fix(moveToFolderInCwd): error in notification
2024-02-15 14:28:40 +01:00
Chris Grieser
357bc2688d
refactor(moveToFolderInCwd): re-organize
2024-02-11 16:28:13 +01:00
Chris Grieser
b84accba4c
fix(moveToFolderInCwd): add cwd itself also to the list of folders
2024-02-11 15:54:19 +01:00
Chris Grieser
d057d47164
feat: `:CopyFilepathWithTilde` ( #34 )
2024-02-10 20:41:49 +01:00
Chris Grieser
497e6f45fb
improv(moveToFolderInCwd): initially sort by mtime
2024-02-10 20:29:57 +01:00
Chris Grieser
47863d8acb
fix(moveToFolderInCwd): typo in notification
2024-02-10 20:20:05 +01:00
Chris Grieser
07088c3d84
fix(moveToFolderInCwd): ignore current folder of file
2024-02-10 20:14:55 +01:00
Chris Grieser
4269605b1f
fix(moveToFolderInCwd): fix ignoring logic
2024-02-05 15:41:47 +01:00
Chris Grieser
10eda9de26
improv(moveToFolderInCwd): better notif & exclude node modules
2024-02-05 15:37:15 +01:00
Chris Grieser
bdd2c44031
refactor: cleanup of file movement operations
2024-02-03 15:51:14 +01:00
Chris Grieser
ae0808bed6
feat: `moveToFolderInCwd` command (offers folder selection)
2024-02-03 14:19:01 +01:00
Ralf Schmitz Bongiolo
3dd0e64e68
fix: OS detection when using vim.fn.has
2024-01-03 00:16:24 +01:00
Chris Grieser
9cbd4eec84
break(trashFile)!: use CLIs instead of moving to trash (req. install)
2024-01-01 16:49:14 +01:00
Steven Xu
50bc0cce60
fix: trash in *Linux* using a trash command, fixes #37
2024-01-01 16:21:54 +01:00
Steven Xu
ef72935e7c
feat: try to rename first to preserve metadata
2023-12-31 12:53:53 +01:00
Chris Grieser
d2f85f3e7d
refactor: code cleanup
2023-12-30 13:10:39 +01:00
Chris Grieser
0b71c9c21f
refactor: update funcs from `vim.fn` to `vim.api`
2023-12-30 13:06:30 +01:00
Chris Grieser
e9868e9780
refactor: modularized into separate files
2023-12-30 12:55:51 +01:00
Chris Grieser
ce4dd7f098
chore: cleanup comments
2023-12-30 12:45:58 +01:00
Steven Xu
e221036576
feat: move a file to a new directory with its existing name, closes #35
2023-12-29 15:55:24 +01:00
Chris Grieser
1bfa9a697a
chore: fix grammar in notification
2023-12-25 14:43:05 +01:00
Chris Grieser
c75cda23a0
refactor: rename files & clearer prompt labels
2023-12-20 14:02:13 +01:00
pseudometa
68149dd659
fix: lsp-renaming notification
2023-10-07 13:23:41 +02:00
pseudometa
9f83085431
fix: lsp-renaming support check on nvim stable
2023-10-07 13:23:41 +02:00
pseudometa
86ef89d3c7
chore: prompt wording
2023-10-07 13:23:41 +02:00
pseudometa
c41558eb13
chore: add annotations
2023-10-07 12:39:08 +02:00
Oliver Jan Krylow
ec447d08d9
feat: renaming commands support LSP's `workspace/willRenameFiles` ( #33 )
2023-10-06 17:57:21 +02:00
Alexander Gehrke
7ef0c17b2f
fix: make :Trash and :Move work across filesystems
2023-09-18 16:58:45 +02:00
Scott Zhu Reeves
78a0d356ed
fix: ensure input prompt is cleared
...
Fixes : #25
2023-09-10 06:05:46 -04:00
pseudometa
4c009f7b3e
refactor: some cleanups
2023-09-09 23:52:04 +02:00
pseudometa
1a39187841
Revert "Merge pull request #30 from BeauSLM/fix_directory_behaviors"
...
This reverts commit dd5bc12769 , reversing
changes made to 683b422944 .
2023-09-09 23:38:44 +02:00
Beau McCartney
231a9da8f3
fix: correctly parse the directory of a given path to a file
...
The previous `gsub` call would blow away everything after and including
the first '/' in the pathname, including other slashes.
Fortunately, the neovim api provides a way to get the parent directory
of a given path, which I've used instead.
2023-09-09 13:05:57 -06:00
Beau McCartney
b46b5c33cb
use $PWD instead of directory of current file
2023-09-09 13:05:57 -06:00
pseudometa
ef591fa943
Merge pull request #27 from ofirgall/config/always_systemclipboard
2023-09-05 10:52:51 +02:00
Ofir Gal
a36ad301a5
add config var to always use system clipboard
2023-09-05 11:12:46 +03:00
Ofir Gal
45da137f2f
add copy operations for relative path and directory path
2023-09-05 11:03:29 +03:00
pseudometa
59945bc1c9
improv: make better use of `vim.notify`
2023-09-04 02:05:49 +02:00
Luca Saccarola
29bd36d36e
chore: minor migration to the latest functions
2023-07-04 17:09:04 +02:00
Luca Saccarola
274f1abdfd
feat: make trash command more robust
2023-07-02 21:22:41 +02:00
Alexander Gehrke
b64f6528dd
Make trash command more robust
...
Errors occurred, when the trash dir doesn't exist or is on another
filesystem. The latter is inherent to os.rename, so it is replaced by
writing a copy and then removing.
2023-06-27 12:40:44 +02:00
Alexander Gehrke
993fce509a
Fix capitalization of Trash dir on linux
2023-06-27 12:40:29 +02:00