Skip to content

[Feature] fzf content of files in the dir under the cursor #1257

Answered by cseickel
LintaoAmons asked this question in Q&A
Discussion options

You must be logged in to vote

You know, I want that too so I just wrote a custom mapping for it. You can put this in your config:

      require("neo-tree").setup({
        filesystem = {
          window = {
            mappings = {
              ["g"] = function(state)
                -- get the current node
                local node = state.tree:get_node()
                -- if the node is not a directory, walk up the tree until we find one
                while node and node.type ~= 'directory' do
                  local parent_id = node:get_parent_id()
                  if parent_id == nil then
                    -- we must have reached the root node
                    -- this should not happen because the root…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@LintaoAmons
Comment options

@miversen33
Comment options

Answer selected by LintaoAmons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants