mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Dont expand cwd=current in rc launch
This is easily done at the command line. And its semantics are are to refer to cwd of active window.
This commit is contained in:
@@ -96,8 +96,6 @@ by the shell (needs :ref:`shell_integration` to work). The special value
|
|||||||
oldest foreground process associated with the currently active window rather
|
oldest foreground process associated with the currently active window rather
|
||||||
than the newest foreground process. Finally, the special value :code:`root`
|
than the newest foreground process. Finally, the special value :code:`root`
|
||||||
refers to the process that was originally started when the window was created.
|
refers to the process that was originally started when the window was created.
|
||||||
When running via remote control a value of current uses the working directory
|
|
||||||
for the remote control invocation.
|
|
||||||
|
|
||||||
|
|
||||||
--env
|
--env
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class Launch(RemoteCommand):
|
|||||||
args+/list.str: The command line to run in the new window, as a list, use an empty list to run the default shell
|
args+/list.str: The command line to run in the new window, as a list, use an empty list to run the default shell
|
||||||
match/str: The tab to open the new window in
|
match/str: The tab to open the new window in
|
||||||
window_title/str: Title for the new window
|
window_title/str: Title for the new window
|
||||||
cwd/str=copy_local_cwd: Working directory for the new window
|
cwd/str: Working directory for the new window
|
||||||
env/list.str: List of environment variables of the form NAME=VALUE
|
env/list.str: List of environment variables of the form NAME=VALUE
|
||||||
var/list.str: List of user variables of the form NAME=VALUE
|
var/list.str: List of user variables of the form NAME=VALUE
|
||||||
tab_title/str: Title for the new tab
|
tab_title/str: Title for the new tab
|
||||||
|
|||||||
@@ -15,12 +15,3 @@ func copy_local_env(copy_env bool) []string {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func copy_local_cwd(copy_cwd string) string {
|
|
||||||
if copy_cwd == "current" {
|
|
||||||
if c, e := os.Getwd(); e == nil {
|
|
||||||
copy_cwd = c
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return copy_cwd
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user