From 5aaf41793e8dd5958bffc5ebe0b2e2dc1f82b89f Mon Sep 17 00:00:00 2001 From: Omar El Laden Date: Sat, 10 Jan 2026 12:22:23 -0300 Subject: [PATCH 1/3] Fix filemanager mouse click --- filemanager-plugin/filemanager.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/filemanager-plugin/filemanager.lua b/filemanager-plugin/filemanager.lua index fef17d4..74ef4cd 100644 --- a/filemanager-plugin/filemanager.lua +++ b/filemanager-plugin/filemanager.lua @@ -1085,14 +1085,11 @@ function onPreviousSplit(view) end -- On click, open at the click's y -function preMousePress(view, event) +function onMousePress(view) if view == tree_view then - local x, y = event:Position() - -- Fixes the y because softwrap messes with it - local new_x, new_y = tree_view:GetMouseClickLocation(x, y) -- Try to open whatever is at the click's y index -- Will go into/back dirs based on what's clicked, nothing gets expanded - try_open_at_y(new_y) + try_open_at_y(tree_view.Cursor.Loc.Y) -- Don't actually allow the mousepress to trigger, so we avoid highlighting stuff return false end From fd42ee3c30b3c178740977f48ce6a9b6ead1edfd Mon Sep 17 00:00:00 2001 From: Omar El Laden <109101498+omarelladen@users.noreply.github.com> Date: Sat, 10 Jan 2026 17:44:44 -0300 Subject: [PATCH 2/3] Update filemanager plugin version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jöran Karl <3951388+JoeKar@users.noreply.github.com> --- filemanager-plugin/filemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filemanager-plugin/filemanager.lua b/filemanager-plugin/filemanager.lua index 74ef4cd..eb286c5 100644 --- a/filemanager-plugin/filemanager.lua +++ b/filemanager-plugin/filemanager.lua @@ -1,4 +1,4 @@ -VERSION = "3.5.1" +VERSION = "3.5.2" local micro = import("micro") local config = import("micro/config") From d7d295c9df477d0a10703e21c430a7b3f7364ec4 Mon Sep 17 00:00:00 2001 From: Omar El Laden Date: Sun, 11 Jan 2026 08:46:11 -0300 Subject: [PATCH 3/3] Use function try_open_at_cursor for Tab and mouse click action --- filemanager-plugin/filemanager.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/filemanager-plugin/filemanager.lua b/filemanager-plugin/filemanager.lua index eb286c5..5bc0ea7 100644 --- a/filemanager-plugin/filemanager.lua +++ b/filemanager-plugin/filemanager.lua @@ -958,11 +958,9 @@ function goto_parent_dir() end function try_open_at_cursor() - if micro.CurPane() ~= tree_view or scanlist_is_empty() then - return + if micro.CurPane() == tree_view then + try_open_at_y(tree_view.Cursor.Loc.Y) end - - try_open_at_y(tree_view.Cursor.Loc.Y) end -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1089,7 +1087,7 @@ function onMousePress(view) if view == tree_view then -- Try to open whatever is at the click's y index -- Will go into/back dirs based on what's clicked, nothing gets expanded - try_open_at_y(tree_view.Cursor.Loc.Y) + try_open_at_cursor() -- Don't actually allow the mousepress to trigger, so we avoid highlighting stuff return false end @@ -1136,7 +1134,7 @@ function preIndentSelection(view) tab_pressed = true -- Open the file -- Using tab instead of enter, since enter won't work with Readonly - try_open_at_y(tree_view.Cursor.Loc.Y) + try_open_at_cursor() -- Don't actually insert a tab return false end