Replies: 5 comments 8 replies
-
These are some really good suggestions! Some of the points like
I think we should maintain both
Good idea! Not sure how useful bash unit tests will be but worth a shot. At the very least, it will give us a tiny safety net against introducing new bugs.
We can already create a build output with this ->
Not sure about this one since it adds very little value and increases the surface area of changes we need to maintain. Doesn't seem worth the effort. Feel free to create low priority issues for these (except for shell completion which I'm not convinced is worth it). |
Beta Was this translation helpful? Give feedback.
-
to keep track of the ideas and their progress 😋 legend:
the ideas:
|
Beta Was this translation helpful? Give feedback.
-
i thought about something, a new idea generate different versions: right now,
The idea would be to use the tags in the worktree to generate the exact versions automatically:
is that something you would like in the project? 😊 |
Beta Was this translation helpful? Give feedback.
-
Hi @phenax 👋 😋 in order to prepare some of the ideas above, i thought about changing the argument parsing a bit 🤔 i've written a little demo on my personal parsing-demo branch 👌 the script should be used as if the main reason for that branch demo to exist is that i feel not comfortable with passing hope you'll find that useful 😊 |
Beta Was this translation helpful? Give feedback.
-
i had another idea, regarding installing and compiling the code 😋 i like to print debug statements when developing, to understand the code and what it's doing! 👌 however, we do not want such debug statements to end up in production code 🤔 so i need to remove all these each time i commit and write them again later when needed 😕 what about doing the following:
... some code
echo "value: $value" # {{DEBUG}}
... some other code
... some code
... some other code whereas ? i think that would be kinda cool, very practical, easy to implement and just a matter of finding the same convention for everyone 😋 |
Beta Was this translation helpful? Give feedback.
-
As i was going through the issues and the PRs to get a gist of the current state of the project, i had the following ideas.
These are mainly enhancement propositions, i've already directly opened issues for the bugs i encountered! 👍
DISCLAIMER: these ideas are not of a high priority but would, to me at least, improve the experience a bit, from the point of view of either a user or a dev. 😊
THE IDEAS:
bsp-layout get
all the desktops: add the possibility to pass anall
argument tobsp-layout get
to get a list of the layouts of each and everyone of the desktops in the currentbspwm
session. That would essentially be an alias to something likecurrent
as an argument to the subcommands ofbsp-layout
in addition to the implicite way with no extra argument, e.g. makebsp-layout get
andbsp-layout get current
equivalentbspwm
, the socket of the manager itself, and (2)bspc
, the controller of the socket. I think it would be more coherent with the base project to shipbsp-layout
andbsp-layout-git
with thebspl
command instead of the currentbsp-layout
command, which essentially means to modify theMakefile
! For backcompatibility concerns, the packages should also come with thebsp-layout
command which would only callbspl
after printing a deprecation warning tostdout
.bsp-layout
, e.g.get
andremove
once
orset
, e.g.monocle
andeven
1
,2
, ... afterget
bspc
: to help new users and new devs to get up to speed with the source code and especially complex commands likebspc
, that could be a usefull thing to use the full switches of thebspc
command, e.g. replacebspc query -D
bybspc query --desktops
bsp-layout
, the idea would be to save the previous native layout used bybspwm
, e.g.alternate
,spiral
orlongest_side
according to the README ofbspwm
. When the user would unregister, i.e.bsp-layout remove
, the layout, the previous one would be restored and the windows rearranged accordingly.bspwm
requires a graphical server to run, but having a workflow in~/.github
would help catch some bugs. even just a spellcheck!bsp-layout
! however, i think there is never really enough documentation 😉 more comments, docstrings for functions, to explain the arguments, etc, etc... that kind of stuff. no real plan on that 🙂bsp-layout
"builds" thebash
source code into a usable script. the use of{{VERSION}}
and{{SOURCE_PATH}}
for instance is very smart to change the behaviour of the final program though theMakefile
! However, from a dev point of view, or even someone just trying to build the application from source, that is quite overkill to be only able tosudo make install
🤔 you need to enter the user password and possibly mess around with the system installation of the script... that would be nice to have some more layers of installation. e.g.make
ormake build
ormake bsp-layout
to "build" the script, namely giving access to a usable executablebsp-layout
in the root of the repo,make clean
to remove "build" files andsudo make install
to finally install the built script.Hope you'll find these ideas interesting, usefull in some way!
Again, these are not top priority as they're only new extra features, just things i thought of for the long run of the project! 😉
cheers @phenax 😋 👋
Beta Was this translation helpful? Give feedback.
All reactions