New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P
, paren_entry
: not working !
#9
Comments
sorry for bad english |
Hi @omaru-ok, thank you very much for opening the issue.
thank you |
i dont know much of lua , so i don't use complex i use the simple way || it may change im i become programmer and learned the real programming some day ||
{ -- Simple file manager
'dinhhuy258/sfm.nvim',
dependencies = { "dinhhuy258/sfm-fs.nvim" },
config = function()
require("File_manager")
end
},
final thought, i think SFM is in early stage , there is so many new things to add SFm has to be the simple yet-powerfull tree !, i realy din't liked nerdtree, |
Sorry for my late response... Hmm, thank you for your information.
I understand that and the reason I created this plugin was just for fun :P ... I am very surprised and happy that you created an issue there. |
i dont see this as a question? or i dont understand what it mean !?
as the name
there is no other way provided in Readme for changing Directory's
i do not indent to publish nvim-dots , but here it is Please check previously asked questoin ur missing the Extension part! |
Hi @omaru-ok
From your file, you need only to change like this local sfm_explorer = require("sfm").setup({
view = {
side = "right", -- side of the tree, can be `left`, `right`. this setting will be ignored if view.float.enable is set to true,
width = 2, -- this setting will be ignored if view.float.enable is set to true,
float = {
enable = true,
config = {
relative = "editor",
border = "rounded", -- ┌────────────────┐
width = 40, -- int or function -- │ │
height = 10, -- int or function -- │ dinhhuy258 ├────────► PLEASE ADD more info to comments ╔════════╗
row = 1, -- int or function -- │ │ what does "int or function" mean!? AGAIN ║ PLEASE ║
col = 1 -- int or function -- └────────────────┘ ╚════════╝
} } },
mappings = {
custom_only = true,
list = {
{ key = "u", action = "parent_entry",}, -- Move cursor to the parent directory
{ key = "h", action = "parent_entry",}, -- Move cursor to the parent directory
{ key = "p", action = "parent_entry",}, -- Move cursor to the parent directory
-- Edit
{ key = "l", action = "edit", },
{ key = "<cr>", action = "edit", },
-- { key ="<s-tab>", action = "close_entry", },
{ key = "c>", action = "close_entry", }, -- Close current opened directory or parent
-- Quit
{ key = "x", action = "close", },
{ key = "q", action = "close", },
{ key = "<esc>", action = "close", },
{ key = "<C-r>", action = "reload", }, -- Reload the explorer
-- Splits
{ key = "<C-h>", action = "vsplit" },
{ key = "<C-v>", action = "split" },
{ key = "<C-t>", action = "tabnew" },
-- Movement
{ key = "J", action = "first_sibling" }, -- Navigate to the first sibling of current file or directory
{ key = "K", action = "last_sibling" }, -- Navigate to the last sibling of current file or directory
} },
})
sfm_explorer:load_extension("sfm-fs")
-- or
-- sfm_explorer:load_extension("sfm-fs", {
-- your sfm-fs setting
-- }) |
If you still have any question, feel free let me know... |
i just really dig into
video demonstration Of ** 2023-05-04_01-46-23.mp4 |
Hi @omaru-ok . I just added a feature to support changing root to parent and changing root to the current entry. For more information please refer this pr: #10 For the issue in Thank you... |
:) this commit was soo good, however, there is some litlte thing that is buggin me still { key = "h", action = "change_root_to_parent",},--Change root dir, parent dir of the current entry
{ key = "o", action = "change_root_to_entry",}, --Change root dir, current folder entry or to the parent dir of current file entry
{ key = "<tab>", action = "change_root_to_entry",}, --Change root dir, current folder entry or to the parent dir of current file entry
{ key = "u", action = "parent_entry",}, -- Move cursor to the parent directory
{ key = "l", action = "edit", },
{ key = "<cr>", action = "edit", },
{ key ="<s-tab>", action = "close_entry", }, -- Close current opened directory or parent THE ISSUEif u want to btw what is actual usecase of |
Hi @omaru-ok
sfm-fs issues
|
GREAT |
i want to use
h
as parent_entrybut it only goes to the name of DIR , not goes to ../
also as described here
width = X , should not work in
float
, but its workign ! which is so confusing , since floatign window is usefull ,please add more
commets
in config pleasedescribe what options can be set, 🙏 im so confused, can't get window to way i want ! ,
also SFM is great im loving its simplicity, there is not much need of big heavy explorer, which is hard to configure like nvim-tree as beginner :(
The text was updated successfully, but these errors were encountered: