Commit Graph

114 Commits

Author SHA1 Message Date
Kristijan Husak
caf238d908 Add root folder name. 2020-08-03 21:29:02 +02:00
Kieran Siek
06558a25da Feat: Allow hiding dotfiles (#69) 2020-08-03 16:13:25 +02:00
Kristijan Husak
73ffc3d4aa Inherit git status from nested files on directory. 2020-08-03 15:21:10 +02:00
kiyan42
98fc65750a fix: always open new window and set window options locally
- use setlocal for options instead of using nvim_win_set_option
- create a new window when there is only the tree window
- resize the tree when opening new files
2020-08-03 14:04:26 +02:00
kiyan42
600853ec4d fix space between icon and filename with special file 2020-08-03 12:38:15 +02:00
kiyan42
b72f0bfffd change folder icons, folder colors 2020-08-03 10:53:40 +02:00
kiyan42
a25ac38db1 add file highlight for git attributes and remove the space before the git icon 2020-08-03 10:31:23 +02:00
kiyan42
c552a4f4f5 refacto display and add LuaTreeFolderDirty group 2020-08-03 10:29:54 +02:00
Kiyan Yazdani
4c073c952a Merge pull request #71 from stsewd/allow-align-icons
Icons: allow setting a string as file icon
2020-08-02 18:50:42 +02:00
Santos Gallegos
a2e0db6123 Icons: allow setting a string as file icon
Closes https://github.com/kyazdani42/nvim-tree.lua/issues/45
2020-08-02 11:40:51 -05:00
Santos Gallegos
bafee954ac KeyBindings: add refresh 2020-08-02 11:05:05 -05:00
Kristijan Husak
d42e76e3cf Always focus tree when finding file. 2020-07-29 18:03:27 +02:00
kiyan42
2ceb049b5b lints 2020-07-23 11:40:39 +02:00
kiyan42
371941b3b2 find window instead of saving it 2020-07-23 11:36:58 +02:00
Kristijan Husak
f1b04965de Add mappings for jumping to previous or next git item. 2020-07-22 11:50:18 +02:00
Kiyan Yazdani
7743d90504 Merge pull request #52 from kristijanhusak/feature/cut-copy-paste
Add cut,copy and paste functionality.
2020-07-21 17:16:08 +02:00
Kristijan Husak
89df407737 Add command to print clipboard content. 2020-07-21 15:14:05 +02:00
Kristijan Husak
7ddee0a79c Return if pasting on root and remove continue. 2020-07-21 12:35:28 +02:00
kiyan42
df3c470322 fix: remove goto statement to match neovim lua version 2020-07-21 11:57:13 +02:00
Kristijan Husak
86ff3b725f Prompt for confirmation when overwriting on cut/copy actions. 2020-07-21 08:58:09 +02:00
Kristijan Husak
37748e7c97 Merge branch 'master' into feature/cut-copy-paste 2020-07-20 17:59:15 +02:00
Kristijan Husak
4f86707051 Add mapping for toggling ignored folders visibility. 2020-07-17 10:25:57 +02:00
Kristijan Husak
9b20fcba72 Add cut,copy and paste functionality. 2020-07-16 11:50:27 +02:00
kiyan42
20f39a951a fix: markers not rendering properly on last indent 2020-06-22 14:47:50 +02:00
kiyan42
3ca7fd0aed fix small bug with indent markers, add notice to README for netrw and gx 2020-06-22 12:23:09 +02:00
kiyan42
cf828e0a4b fix: export find_file, remove global options, disable follow by default 2020-06-21 12:50:51 +02:00
kiyan42
4f499d9e53 finish indent markers properly 2020-06-20 15:35:24 +02:00
kiyan42
7988dd407c add indent markers 2020-06-20 15:34:49 +02:00
rickysaurav
080c86618f Add option for disabling bindings 2020-06-20 03:38:36 +05:30
kiyan42
fbe5d6d1f7 add akin909 screenshot, fix user icon config load 2020-06-19 13:31:42 +02:00
kiyan42
d4e5b1bb51 fix: declare filetype when window init is done 2020-06-15 15:30:18 +02:00
Gregory
509f0e0c3b Improve icon fetching logic 2020-06-13 20:39:43 -04:00
kyazdani42
896cc1619a fix various issues, and add a comment because of a bug in glibc 2020-06-09 18:59:32 +02:00
kyazdani42
25c32283b8 rename lib/tree.lua to lib/lib.lua 2020-06-08 11:41:57 +02:00
kyazdani42
18dac0ed84 add .luacheckrc and fix linter issues 2020-06-08 11:23:30 +02:00
kyazdani42
1e67a7c6f4 refacto: export window options in config 2020-06-08 11:09:53 +02:00
kyazdani42
b55ed7c5a7 add preview 2020-06-07 14:51:46 +02:00
kyazdani42
e9548d7992 fix: check for nil bufnr to avoid messing up the UI when rendering 2020-06-05 19:17:11 +02:00
kyazdani42
d0d42d42a3 fix: fs and refresh bugs
- refreshing delete from entries before adding new entries to avoid
  conflicts with indexes
- delete is synchronous because on large folders it was not recursing
  properly thus causing errors and not deleting content.
2020-06-05 09:33:14 +02:00
kyazdani42
f740fc5d1e fix: cwd with spaces failing to cd 2020-06-04 21:54:53 +02:00
Marek Konopka
ff76ccafdc Add configurable folder icons 2020-06-02 13:33:03 +02:00
kiyan42
870d60ec54 fix do not update on save when window is closed 2020-06-01 20:15:55 +02:00
kiyan42
69880f2e40 fix git error 2020-06-01 18:13:12 +02:00
kiyan42
df0c522a81 fix lua path matching again 2020-06-01 16:06:23 +02:00
kiyan42
9342527d28 optimize git with buffering 2020-05-31 00:55:02 +02:00
kiyan42
d6f9b6a21c fix rendering before setting cursor pos in refresh 2020-05-31 00:22:20 +02:00
kiyan42
e4630f8782 fix creating a file wrong permissions 2020-05-29 21:13:43 +02:00
kiyan42
36828c18f8 fix buf options are window options 2020-05-29 20:58:55 +02:00
kiyan42
e0bfcb4a6f Refacto: rewrite everything
- The tree is created with libuv functions, which makes it blazingly fast.
- The tree may now be faster than any other vim trees, it can handle directories with thousands of files without any latency at all (tested on 40K files, works flawlessly).
- More solid logic for opening and closing the tree.
- tree state is remembered (closing / opening a folder keeps opened subdirectories open)
- detection of multiple git projects in the tree
- more icon support
- smart rendering
- smart updates
- ms windows support
- gx replacement function running xdg-open on linux, open on macos
2020-05-29 15:33:47 +02:00
kiyan42
afc86a9623 fix folder name links to hl-Directory 2020-05-22 11:59:20 +02:00