tamago324 / LeaderF-filer

📂 LeaderF file explorer
Apache License 2.0
39 stars 5 forks source link

Add `rename` command #18

Closed tamago324 closed 4 years ago

roachsinai commented 4 years ago

When operate rename command, I can't see the cursor on the file operation area.

image

Does the popup capture the cursor leads to it?

roachsinai commented 4 years ago

No cursor it's hard to rename a file.

tamago324 commented 4 years ago

I'm sorry. I don't know how to display the cursor.

Instead, how about making it possible to change the name at the popup prompt? I'm not sure if I can do it, but I'm willing to give it a try.

roachsinai commented 4 years ago

Wow, I think at the popup window will be better.

tamago324 commented 4 years ago

@roachsinai I tried to implement it with feature/input-in-popup-prompt. Please try it out. If you have any problems, it would be great to report them.

roachsinai commented 4 years ago

Thanks a lot for your work! @tamago324 though still no cursor, but I think it's great than before!

tamago324 commented 4 years ago

image

In my environment (Windows 10 / GVim) , the cursor was displayed. What is your environment?

roachsinai commented 4 years ago

I'm on Manjaro Gvim. Maybe the reason is colorscheme sainnhe/gruvbox-material: Gruvbox with Material Palette. Colorschme comic_latte cursor shows.

Btw, I've set set gcr=a:block-blinkon0, and the cursor still blink, when rename a file.

tamago324 commented 4 years ago

In the case of gruvbox-material, it may be necessary to change the color of the cursor.

hi Lf_hl_popup_cursor guibg=#333333

The blinking cursor can be disabled by setting let g:Lf_CursorBlink = 0.

roachsinai commented 4 years ago

In the case of gruvbox-material, it may be necessary to change the color of the cursor.

hi Lf_hl_popup_cursor guibg=#333333

The blinking cursor can be disabled by setting let g:Lf_CursorBlink = 0.

Yeah, it works! What's more, can the cursor move a char left or right?

tamago324 commented 4 years ago

I'm glad you did! The insert mode mapping can be set in g:Lf_FilerInsertMap. Therefore, you can move the cursor by doing the following

let g:Lf_FilerInsertMap = {
\   '<C-b>': 'left',
\   '<C-f>': 'right',
\}
roachsinai commented 4 years ago

Wow, thanks a lot!

tamago324 commented 4 years ago

Thank you so much for commenting! Thanks to you, we were able to implement it!