Giter Site home page Giter Site logo

notepad-session-rebuilder's Introduction

Overview

This repository contains a Python script designed to rebuild the session.xml file for Notepad++ from backup files. The script allows sorting the recovered files by date, name, or size, providing flexibility in session restoration. This tool is particularly useful in situations where the original session.xml file is lost or corrupted, ensuring that your Notepad++ environment is restored with minimal disruption.

Im using Notepad++ daily and rely on it, the lost of the session.xml for a unknown reason, in the past, I were lost, but with the structure of the session.xml, and the help of ChatGPT, this python script with command line features was possible. I hope it will help anyone who is in need to get the session.xml back.

Features

  • Automatic Detection of Backup Directory: The script automatically detects the Notepad++ backup directory based on the current user's environment.
  • Sorting Options: Users can choose to sort the files in the rebuilt session by the last modification date, file name, or file size.
  • Command Line Interface: The script is fully operable from the command line, making it easy to integrate into various workflows.

Prerequisites

  • Python 3.x
  • Notepad++ with existing backup files

Usage

To use the script, clone this repository or download the notepad_plusplus_session_rebuild.py file. Run the script from your command line interface. The script offers the following command-line arguments:

  • --sort-by-date: Sorts the files by the last modification date.
  • --sort-by-name: Sorts the files alphabetically by name.
  • --sort-by-size: Sorts the files by their size.

Example of running the script:

python npp_session_rebuild.py --sort-by-name

Upon successful execution, the script will output the path of the newly created session.xml file.

Acknowledgements

This script was developed with the assistance of ChatGPT, an AI language model by OpenAI. It demonstrates the potential of AI-assisted coding and problem-solving.

notepad-session-rebuilder's People

Contributors

petrk94 avatar

Watchers

ner0 avatar  avatar  avatar

Forkers

ner00

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.