Giter Club home page Giter Club logo

simple-notebook's Introduction

Text Editor

Programming Language:

  Python(3.10)

This is a simple text editor which can modify text file using python.
First of all you need to know some essential things about how this program works:

  1. When you run the code, you should enter one of the main functions that've been defined.
  2. There is a main loop which run while you use the program so if you want to break it you can exit easily.
  3. List of all functions:

Exit
Next page
Previous page
Where
Show(n)
Append
Insert(text,line number)
Remove(n)
Replace( a , n )
Swap( a , b )
Find(a)
Find&Replace ( a , b )
Undo
Redo

Actually, It's like vim. You should work with commands.

Commands Description:


  • $exit:
    Save the final file and exit from file

  • $nextpage:
    Show the next page. (all pages were seperated via "$" symbol)

  • $previouspage:
    Same as next page

  • $where:
    show your current page number

  • $show(n):
    Show the line number n in current page

  • $append:
    Insert new text at the end of current page.

  • $insert(d,n):
    Insert text d at line number n

  • $remove( n ):
    Remove line number n from the current page

  • replace( a , n ):
    Replace text a with the text at line number n

  • $swap( a , b ):
    Swap line number a with line number b

  • $find(a):
    Find all possible testcases of a in whole file

  • $far ( a , b ):
    Find and replace text a with text b

  • $undo:
    Undo the last change

  • $redo:
    Obvious

This project was the mid-term project of "Data Structure" Course at FUM

simple-notebook's People

Contributors

rezasharifi82 avatar

Stargazers

Mohammad Zibadi avatar

Watchers

 avatar

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.