the natural_order option affects files with numbers. rather than sorting numbers alphabetically, it sorts them numerically. for example, file9.txt and file10.txt will be sorted treating 9 less than 10 (rather than the string "9" being greater than "1")
I think natural sort like you have files ["1.txt", "5.txt", "10.txt", "11.txt", "40.txt"] Without it (false), it will sort to 1, 10, 11, 40, 5. Because it will compare the each first character With the natural sorting, it will sort like what we expect it to be.
Cool config! I actually changed the is_hidden_file fuction instead to make all the . Files visable except for .., .git and .DS_Store, and then if i do need to see the .git folder or something like that i can just toggle hidden files with g.
solid clean video, i just wanna add you should totally do a vim tips video because that ^v into g, ^A felt like a fighting game combo and i will 100% be doing that just because how it feels
If you're annoyed by the extra space at the top of the dashboard page you can reduce some spaces in the line 122 logo = string.rep(" ", 8) .. logo .. "
" this one --^ I figured out this earlier and thought of sharing it. thx for the vid btw, cant wait for the next one ❤
Coooool config. IMO, lots of navigator user map ctrl+h/j/l/m to move to pane in neovim and tmux. It conflicts with oil buffer keymaps. Do you know how to remap these keys in oil buffer? Thanks a lot!
I think there might be a bug in Oil.nvim to be able to remap them. But here's an example to at least disable them. keymaps = { [""] = false, [""] = false, [""] = false, ["q"] = "actions.close", },
Hi, is there any way to use telescope to open the file explorer (oil) in a directory? I mean navigating using both telescope and oil. Also, do you have a discord channel or some social group where I can ask questions?
@@MohammadLsk good question. I don't know of a way to combine telescope and oil. I'd guess you could create a telescope extension that uses oil. I don't have a discord yet. It's something I should create soon. You might join Josh Medeski's discord for now: discord.com/invite/qQEARWhZ
@@ascourter I appreciate your response. Your content and guidance have been super helpful. I've set up this key mapping for now: vim.keymap.set('n', '-', "Telescope fd find_command=fd,-t=d ")
Wonderful video, thank you very much, now I don’t have to figure all of this out from scratch. I have a question, do you use neo-tree.nvim, or completely rely on oil.nvim? I’m used to neo-tree (I know, the vim overlords will come after me) but I don’t like how it renames and moves files around. So wondering if completely replace it or use both.
Thanks! Glad I could help. Haha the vim overlords are definitely going to come knocking... :D I personally rely solely on oil.nvim but when I am working with others I will have neo-tree.nvim open so they can see more easily where we are in the file system. Here's a link to the config I use: github.com/exosyphon/nvim/blob/525694635d0b16f7d461f516b5c8b1a95381c861/lua/plugins.lua#L11
I sure can! I have a video from awhile ago on setting up tmux but I really need to create an updated one with my latest theme and such. Thanks for requesting this!
It is on my list to check out all the mini nvim plugins. Seems like they are growing in popularity and have a lot of great features. Let me know if you think I should focus on a specific one first.
What other config do you use with Oil.nvim?
I like using floating window oil, because you can see the file path in the float window title, so helpful.
Oh nice! I'll have to give this a try.
Do you have any config got the float window too or do you use the defaults?
@@ascourter I have this:
float = {
padding = 5
}
and then when you call the Oil command you just pass in the float flag like so :Oil --float
the natural_order option affects files with numbers. rather than sorting numbers alphabetically, it sorts them numerically. for example, file9.txt and file10.txt will be sorted treating 9 less than 10 (rather than the string "9" being greater than "1")
Ah that makes a lot more sense. Thanks for digging into that and sharing!
Thanks for doing this video. Recently struggling with neovim
You're welcome! Glad I helped. Let me know if there's something I can cover to help ya!
I think natural sort like you have files ["1.txt", "5.txt", "10.txt", "11.txt", "40.txt"]
Without it (false), it will sort to 1, 10, 11, 40, 5. Because it will compare the each first character
With the natural sorting, it will sort like what we expect it to be.
I definitely like that better. Thanks for sharing!
Cool config!
I actually changed the is_hidden_file fuction instead to make all the . Files visable except for .., .git and .DS_Store, and then if i do need to see the .git folder or something like that i can just toggle hidden files with g.
definitely worth to try, thank you
Yup! Thanks for watching
what was that floating command line?
@@monoastro check out my video on the most requested plugin. I'm short, that's noice.nvim
Great video, love oil.nvim!!!
Thanks! I definitely love it as well
solid clean video, i just wanna add you should totally do a vim tips video because that ^v into g, ^A felt like a fighting game combo and i will 100% be doing that just because how it feels
Haha I will definitely put that into another tips video
If you're annoyed by the extra space at the top of the dashboard page you can reduce some spaces in the line 122
logo = string.rep("
", 8) .. logo .. "
"
this one --^
I figured out this earlier and thought of sharing it.
thx for the vid btw, cant wait for the next one ❤
Nice! Thanks for sharing this. Do you put this in the config function or somewhere else?
Coooool config. IMO, lots of navigator user map ctrl+h/j/l/m to move to pane in neovim and tmux. It conflicts with oil buffer keymaps. Do you know how to remap these keys in oil buffer? Thanks a lot!
I think there might be a bug in Oil.nvim to be able to remap them. But here's an example to at least disable them.
keymaps = {
[""] = false,
[""] = false,
[""] = false,
["q"] = "actions.close",
},
@@ascourter coool thank you! and oil.nvim cannot change in lazyvim using `keys = `.
Can you please show us how one can get to see images like jpegs, pngs in neovim using maybe something like telescope
I'll bring this to the top of my list and see what's possible
@@ascourter thank you so much,can't wait
Hi, is there any way to use telescope to open the file explorer (oil) in a directory? I mean navigating using both telescope and oil. Also, do you have a discord channel or some social group where I can ask questions?
i set up this
vim.keymap.set('n', '-', "Telescope fd find_command=fd,-t=d ")
@@MohammadLsk good question. I don't know of a way to combine telescope and oil. I'd guess you could create a telescope extension that uses oil.
I don't have a discord yet. It's something I should create soon. You might join Josh Medeski's discord for now: discord.com/invite/qQEARWhZ
@@ascourter I appreciate your response. Your content and guidance have been super helpful. I've set up this key mapping for now:
vim.keymap.set('n', '-', "Telescope fd find_command=fd,-t=d ")
Open with “:Oil -float” in a cool floating window
Love it. Did you customize the window at all?
@@ascourter yes, there is a float-option (same level as view-options):
float = {
-- Padding around the floating window
padding = 2,
max_width = 90,
max_height = 0,
-- border = "rounded",
win_options = {
winblend = 0,
},
Wonderful video, thank you very much, now I don’t have to figure all of this out from scratch.
I have a question, do you use neo-tree.nvim, or completely rely on oil.nvim? I’m used to neo-tree (I know, the vim overlords will come after me) but I don’t like how it renames and moves files around.
So wondering if completely replace it or use both.
Thanks! Glad I could help. Haha the vim overlords are definitely going to come knocking... :D I personally rely solely on oil.nvim but when I am working with others I will have neo-tree.nvim open so they can see more easily where we are in the file system. Here's a link to the config I use: github.com/exosyphon/nvim/blob/525694635d0b16f7d461f516b5c8b1a95381c861/lua/plugins.lua#L11
@@ascourter appreciate the response. Will try to use oil exclusively, at least for a month, and see how it feels.
Also, pressing 'g' followed by a backslash to toggle trash is handy
Yeah that is quite handy! Thanks for mentioning that.
Thanks for sharing.
Thanks for watching!
Can you show us your tmux settings and theme?
I sure can! I have a video from awhile ago on setting up tmux but I really need to create an updated one with my latest theme and such. Thanks for requesting this!
Here also is a link to my tmux config github.com/exosyphon/dotfiles/blob/5d6e87a583ff1ac9d244daed26d379627cd04592/.tmux.conf#L1
Any plans to add a flake.nix?
Haha I'll need to get up to speed on Nix first. Definitely on my list!
Thank you!!
Thanks for watching!
Awesome. Thanks
Thanks for watching!
FAST CODY NOTIFICATION SQUAD
Lightning Fast!
I’ve been using mini.files (more and more of the mini plugins, really), which I find less visually annoying.
It is on my list to check out all the mini nvim plugins. Seems like they are growing in popularity and have a lot of great features. Let me know if you think I should focus on a specific one first.
I still use netrw for browsing, and i use the oil modal when i need to edit files. It's 10000x better than netrw for that.
Nice!
you don't need gx plugins with neovim@^0.10.0
@@insanity0312 thanks, I'll try removing it and verify nothing breaks
Confirmed! I was able to remove gx.nvim and nothing broke with opening links. Thanks for probing me on this!
@@ascourter Thank you for the video! Cheers.
mini.files
This is on my list to try soon!