kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.47k stars 154 forks source link

cannot add a mimetype for ts #170

Closed Busyvar closed 2 years ago

Busyvar commented 2 years ago

Hello,

I tried to add this entry to mimetypes.toml : ts.inherit = "text_default"

But it breaks any file opening : Unrecognized command 'quit_to_cwd'

what's wrong with it ?

regards

kamiyaa commented 2 years ago

I don't think the two errors are related. Regarding quit_to_cwd, I've decided to consolidate them into quit. See here: https://github.com/kamiyaa/joshuto/issues/167#issuecomment-1113962386

https://github.com/kamiyaa/joshuto/blob/main/docs/configuration/keymap.toml.md#general

Let me know if this fixes the ts issue as well

Busyvar commented 2 years ago

In 0.9.3 this message is displayed after editing mimetypes.toml:

Error parsing keymap.toml file: missing field default_view at line 1 column 1 Using default keymapping

kamiyaa commented 2 years ago

In 0.9.3 this message is displayed after editing mimetypes.toml:

Error parsing keymap.toml file: missing field default_view at line 1 column 1 Using default keymapping

There were changes to keymap.toml that now allows users to map keys depending on the mode or view the user is in.

So simply add

[default_view]

to the top of keymap.toml and it should be good.

Or take a look at https://github.com/kamiyaa/joshuto/blob/main/config/keymap.toml#L1

Hope this helps!

Busyvar commented 2 years ago

Keymap configuration has been merged correctly now, thanks!