hints kitten: When using the linenumber action with a background action, preserve the working directory
Fixes #3352
This commit is contained in:
@@ -78,6 +78,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||||||
- macOS: Disable the native operating system tabs as they are non-functional
|
- macOS: Disable the native operating system tabs as they are non-functional
|
||||||
and can be confusing (:iss:`3325`)
|
and can be confusing (:iss:`3325`)
|
||||||
|
|
||||||
|
- hints kitten: When using the linenumber action with a background action,
|
||||||
|
preserve the working directory (:iss:`3352`)
|
||||||
|
|
||||||
|
|
||||||
0.19.3 [2020-12-19]
|
0.19.3 [2020-12-19]
|
||||||
-------------------
|
-------------------
|
||||||
|
|||||||
@@ -698,7 +698,7 @@ def linenum_handle_result(args: List[str], data: Dict[str, Any], target_window_i
|
|||||||
w.paste_bytes(text + '\r')
|
w.paste_bytes(text + '\r')
|
||||||
elif action == 'background':
|
elif action == 'background':
|
||||||
import subprocess
|
import subprocess
|
||||||
subprocess.Popen(cmd)
|
subprocess.Popen(cmd, cwd=data['cwd'])
|
||||||
else:
|
else:
|
||||||
getattr(boss, {
|
getattr(boss, {
|
||||||
'window': 'new_window_with_cwd', 'tab': 'new_tab_with_cwd', 'os_window': 'new_os_window_with_cwd'
|
'window': 'new_window_with_cwd', 'tab': 'new_tab_with_cwd', 'os_window': 'new_os_window_with_cwd'
|
||||||
|
|||||||
Reference in New Issue
Block a user