Giter VIP home page Giter VIP logo

Comments (5)

HarveyHunt avatar HarveyHunt commented on June 14, 2024

How strange, I was just working on this! I'll push the commit this evening.

from howm.

anubhavcodes avatar anubhavcodes commented on June 14, 2024

That's good. Waiting to pull it in my fork.

from howm.

HarveyHunt avatar HarveyHunt commented on June 14, 2024

What are your opinions on keeping all of the last_* variables in a struct?

I also need to find a nice way to check that the last_cmd isn't replay as that causes a segfault. I can't look right now as I am tethered to mobile internet- my ISP "should" be arriving this afternoon...

from howm.

anubhavcodes avatar anubhavcodes commented on June 14, 2024

Keeping all the last_* variables in a struct seems to be a good option to me. I see that was preety slick to call the last_cmd or last_op functions do the job for you in the replay function.

Creating a struct seems to be the first things that comes to my mind, but every time after a I hit a operator or run a command, howm will need to update the struct each time, will may increase the overhead a little.

How do you plan to implement the update of the struct?

Also I forget to ask, do you think the dot operator should be used with OTHER_MOD instead of MODKEY. It seems logical to me to implement the dot operator using OTHER_MOD as all the counts and operators are called using this key?

from howm.

HarveyHunt avatar HarveyHunt commented on June 14, 2024

I am going to put the things in a struct to keep the code looking neater and to logically tie the variables together, I'll close this issue when I push the changes.

from howm.

Related Issues (20)

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.