Skip to content

madprops/symview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 

Repository files navigation

Symbolic Link Results

If you go to a parent directory and run:
python /path/to/symview.py images dinosaur

It performs a recursive filename search.
Then it checks the mimetype to check if it's of a certain type.
All the results (up to a max of 100) will be symlinked to /tmp/symview_results.
The symlink directory is opened with your file manager.
Now you have linked files available to view and use.
It ignores directories with dots at the start.
It ignores directories and symlinks.
If no query is provided it asks for it with rofi.

Valid result types:

  • images
  • videos
  • audio
  • media
  • all

Fish functions:

function i
  python /home/yo/code/symview/symview.py images "$argv"
end

function v
  python /home/yo/code/symview/symview.py videos "$argv"
end

function a
  python /home/yo/code/symview/symview.py audio "$argv"
end

function m
  python /home/yo/code/symview/symview.py media "$argv"
end

/home/yo/.local/share/applications/img.desktop:

[Desktop Entry]
Version=1.0
Name=img
Comment=Find Images
GenericName=img
Exec=/home/yo/scripts/img.sh
Icon=application-x-executable
StartupNotify=true
Terminal=false
Type=Application

img script:

#!/usr/bin/env bash
cd /media/storage2/pics/
python /home/yo/code/symview/symview.py images

About

Search for files and generate symbolic links

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages