OS Project
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    1
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # **Pixel Manager** --- Welcome to the **Pixel Manager**, a lightweight console based file manager for **Linux systems!** This has been developed as a part of the CS 301 Operating Systems Course, IIT Gandhinagar by [Arpita Kabra](https://github.com/arpitakabra), [Devvrat Joshi](https://github.com/devvrat-joshi), [Viraj Shah](https://github.com/viraj-shah18) and [Vrutik Shah](https://github.com/VrutikShah). ## Table of contents 1. [Installation](#install) 2. [Features](#features) 1. [File Management System](#fms) 2. [Terminal](#terminal) 3. [Editor](#editor) 4. [File Search](#seach) 3. [All Commands](#cmds) 4. [Statistics and Comparision](#stats) The main features of the Pixel Manager are: * **File System Management** * **Built-In Terminal** * **Built-In File Editor** * **Quick File Search** --- ## **Installing Pixel Manager**<a name="install"></a> 1. Clone this repository ``` git clone https://github.com/devvrat-joshi/Pixel-Manager.git ``` 2. Navigate to the folder ``` cd Pixel-Manager ``` 3. Run `make` This will automatically install dependencies as well as run the pixel manager. In case make does not work. Try running ``` python3 main.py ``` 4. If it runs into any error, try running `Ctrl + c` to restore into normal state. Run it again to exit from the File Manager! --- ## **Main Features Explained** <a name="features"></a> ### File Management System <a name="fms"></a> The main window of the File Manager provides an easy way to navigate through any files and directories on the system. The **left panel** shows the contents of the current directory, and highlights the selected content with green color. The **center panel** is for search window and shows the contents of the selected directory (if not a file). The right panel shows stats of the selected file/directory along with CPU and RAM usage. Here is the preview of the main window: <div><center>File Manager Main window</center></div> ![](https://i.imgur.com/8Lg3hDT.png) <!-- ![](https://i.imgur.com/DWGzr99.png) --> Navigate using the arrow keys! Right key opens to the selected directory and left key moves back to the previous directory. <div><center>Scrolling through current directory</center></div> ![](https://i.imgur.com/cVEDObI.png) The bottom row bar displays all the possible commands to **copy, move, delete and create new** files and folders, **search** through directories, and start the **Terminal!** --- ### Terminal <a name="terminal"></a> The built-in terminal can be toggled by pressing `Shift+TAB` It can run all Linux commands and system calls. It can also execute user defined programs. However, it does not support interactive programs yet. Here's a preview of how it looks: <div><center>Terminal Preview</center></div> ![](https://i.imgur.com/ZyAFvJ3.jpg) <!-- ![](https://i.imgur.com/uEXrgoD.png) --> The input can be given at the bottom most line and the output will be presented in the **Terminal Output** panel. The terminal panel becomes *orange* if your program is still executing. The terminal also supports scrolling if the output is more than the screen size. --- ### Editor <a name="editor"></a> To edit files on the go, navigate to the file and pressing ```e``` would open the file in the built-in editor. The editor is line-by-line scrollable and we have made sure to handle several corner cases that may arise. The current editor is customized for python files, highlighting keywords, adding indentation spaces and auto-completing brackets and strings. <div><center>Editor Preview</center></div> ![Editor Screenshot](https://i.imgur.com/Xk9uae3.png) The editor currently also supports cut/copy/paste and find-replace utilities. Following are the screenshots for the same. <div><center>Selecting Lines</center></div> ![Selecting Files](https://i.imgur.com/K8Y5SRk.png) <div><center>Highlighting the found words</center></div> ![Highlighting the found words](https://i.imgur.com/anyautJ.png) --- ### Quick Search <a name="search"></a> To enable the search bar, enter `ctrl + a`. It initiates a trie creation from the current folder in a different process. As soon as the trie is created, it is returned to the main process (the File Manager) to initiate the search. Larger the folder size, larger the size of the trie and more RAM used for storing. However, once created, the trie is stored for further use in **Pickle File** format which uses very less space and saves trie creation time! Here is a preview of search! <div><center>Search Preview</center></div> ![](https://i.imgur.com/IpmRXbI.png) The top bar shows the trie creation process! Here is how searching looks: <div><center>Searching through files/folders</center></div> ![](https://i.imgur.com/cX3IztT.png) It can search for thousands of files giving results instantly. Scroll and navigate through the found items. <div><center>Scrolling through results</center></div> ![](https://i.imgur.com/SgiqbB5.png) When searching, top right corner shows the number of search results. Scrolling through the search results and then pressing enter will take you to the paths on which the actual file/folder is present. <div><center>After selecting result, scrolling through the locations where result appear</center></div> ![](https://i.imgur.com/WdlxUxB.png) After pressing enter on one of the paths, you will be redirected to that location. <div><center>Search implementation flowchart</center></div> ![](https://i.imgur.com/BVEKoFP.png) --- ## **List of All Commands** <a name="cmds"></a> ### In the Manager | Command | Action | | --------------------------------- | ----------------------------------------- | | ```Arrows Keys``` | Navigate through the files | | `e` (when on a file) | Open the file editor | | `g` | Create a new folder | | `c` | Copy the current file or folder | | `k` | Create a new file | | `m` | Move the current file or folder | | `v` | Paste the cut/copied item | | `d+r` (will ask for confirmation) | Delete the current File or Folder | | `Shift + TAB` | Open the terminal | | `Ctrl + a` | Start a search within the selected folder | | `END` key | Close the Pixel Manager | ### In the Terminal | Command | Action | | -------- | -------- | |`Shift+Tab` | Start Terminal | | `Shift+Tab`| Close Terminal | |`Enter` |To execute the command| |`Up Down Arrow Keys`|To scroll through the output of terminal| |`Esc`|To return control to terminal after viewing output in terminal window| ### In the Editor **Normal Mode** | Command | Action | | -------- | ------------ | | `e` | Start editor | | `Ctrl+F` | Find | | `Ctrl+R` | Replace Text | | `Escape` | Enter Command Mode| **Command Mode** | Command | Action | | ------- | -------------------------------------- | | `s` | Enter Visual Mode (for cut/copy/paste) | | `i` | Enter normal Mode | | `q` | Quit Editor (option to save and discard changes)| **Visual Mode** | Command | Action | | -------- | ------------------------ | | `c` | Copy Text | | `x` | Cut Text | | `v` | Paste Text | | `Escape` | To return to normal mode | ### During Search | Command | Action | | -------------------- | -------------------------------- | | `Ctrl+a` | To begin search | | `Ctrl+a` | To return from search | | `Up Down Arrow Keys` | To scroll through search results | | `Enter` | To navigate to any search result | --- ## **Some Statistics** <a name="stats"></a> ![](https://i.imgur.com/QwRTwxc.png) . ![](https://i.imgur.com/9mACGxs.png) --- ### <div><center>[Link to the Presentation](https://drive.google.com/file/d/1FU9KvMKyhQhalqbKgY0ikj8BSvyUCex4/view?usp=sharing) </div></center> ---

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully