Comments (5)
How strange, I was just working on this! I'll push the commit this evening.
from howm.
That's good. Waiting to pull it in my fork.
from howm.
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.
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.
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)
- Split into multiple files HOT 1
- Logo HOT 1
- Remove config.h HOT 2
- Add a Signal Handler
- Rewrite Docs HOT 1
- Installing on Ubuntu Wiki page needs updating
- Implement Querying State HOT 8
- Return an error if a configuration option isn't known HOT 1
- Use a different socket for testing HOT 1
- TravisCI build is failing HOT 7
- Move to TravisCI's containers
- Use Xresources for example HOT 4
- Complete Doxygen Comments HOT 1
- Reimplement the dot operator
- Correctly handle _NET_WM_DESKTOP in client_message_event()
- Commented bar.sh HOT 2
- Example with Lemonbar HOT 3
- Single client mode? HOT 1
- New release? HOT 3
- Makefile: make install only accounts for release build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from howm.