建议给深度文件管理器建立一个命令行快捷方式
Tofloor
poster avatar
ldsink
deepin
2017-04-02 00:48
Author
RT,需求是这样的:
作为一个开发,习惯通过命令行切换文件目录 & 寻找文件。
使用 macOS 有 open . 命令从 shell 里面打开当前路径。Ubuntu 也有 nautilus . 打开当前目录 。这两个命令打开的文件管理器都是后台模式的,终端可以继续干其他的活。
深度我找了一下,文件管理器是 dde-file-manager,加路径也能打开,但是是前台模式,感觉深度文件管理器的开发没有考虑到这个需求。


希望可以更新一下,默认后台打开,实现 Ubuntu 或者 macOS 同样的功能。还希望可以取个简单的名字,或者弄个简单的别名,类似 open 这种,dde-file-manager 太长了,不好看。
Reply Favorite View the author
All Replies
avatar
cy844757727
deepin
2017-04-02 00:58
#1
本帖最后由 cy844757727 于 2017-4-1 17:01 编辑

别名可以自己用 alias open='dde-file-manager' 添加到 $HOME/.bashrc 文件里,或自己新建 .bash_aliases 文件再添加进去
Reply View the author
avatar
wanywhn
deepin
2017-04-02 00:58
#2
别名请百度alias。
Reply View the author
avatar
dragondjf
deepin
2017-04-02 01:14
#3
gvfs-open ~ 就可以 gvfs-open会去寻找默认的文件管理器,会在后台运行。
Reply View the author
avatar
ldsink
deepin
2017-04-05 18:32
#4
请深度考虑这个建议啊,前面几个回复根本没看懂我是要什么。

改我的 .zshrc  建立 alias ,跨系统就不能用,我的 zsh 配置文件几个系统都在用一份的,没有可行性。
而且这样能用,我还不如直接在 local/bin 目录下面建一个 dde 的软链接呢。

关键是启动 dde-file-manager 这个进程,他就是一个前台进程,我 Shell 就不能用了,全是他的输出。希望改成默认在终端使用后台启动。 nohup + & 没用啊。
google-chrome,   visual code,atom 还有其他的,全都是这样的。
Reply View the author
avatar
ldsink
deepin
2017-04-05 18:33
#5
https://bbs.deepin.org/post/136998
别名可以自己用 alias open='dde-file-manager' 添加到 $HOME/.bashrc 文件里,或自己新建 .bash_aliases  ...

这个不解决前台启动问题。
Reply View the author
avatar
ldsink
deepin
2017-04-05 18:35
#6
https://bbs.deepin.org/post/136998
别名请百度alias。

多个系统,.zshrc 等文件备份&公用,不值得为一个特定系统加。
而且用 alias 能解决问题,我还不如用 ln -s 建软链搞定。这样还不影响其他系统。

关键是我不知道怎么后台启动这个进程。
Reply View the author
avatar
carrjay
deepin
2017-04-05 19:10
#7
我都是自己装了个pcmanfm然后把自己想要看的文件调出来
Reply View the author
avatar
lwj10011
deepin
2017-04-06 01:59
#8
https://bbs.deepin.org/post/136998
这个不解决前台启动问题。

后台可以在命令后面加&呀
Reply View the author
avatar
wangyong
deepin
2017-04-06 02:15
#9
你在终端中选择文件名后右键选择打开
Reply View the author
avatar
ldsink
deepin
2017-04-06 03:51
#10
https://bbs.deepin.org/post/136998
后台可以在命令后面加&呀

你那可以么? 我这 nohup + & 都没用。
Reply View the author
avatar
lwj10011
deepin
2017-04-06 04:19
#11
https://bbs.deepin.org/post/136998
你那可以么? 我这 nohup + & 都没用。

以前用的ubuntu可以,你这么一说我还真没再深度上试过,回家用深度试试,不过这个应该是linux通用的东西吧
Reply View the author
avatar
wangyong
deepin
2017-04-06 10:18
#12
楼主看我操作
Reply View the author
avatar
海天鹰
deepin
2017-04-06 17:43
#13

这彩蛋隐藏得好深!
Reply View the author
avatar
海天鹰
deepin
2017-04-06 17:45
#14
https://bbs.deepin.org/post/136998
别名可以自己用 alias open='dde-file-manager' 添加到 $HOME/.bashrc 文件里,或自己新建 .bash_aliases  ...

DFM 这个简称,我看不错。
Reply View the author
avatar
ldsink
deepin
2017-04-06 18:06
#15

谢谢,这个小功能了解了!

但是我试了一下。这个还是无法打开当前目录。子目录才有效。
Reply View the author
avatar
lwj10011
deepin
2017-04-10 03:41
#16
https://bbs.deepin.org/post/136998
你那可以么? 我这 nohup + & 都没用。

的确没用,,,,怎么回事
Reply View the author
avatar
lwj10011
deepin
2017-04-10 03:43
#17

威武,学习了,文件也可以打开
Reply View the author
avatar
152******09
deepin
2017-08-08 20:41
#18
果然很神奇 。。太棒了。
Reply View the author