Giter VIP home page Giter VIP logo

rust-journal's Introduction

Rust journal

A rewrite of my python journal, but in rust. It only has the features that I actually use, and the approach to maintaining state is much better, which in turn made the code a lot better. It has the added bonus that you don't need python to be able to run it. You can compile it and run it, or just grab the .exe from the releases tab.

How it works

I wrote this documentation using the journal itself:

Help - Saturday 2022/5/21


09:50 am - Before we start:
    09:50 am - Type / help from anywhere to access this text
    09:50 am - Type /exit from anywhere to exit this program

09:51 am - The basics
    09:51 am - Type any text to add an 'entry'
    09:51 am - new entires will be added to the current 'block' of lines
    09:51 am - like
    09:51 am - this

09:52 am - Type dash (-) followed by an entry to start a new block
    09:52 am - Type a (~) on it's own to toggle the last line between being part of a block vs being the start of a new block

09:53 am - (Usefull for when you forget a (-) on the line you just entered

09:53 am - Journal Reading
    09:54 am - Type /prev to view previous entries
    09:54 am - Type /times to view a time breakdown of how much time elapsed between each block.
    09:54 am - Type /gtime to show a more granular (but much harder to read) time breakdown between each entry.

09:54 am - Journal Managing
    09:54 am - You can have multiple journals.
    09:54 am - Type /new to create a new journal. You will be asked to provide a name.
    09:54 am - Type /switch to switch to another journal. This will only work if you have more than one journal.
    09:55 am - Type /find to find some text in the journal. You can use this to go back to an entry by string

Unnecessary info

I tried to do this a few months ago, but I just couldn't wrap my head around rust's type system, particularly the differences between the String and &str and OsString and OsStr classes. But recently, the Rust VS-Code extension seems to have had an update that will intrusively insert the the auto-deduced type into the text, and I believe this helped me understand types a lot better. I used to hate this language, but now that I am able to actually use it, I think it's pretty good. Possibly even the best. Funny how that works, isn't it?

rust-journal's People

Contributors

tejas-h5 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.