mistakenelf / fm

A terminal based file manager
MIT License
571 stars 29 forks source link

Open files #38

Closed LuisHenriqueFA14 closed 2 years ago

LuisHenriqueFA14 commented 3 years ago

How can i open a selected file in vim ?

mistakenelf commented 3 years ago

Hey @LuisHenriqueFA14 currently opening a file in an editor is not supported. Could be a nice feature to have though

mistakenelf commented 3 years ago

@LuisHenriqueFA14 released 0.5.4 which will let you open in editor by pressing E, caveat to that is that it only currently works with GUI editors. Will need to work through a solution to work with terminal editors

LuisHenriqueFA14 commented 2 years ago

@knipferrc I am taking a look at the code and trying to fix it too, lol. But i have a question, do you want to keep fm opened when user closes the CLI editor, or fm can be closed after that ?

mistakenelf commented 2 years ago

@LuisHenriqueFA14 my preference would be to keep fm opened when the CLI editor is closed

mistakenelf commented 2 years ago

@LuisHenriqueFA14 i think I have a fix for this. Will try to get a release out for it tomorrow

LuisHenriqueFA14 commented 2 years ago

@LuisHenriqueFA14 i think I have a fix for this. Will try to get a release out for it tomorrow

I'm already looking forward

mistakenelf commented 2 years ago

Alright, 0.12.1 has been released, should be able to spawn vim now

LuisHenriqueFA14 commented 2 years ago

Bro, i was able to open vim, but when i closed this happened:

image

LuisHenriqueFA14 commented 2 years ago

I'm using terminal kitty so I had to change the TERM var to "xterm-256color" for it to work 👍🏻

mistakenelf commented 2 years ago

Interesting, i'm also using kitty but have not seen that error. Awesome, glad to hear it's working for you!