potamides / modalawesome Goto Github PK
View Code? Open in Web Editor NEWFramework for modal, vi-like keybindings for the awesome window manager.
Home Page: https://awesomewm.org/recipes/
License: GNU General Public License v3.0
Framework for modal, vi-like keybindings for the awesome window manager.
Home Page: https://awesomewm.org/recipes/
License: GNU General Public License v3.0
How can I set up multi key patterns?
For example, in the launcher mode, instead of using t
to launch a terminal and b
to launch a browser, can I set up lt
to launch a terminal and lb
to launch the browser?
Just to clarify, this bug is not caused by modalawesome, but by the Lua API of awesome. However since I was approached about this multiple times, I hope this issue will help users to find possible solutions and to solve confusion about this in the future.
This problem is already fixed in the development version of awesome, the related issue can be found here. I can think of two
things that can be done to fix this behavior:
Lua does not have alternative patterns. My request is to allow for the equivalent of '(abc|def)
specifically the |
part that could have a list of patterns or something so that I could functionally have a pattern that would match any of the patterns in the list
What I'm trying to do ultimately is reworking the default functions so that, for example, if I wanted to move the current client forward two tags, I could do either m2f
or 2mf
to the same effect, i.e. allowing for the count
and movement
variables to be swapped, recognizing them in the body of the function based on whether they are number or letter. So I tried
pattern = { '(%d*|m)', '(%d*|m)', '[gfb]' }
before realizing that it doesn't use regex.
I know I'm not able to communicate as clearly as I would like to, but I hope that the underlying feature request is here, and if there is a way I didn't think of to implement this in my awesome using the current modalawesome then I'd be happy to use that too
How can I use special keys like <Tab>
in the patterns?
Also, will chords work?
Hi, I just found a weird bug I had never noticed before. I think it has been introduced recently, as it begun when I tried the PR for common bindings.
When I hit arrow keys, the sequence grabbed is the name of said key. The issue is that "Left" match my "L" binding to switch to the tag on the right of my main tag.
Hello !
In my configuration, I have some common bindings that were repeated in every modes.
I use these to switch from any mode to any mode, as well as some useful bindings (I have ? and : accessible at all time to show the help popup and launch commands).
I´ve got a fork that allow a special mode (common) to hold common bindings, that is merged with every other, then removed from mode list, in init.lua:process_modes. This let create_hotkey generate help for this common mode, before it´s merged with others and removed.
I can open a pull request if you think it can be useful.
It might be better to allow arbitrary name, but I used common in my own config, so I just hardcoded it that way
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.