You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awesome v4.3-1647-ge6f5c7980-dirty (Too long)
• Compiled against Lua 5.4.6 (running with 0.9.2)
• API level: 4
• D-Bus support: yes
• xcb-errors support: no
• execinfo support: yes
• xcb-randr version: 1.6
• LGI version: /usr/share/lua/5.4/lgi/version.lua
• Transparency enabled: yes
• Custom search paths: no
How to reproduce the issue:
I want to make custom prompt widget. i try to make it to have multiple mode and can be switched when type certain prefixes like :b to search in browser for example, so i decided to use hooks, so whenever the user type space, it will check if the command start with :<prefix> it will change into selected mode. In doc, it says
An optional second return value controls if the prompt should exit or simply update the command (from the first return value) and keep going. The default is to execute the exe_callback and done_callback before exiting.
so i try below code, but for some reason every time i press space inside my prompt, the prompt immediately run the command instead of just replacing the command
Output of
awesome --version
:awesome v4.3-1647-ge6f5c7980-dirty (Too long)
• Compiled against Lua 5.4.6 (running with 0.9.2)
• API level: 4
• D-Bus support: yes
• xcb-errors support: no
• execinfo support: yes
• xcb-randr version: 1.6
• LGI version: /usr/share/lua/5.4/lgi/version.lua
• Transparency enabled: yes
• Custom search paths: no
How to reproduce the issue:
I want to make custom prompt widget. i try to make it to have multiple mode and can be switched when type certain prefixes like
:b
to search in browser for example, so i decided to use hooks, so whenever the user type space, it will check if the command start with:<prefix>
it will change into selected mode. In doc, it saysso i try below code, but for some reason every time i press space inside my prompt, the prompt immediately run the command instead of just replacing the command
Actual result:
When pressing space, the command get updated but the prompt immediately exit
Expected result:
When pressing space, the command should be updated and prompt kept running
The text was updated successfully, but these errors were encountered: