mirror of
https://github.com/vale981/py-vterm-interaction.el
synced 2025-03-04 17:41:40 -05:00
also adapt run-buffer-file
This commit is contained in:
parent
d3a6d0235e
commit
862eb0dcd3
1 changed files with 3 additions and 1 deletions
|
@ -541,7 +541,9 @@ If the function has no arguments, the function call is run immediately."
|
||||||
|
|
||||||
This is equivalent to running `%run -i <buffer-file-name>` in the python vterm buffer."
|
This is equivalent to running `%run -i <buffer-file-name>` in the python vterm buffer."
|
||||||
(interactive)
|
(interactive)
|
||||||
(python-vterm-paste-string (python-vterm--load-file buffer-file-name "load script buffer")))
|
(let ((file buffer-file-name))
|
||||||
|
(with-current-buffer (python-vterm-fellow-repl-buffer)
|
||||||
|
(python-vterm-paste-string (python-vterm--load-file file "load script buffer")))))
|
||||||
|
|
||||||
(defun python-vterm-send-cd-to-buffer-directory ()
|
(defun python-vterm-send-cd-to-buffer-directory ()
|
||||||
"Change the REPL's working directory to the directory of the buffer file."
|
"Change the REPL's working directory to the directory of the buffer file."
|
||||||
|
|
Loading…
Add table
Reference in a new issue