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
6ac8e256b3
cleanup on_keypress function
2020-07-23 11:48:16 +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
kiyan42
33a48cd80f
open tree on find
2020-07-23 11:16:25 +02:00
Kristijan Husak
28c300acb4
Cache functions for jumping to prev/next git item.
2020-07-22 12:29:52 +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
899fb177e0
use path to matching str in lua/tree.lua
2020-06-08 12:33:42 +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
f6b38bb364
fix: use defer_fn to close the tree properly
2020-06-04 23:29:10 +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
058cd31e2a
better logic for closing the tree
2020-05-30 01:55:29 +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
kiyan42
e1fbabf879
fix init_tree should not run when root path doesnt change
2020-05-18 23:56:56 +02:00
Akin Sowemimo
9201d123fd
Add config option to follow buffer directory
2020-05-18 23:51:43 +02:00
kiyan42
5fcbc21edb
fix opening a file should change the tree base
2020-05-18 20:01:19 +02:00
kiyan42
042d612d68
fix path matching again
2020-05-18 17:51:17 +02:00
kiyan42
0ca069459a
remove print
2020-05-17 18:23:47 +02:00
kiyan42
020db73532
Add colorscheme update and add filetype to buffer.
2020-05-17 18:21:03 +02:00
kiyan42
52d1d7e401
fix: 'cd ..' going above the main dir of project
2020-05-14 16:35:06 +02:00
kiyan42
697912429c
reformat, refactor code, run fs command with luv.spawn
2020-04-26 14:46:20 +02:00
kiyan42
81ee46e41d
fix: print_err not being defined
2020-04-25 16:26:29 +02:00
kiyan42
60adbfbdf3
fix: refacto path matchings throughout the code, change the way we call string methods
2020-04-25 15:11:14 +02:00
kiyan42
7fbcfa531c
fix: relative paths with '-' breaking git
...
relative paths with '-' inside a `string.match` statement were not
matching properly due to the nature of lua matching patterns. Replacing
'-' with '%-' resolves the issue.
2020-04-23 21:03:18 +02:00
kiyan42
f906cb0195
fix folder creation
2020-04-11 10:16:16 +02:00
Stephan Seitz
c3efde1f3b
Bugfix: delete key would rename if set
2020-04-10 23:13:23 +02:00
kiyan42
ff860ecb49
Feature: add option for user keybindings
2020-04-03 12:19:41 +02:00
kiyan42
c003626dee
make linking of default groups for tree style and add docs
2020-04-03 11:50:14 +02:00
kiyan42
658e2100eb
add documentation for highlight groups
2020-03-11 12:24:11 +01:00
kiyan42
41b050a6ab
Control how files are being opened
2020-03-11 12:06:42 +01:00
kiyan42
b199763856
fix not creating a new file when opening the tree window
2020-03-08 00:18:14 +01:00
kiyan42
7e3ff3db86
change icon selection
2020-03-05 11:52:32 +01:00
kiyan42
a33622179d
refactoring to use config options from lua module
2020-03-04 14:58:37 +01:00
kiyan42
0b4c9d8143
add config option to disable the icons
2020-03-04 14:49:52 +01:00
kiyan42
3678169bd6
add config to open or close automatically
2020-03-04 13:15:33 +01:00
kyazdani42
03168a5155
fix tree when option is 'right'
2020-03-01 19:24:24 +01:00
kyazdani42
7483abcf40
some buffer options
2020-03-01 18:08:27 +01:00
kyazdani42
1d788f91e2
add right side check for disabled feature
2020-03-01 16:19:03 +01:00
kyazdani42
363a7b82aa
add <C-t> to open file in new tab
2020-03-01 15:07:29 +01:00
kyazdani42
7ac26175f2
clear prompt with normal :<esc> and fix file creation
2020-03-01 15:00:34 +01:00
kyazdani42
c31cceaff6
fix macos
2020-02-29 09:41:34 +01:00
kyazdani42
daff837b23
add LuaTreeFindFile, doc and option
2020-02-28 17:24:08 +01:00
kyazdani42
b9398b285d
Use system function instead of luv calls
...
- add dynamic path creation 'foo/bar/baz'
- fixes delete function
2020-02-28 15:34:02 +01:00
kyazdani42
f6e44c1726
cd to folder when doing nvim FOLDER and layout code
...
- when doing `nvim FOLDER` it works as expected, opening the tree
on the correct folder (updating the ROOT_PATH)
- add the code for keeping the tree window on the side no matter
what, but since the lack of window events, disable this feature.
2020-02-28 01:03:34 +01:00
kyazdani42
a6f4ec6270
change <c-[> to . to change directory path
2020-02-27 22:51:58 +01:00
kiyan42
d4a693e46b
error handling for fs alteration
2020-02-23 01:28:29 +01:00
kyazdani42
e5db994ebb
protect plugin against windows and prevent macos from crashing due to --ignore
2020-02-22 17:36:05 +01:00
kyazdani42
4422ebc299
remove comment as its been fixed with buffer options
2020-02-21 17:21:03 +01:00
kiyan42
b96d104c0b
update some options
2020-02-21 14:23:57 +01:00
kiyan42
4d43fbd017
change folder color and lua icon color
2020-02-21 08:52:25 +01:00
kiyan42
f28dbfa998
add better doc and add user ignore list
2020-02-20 23:19:16 +01:00
kiyan42
267b14fc5f
fix coloring without vim-devicons
2020-02-20 21:48:16 +01:00
kiyan42
f5af7aa95d
add some options for the user and info in the readme
2020-02-20 21:16:13 +01:00
kyazdani42
1d61d6b123
properly check web dev icons
2020-02-20 20:06:30 +01:00
kyazdani42
5eaeac123b
dont crash with no colors
2020-02-20 19:59:17 +01:00
kyazdani42
49b9798cbc
clear vim prompt when updating the fs
2020-02-20 18:01:27 +01:00
kyazdani42
e86c857960
remove scratch winutils and use input to alter fs
2020-02-20 17:01:43 +01:00
kyazdani42
460fdf6b7a
Merge branch 'master' of github.com:kyazdani42/nvim-tree.lua
2020-02-20 15:54:07 +01:00
kyazdani42
77bcb8db01
formatting
2020-02-20 15:54:01 +01:00
kyazdani42
4945789baa
fix images color
2020-02-20 15:50:38 +01:00
kiyan42
55fbc471d1
fix bug on format
2020-02-20 12:18:43 +01:00
kyazdani42
6670b8e494
quit when tree is last buf, open on enter if dir or no file
2020-02-19 23:47:25 +01:00
kyazdani42
f397e1050c
fix git parsing and init
...
- run `ls ROOT_PATH` on init to make sure we are in the right place
- match git path with `.*` to make sure we check when in a subdir
> it could cause issues though, fix this later with a better
> git interface
2020-02-19 23:01:52 +01:00
kyazdani42
3945771fb5
make code faster and cleaner in file.lua and winutils.lua
2020-02-19 19:43:03 +01:00
kyazdani42
5ab65e98b3
remove conf.lua file
2020-02-19 18:47:02 +01:00
kyazdani42
e29c9fb4ee
add symlink handling
2020-02-19 18:40:10 +01:00
kyazdani42
b0d6e153f7
easier regex matching
2020-02-19 18:11:09 +01:00
kyazdani42
6d9831b2a5
color init in lua
2020-02-19 17:57:36 +01:00
kyazdani42
05b5117f75
better git format and parsing
2020-02-19 16:46:25 +01:00
kyazdani42
1c4fb795fb
add git refresh
2020-02-19 14:32:33 +01:00
kyazdani42
c77a560a63
move window/buf stuff from file.lua to winutils.lua
2020-02-19 14:16:09 +01:00
kyazdani42
14f83b3891
add mouse support
2020-02-19 14:01:40 +01:00
kyazdani42
ac92bfd911
Faster git parsing
...
- fix a bug when removing nodes from huge dir
- only one `system` call for git status
- add relative paths to nodes
- parse git status from relative paths
2020-02-19 13:55:40 +01:00
kiyan42
1a473fb193
fix highlight for files without icons
2020-02-18 18:38:42 +01:00
kiyan42
f8fb6de9c6
add git integration
2020-02-18 18:22:05 +01:00
kiyan42
0ed31e065e
refresh tree when changing fs
2020-02-18 16:06:05 +01:00
kiyan42
b448b1a0fa
reorganize code
2020-02-18 15:59:53 +01:00
kiyan42
7b7fb56c4e
better format
2020-02-18 14:30:32 +01:00
kyazdani42
98d94876f2
start refresh. Need to find a way to trigger the function when FS is altered
2020-02-14 17:42:07 +01:00
kyazdani42
083d2b556d
add syntax highlighting
2020-02-14 16:51:33 +01:00
kyazdani42
4761e3f2a5
do not block moving around in the buffer.
2020-02-14 14:15:55 +01:00
kiyan42
3e04580e74
list dotfiles
2020-02-10 17:11:19 +01:00
kiyan42
0bb2a99f55
FS api
...
- change vim root and update tree
- create / rename / delete file and folders
2020-02-10 14:53:28 +01:00
kiyan42
a3c4fcc6fe
adding/removing/renaming file almost done
2020-02-09 18:56:44 +01:00
kiyan42
ef6f338cce
some refacto and start adding file creation/removal..
2020-02-09 18:11:02 +01:00
kyazdani42
d649119146
small refacto
2020-02-09 15:36:18 +01:00
kyazdani42
04bd042869
update readme
2020-02-07 21:24:08 +01:00
kyazdani42
bdbebefc6d
add icons and sort
...
- Uses vim-devicons if it exists
- Uses font awesome folder open/close
- Sort directories first
2020-02-07 20:14:13 +01:00
kiyan42
98716c9a83
small fix
2020-02-07 11:51:01 +01:00
kyazdani42
9dfc4b27ef
opening files and browsing is working properly
2020-02-06 20:25:02 +01:00
kyazdani42
25df400bf3
add first draft
2020-02-05 01:07:06 +01:00
kyazdani42
90e6ce1853
window/buffer toggle works
2020-02-04 22:44:48 +01:00
kyazdani42
7ec6a588d5
init plugin
2020-02-04 19:59:14 +01:00