ranger icon indicating copy to clipboard operation
ranger copied to clipboard

Ranger, RIfle mistook `.nim` script as a video `aNIMation` files

Open tfed-trom opened this issue 1 year ago • 0 comments

  1. Ranger misunderstands The Nim programming language as a video a(NIM)ation.
  2. The Rifle doesn't have a configuration for it, so it's trying to open nim scripts in a video player.
  3. Which opens nothing, because video player can't open that as a video (So it's a bug).
  4. Which forces me to open nim script with r :open_with emacs each time.
  5. I think This mistook nim text script as video should be fixed!

Runtime Environment

  • OS: Linux tfed-laptop 6.6.47-1-MANJARO #1 SMP PREEMPT_DYNAMIC Mon Aug 19 09:51:26 UTC 2024 x86_64 GNU/Linux
  • terminal: xfce4-terminal 1.1.3 (Xfce 4.18)
  • Python version: 3.12.5 (main, Aug 9 2024, 08:20:41) [GCC 14.2.1 20240805]
  • I've got a local ranger git package
  • ranger version: ranger-master v1.9.3-730-gbd9b37fa
  • Ranger version/commit: bd9b37faee9748798f3970468bd0d1dedbf0e99f (the latest one)
  • Locale: en_US.UTF-8

Current Behavior

When you press l or --> or Right nothing happens, because nim isn't a video, and can't be opened in mpv (the media player)

Expected Behavior

I want to open .nim files in text editor such Emacs or nano or whatever.

Context

Possible Solutions

I think we should add text/x-nim and text/x-nimscript as a text scripts (in support)

tfed-trom avatar Sep 14 '24 07:09 tfed-trom