从当前目录打开终端有没有快捷键
Tofloor
poster avatar
HoneyGIFT
deepin
2019-06-14 22:18
Author
从当前目录打开终端有没有快捷键?



Reply Favorite View the author
All Replies
avatar
WENWEN
deepin
2019-06-15 01:45
#1
就是ctrl+alt+t 看看
Reply View the author
avatar
HoneyGIFT
deepin
2019-06-29 18:56
#2
https://bbs.deepin.org/post/179241
就是ctrl+alt+t 看看

不起作用的,默认定位在用户的主目录。
Reply View the author
avatar
st******ra@outlook.com
deepin
2019-06-29 20:05
#3
百度了一下,找到一篇文章兴许可以供你参考:https://blog.csdn.net/wangchaoqi1985/article/details/81701788
当然了,就算上面这篇文章里的方法可用,也需要自己动手修改 sh 脚本、设置自定义快捷键哦。
Reply View the author
avatar
lbygljq
deepin
2019-06-29 20:20
#4
https://bbs.deepin.org/post/179241
就是ctrl+alt+t 看看

这组组合键只能打开定位到用户的主目录,不能进当前目录的。
Reply View the author
avatar
huimin_c
deepin
2019-06-29 21:09
#5
我记得kde是shift+f4,深度的好像没有,应该要自己设置吧
Reply View the author
avatar
六七
deepin
2019-06-30 06:22
#6
自己手动切一下就好    一路 TAB 补全   贼快的
Reply View the author
avatar
Ochir
deepin
2019-06-30 07:23
#7
我觉得这个问题特别好
搜了一下相关的
看到一些在Ubuntu下实现的脚本
尝试以后并没有成功
希望有大佬能够指点一下

代码如下
  1. #!/bin/bash

  2. xclip_tmp=$(xclip -o)
  3. xdotool key Ctrl+l
  4. xdotool key Ctrl+c
  5. currnet_dir_path=$(xclip -o)
  6. xdotool key Escape
  7. deepin-terminal --working-directory="$currnet_dir_path"
Copy the Code
Reply View the author
avatar
Ochir
deepin
2019-06-30 07:28
#8
  1. deepin-terminal --working-directory="当前目录"
Copy the Code

这行执行是能够实现目的的
但是不知如何更好的传递"当前目录"这个参数过去
Reply View the author
avatar
HoneyGIFT
deepin
2019-08-06 21:56
#9
https://bbs.deepin.org/post/179241
这行执行是能够实现目的的
但是不知如何更好的传递"当前目录"这个参数过去 ...

pwd是可以获取获取当前目录的,是不是可以定一个变量。
Reply View the author