kek91 / statusbarextended Goto Github PK
View Code? Open in Web Editor NEWExtend status bar in fman to show more information
License: MIT License
Extend status bar in fman to show more information
License: MIT License
When having a file with a squigly bracket in the filename "{" or "}", an error is raised:
DirectoryPaneListener 'StatusBarExtended' raised error.
Traceback (most recent call last):
File "fman\impl\plugins\plugin.py", line 311, in _notify_listener_in_thread
File "C:\Users\ahayun\AppData\Roaming\fman\Plugins\Third-party\StatusBarExtended\statusbarextended\__init__.py", line 144, in on_path_changed
StatusBarExtended.refresh(self)
File "C:\Users\ahayun\AppData\Roaming\fman\Plugins\Third-party\StatusBarExtended\statusbarextended\__init__.py", line 33, in refresh
dir_files_in_dir = glob.glob(current_dir + "/*")
File "glob.py", line 20, in glob
File "glob.py", line 71, in _iglob
File "glob.py", line 72, in _iglob
File "glob.py", line 83, in _glob1
File "fnmatch.py", line 52, in filter
File "fnmatch.py", line 46, in _compile_pattern
File "C:\Users\Michael\AppData\Local\Programs\Python\Python36-32\lib\re.py", line 233, in compile
File "C:\Users\Michael\AppData\Local\Programs\Python\Python36-32\lib\re.py", line 301, in _compile
File "C:\Users\Michael\AppData\Local\Programs\Python\Python36-32\lib\sre_compile.py", line 562, in compile
File "C:\Users\Michael\AppData\Local\Programs\Python\Python36-32\lib\sre_parse.py", line 855, in parse
File "C:\Users\Michael\AppData\Local\Programs\Python\Python36-32\lib\sre_parse.py", line 416, in _parse_sub
File "C:\Users\Michael\AppData\Local\Programs\Python\Python36-32\lib\sre_parse.py", line 765, in _parse
File "C:\Users\Michael\AppData\Local\Programs\Python\Python36-32\lib\sre_parse.py", line 416, in _parse_sub
File "C:\Users\Michael\AppData\Local\Programs\Python\Python36-32\lib\sre_parse.py", line 553, in _parse
sre_constants.error: bad character range 2-0 at position 20
StatusBarExtended refreshes only upon on_path_changed()
. Should refresh when changing pane with TAB button
https://fman.io/docs/sharing-plugins
and add the topics
fman
andplugin
If you quit fman while the left pane is showing drives (Alt+F1), you will get the following error next time you open fman:
DirectoryPaneListener 'StatusBarExtended' raised error.
Traceback (most recent call last):
File "...\statusbarextended\__init__.py", line 88, in on_path_changed
StatusBarExtended.refresh(self)
File "...\statusbarextended\__init__.py", line 21, in refresh
pane2 = panes[1].id
IndexError: list index out of range
It doesn't happen when showing drives on the right pane.
This plugin doesn't show anything when you toggle. You have to toggle, move directories and then it starts to show. I would rather it display something when turned on.
When trying to resize the fman window size I'm only able to make it wider but not smaller then the bars default size. And if I disable the plugin and resize the window and then enable the plugin again it resizes the whole window again to the bars default size.
I have uploaded a youtube example window showing this error
https://youtu.be/Dxa1CC3koWc
DirectoryPaneListener 'StatusBarExtended' raised error.
Traceback (most recent call last):
File "\StatusBarExtended\statusbarextended_init_.py", line 79, in on_path_changed
ShowStatusBarExtended.refresh(self)
File "\StatusBarExtended\statusbarextended_init_.py", line 42, in refresh
dir_filesize += stat(f).st_size
PermissionError: [WinError 5] Access is denied: 'F:\/hiberfil.sys'
Possible solution: Implement a try/catch block to ignore the file if access is denied
The Status bar only shows
Pane: Left (square) Size: 0.0 b
I'm on Win7
Any way I can help to debug this?
StatusBarExtended currently computes fileinfo for both panes, even if you only change working directory on one of the panes. This can be particularly annoying if viewing a large directory in one pane while using the other for smaller directories, because the large directory will compute size on every directory change and ultimately slow down fman.
Maybe change the default to F2 ?
Just FYI I've made a few edits to the format of the toolbar in a fork. If you like them, would be happy to send a PR
(for some reason selection stopped working even with a clean install of your plugin, so can't provide a screenshot of the new format)
Needs to extend functionality of fileoperations.py
in Core plugin.
class CopyFiles(FileTreeOperation)
class MoveFiles(FileTreeOperation)
Make the status bar responsive (if possible, str.format() and str.rjust() doesn't apply)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.