Giter VIP home page Giter VIP logo

statusbarextended's Introduction

StatusBarExtended

Extends the status bar in fman to show additional information.

Turn the plugin on or off by using a keyboard shortcut, default is F3.

Configure the plugin by using a keyboard shortcut, default is ShiftF3.

Features

Adds extra information to the status bar.

  • Show the number of directories/files and the total size of files in the current directory for both panes
  • Show "Toggle hidden files" status ( shown hidden)
  • Show the number of selected directories/files and the total size of selected files
  • Show the currently active pane indicator ( left right)

Aligns indicator positions to avoid "jitter" on selection/navigation

Allows a user to configure all the options via the configure_status_bar_extended command aliased as StatusBarExtended: configure in the Command Palette:

Option Default Description
Enabled True Enable or disable this plugin
SizeDivisor 1024 File size format: decimal (1k=1000=10³) or binary (1k=1024=2¹⁰)
MaxGlob 5000 Skip folders with as many items (folders+files)
SymbolPane Left/Right pane symbol
SymbolHiddenF Hidden files Shown/Hidden symbol (tip: try 👁 👀👓 ✓✗ ◎◉ 🐵🙈)
HideDotfile False Treat .dotfiles as hidden files on Windows
Justify 5 5 7 Minimum width of the Folder/File/Size values, e.g.
5,321
   21

Preview

Status Bar without selection Status Bar with selection
Screenshot macOS 10 v0.3.0 Screenshot macOS 10 v0.3.0-selection
Status Bar alignment
Screenshot of alignment

Known issues

  • fman raises ValueError on the first Toggle hidden files if a pane is launched with hidden files hidden (and status bar is not updated this one time) (tip: you might be able to conveniently close the error warning window with the same keybind you toggled hidden files with)
  • Status bar is NOT updated when switching panes with a mouse since plugins can't notice a pane switch due to a lack of the necessary APIs
  • Alignment of indicators only works for monospaced (fixed-width) fonts since it's currently implemented using regular spaces (tip: you can change this font in your Theme.css file .statusbar{font-family:"yourMonospacedFont"}). And even then fancy icons/emojis might slightly break it
  • On launch the right pane is ignored in the status bar udpate to improve performance since fman always activates the left one (and doesn't have an API to let a plugin know which pane is the active one)

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.