Skip to content

Commit ed3e50b

Browse files
committed
improves overlay positioning and adds command to open config with e
1 parent f99bc36 commit ed3e50b

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ In Command Mode: `r` reloads, `i` opens the [Helper Utility](#helper-utility), `
106106
- In Command Mode, press `w` to attempt a new window for the active app.
107107

108108
## Known Limitations
109+
- This has not been tested with multi-monitor setups.
110+
- Dynamic grid ratios need added to support more screen sized and resolutions for the window-snap function.
109111
- Some apps (e.g., Discord) launch via `Update.exe` and keep versioned subfolders, which makes auto-resolution unreliable.
110-
- For these apps, set `apps[].run` to a stable full path (or use `run_paths`) in your config.
112+
- For some apps that minimize or close to the system tray, it's recommended you disable that in the program. Otherwise you can try to set `apps[].run` to a stable full path (or use `run_paths`) in your config.
111113
- Windows with elevated permissions may ignore be-there hotkeys unless be-there is run as Administrator.
112114

113115
## Layout

be-there.ahk

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
config_dir := GetConfigDir()
1010
DirCreate(config_dir)
11-
config_path := config_dir "\config.json"
11+
global config_path := config_dir "\config.json"
1212
EnsureConfigExists(config_path, DefaultConfig())
1313
config_result := LoadConfig(config_path, DefaultConfig())
1414
global Config := config_result["config"]
@@ -48,6 +48,7 @@ if reload_config["enabled"] {
4848
Hotkey("i", (*) => ExecuteCommand(OpenWindowInspector))
4949
Hotkey("n", (*) => ExecuteCommand(ToggleCommandHelper))
5050
Hotkey("w", (*) => ExecuteCommand(OpenNewWindowForActiveApp))
51+
Hotkey("e", (*) => ExecuteCommand(OpenConfigFile))
5152
Hotkey("Esc", ClearReloadMode)
5253
HotIf
5354
}
@@ -231,6 +232,14 @@ OpenWindowInspector() {
231232
ShowWindowInspector()
232233
}
233234

235+
OpenConfigFile() {
236+
global config_path
237+
if !config_path
238+
return
239+
if FileExist(config_path)
240+
Run(config_path)
241+
}
242+
234243
OpenNewWindowForActiveApp() {
235244
hwnd := WinExist("A")
236245
if !hwnd

src/lib/command_toast.ahk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ BuildCommandToastText() {
115115
lines := []
116116
lines.Push("be-there")
117117
lines.Push("")
118-
key_width := 12
118+
key_width := 16
119119

120120
if is_move_mode {
121121
lines.Push("Move Mode")
@@ -127,6 +127,7 @@ BuildCommandToastText() {
127127
if is_command_mode {
128128
lines.Push("Command Mode")
129129
lines.Push(FormatRow("r", "reload config", key_width))
130+
lines.Push(FormatRow("e", "open config file", key_width))
130131
lines.Push(FormatRow("i", "window inspector", key_width))
131132
lines.Push(FormatRow("n", "toggle helper", key_width))
132133
lines.Push(FormatRow("w", "new window (active app)", key_width))

0 commit comments

Comments
 (0)