Giter VIP home page Giter VIP logo

mpv-filenavigator's Introduction

Mpv Filenavigator

File navigator for mpv media player. Should work on linux, macos and windows. Relies on default unix commands cd, pwd, sort, test and ls. Edit the settings variable in the lua file to change defaults and to add favorite paths.

Keybinds

  • navigator (Alt+f) Activate script. When using dynamic keys this will need to be invoked to register keybindings.
  • navup navdown (up/down) cursor up/down
  • navback navforward (left, right) directory back/forward, incase of file append to playlist
  • navopen (Enter) open directory or file with mpv, same as mpv /path/to/dir-or-file, replaces playlist
  • navfavorites (f) cycle between favorite directories, edit settings to setup
  • navclose (ESC) Close navigator if it's open

On default dynamic keys are active which means that other binds than navigator(Alt+f) will only be active after activating the script with navigator keybind and until the osd timeouts. Dynamic keybindings will only override keys while they are active. Dynamic setting toggle can be changed in lua settings variable. The navigator start keybind can be changed in input.conf with KEY script-binding navigator. The dynamic keybinds should be set from the lua settings.

alt text

My other mpv scripts

mpv-filenavigator's People

Contributors

goetzc avatar jonniek avatar sgerwk avatar yutsuku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mpv-filenavigator's Issues

Todo UI & UX features

Anyone is free to contribute:

  • Create option to toggle visibility instead of relying on timeout. See playlistmanager for reference.
  • Use assdraw with user defined styles instead of osd message. See playlistmanager for reference.
  • Add option to make font scale by window size. See playlistmanager for reference.
  • Use similar utf characters as playlistmanger for selection visuals
  • Rethink the add / remove to playlist flow as now it is quite clunky and unreliable

Feature Request: make navup and navdown repeatable

Can ctrl+i/k (navup and navdown) be repeatable?
I tried adding "repeatable" keyword to input.conf:

Ctrl+k                repeatable        script-binding navigator/navdown
Ctrl+i                repeatable        script-binding navigator/navup

But it didn't change anything, I still have to press these hotkeys multiple times to navigate between folders.

No license provided

Hi there,

I'm currently working on a Arch Linux distribution package for the AUR and noticed you haven't specified what license this and your other scripts are distributed under.

This is of course not mandatory, but providing licensing information would be very helpful for people like me to know what terms, if any, your code can be distributed under.

If you've got some spare time I'd really appreciate it if you could pick out a license1. Or, if you don't fancy any of these open source licenses, if you can let me know here whether I can distribute this package and under what terms.

Sincerely,
Joost

1: TL;DR, if you're okay with just about anything the MIT license is probably for you.

can't use arrow keys to backward or forward

hi.first of all thanks for this great script.
after this commit 6a0d855 when I select a file with Enter I can't use arrowkeys to backward or forward because every time I press RIGHT the navigation menu pop up and say Appended file to playlist and when i press LEFT it goes back to parent directory.i do not need a playlist manager i just want navigate through my files and play them.i reverted that commit (on my system) because right now this script is unusable,IMO.

prefer mpv utils to os functions

Mpv script utils have come a long way since this script was created. This script could be improved a lot with readdir, file_info and path_join functions.

Esc to close navigator

esc/navigator_mainkey to close navigator. Currently, you have to wait for the script to timeout when adding to playlist.

isfolder fails to detect ordinary files, thus appending is impossible

This might be caused by a Lua change. Not sure. Anyway, the fix is easy -- add == 0 to the end of the line:

function isfolder(dir)
  return os.execute('test -d "'..escapepath(dir, '"')..'"') == 0
end

Without this fix, it was impossible to append files to the playlist -- I could only replace them, because the replace action doesn't check folder status.

The interface also displayed the file I was trying to add as if it were an empty directory :)

Subtitle support

I could not find a decent subtitle opener on Linux (happy to be recommended one), and this is the best implementation for folder navigation IMO, so, could you make it so nav-open a subtitles file add and activate the sub, nav-forward to add sub to the subs on current playing video?

Partition is inaccessible since mpv 0.33

It was able to switch between partitions on mpv 0.32 with RIGHT key, however 0.33 broke it. Now RIGHT key can only append a partition to playlist, rather than enter it.

console output

[file] Cannot open file ' Select drive/D:': Invalid argument

[stream] Failed to open Select drive/D:.

[cplayer]

[cplayer] Playing: Select drive/E:

[file] Cannot open file ' Select drive/E:': Invalid argument

[stream] Failed to open Select drive/E:.

[Question]: compatibility with nextfile and / or autoload

Hi there. Is there a way to have both scripts (nextfile and navigator) loaded and that the playlist is respected, another way to put it, so that nexfile only kicks in after the playlist (whether if at first loaded file or last playlist file dir it seems less important right now). Also same question regarding autoload script

Dir A

  • video 1
  • video 2
  • video 3

Dir B

  • video 4
  • video 5
  • video 6, 7, 8, 9

Desired behaviour: video 1 starts to play and v2 and v3 are loaded, if I do nothing, next file in the queue would be v2 and next v3. If through Navigator I create a playlist say v1, v4, v2 and v5, the order would be exactly that and at the completion videos 6 -> 9 would be enqueued

The way things are now, I have to disable the loading scripts if I want the playlist to be respected.
Thank you

Use color to indicate selection

It gets a bit nervous when the selection jumps around in a fast moving list. Indicating the selection by colour not sharp brackets would be nicer on the eyes. (IMHO)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.