kaktree icon indicating copy to clipboard operation
kaktree copied to clipboard

kaktree--refresh moves cursor to the first line

Open p1gp1g opened this issue 4 years ago • 0 comments

Problem description

The function kaktree--refresh is called after moving, creating or deleting a file. Every time kaktree--refresh is called, the cursor goes to the first line. It would be preferable for this cursor to not move in this scenario. (For instance, creating multiple file in a directory)

Steps to reproduce

  1. Create multiple directory mkdir a b c d and open kakoune
  2. Go on the c on kaktree and create a new file : N c/test

What should happen

The cursor should still be on c

What happens instead

The cursor has moved to the first line

Environment information

Kakoune version: 2021.08.28 OS version: Fedora 34 sh executable version: fish, version 3.3.1

p1gp1g avatar Oct 15 '21 17:10 p1gp1g