Skip to content

Commit

Permalink
初步完成弹出shell菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnux committed Nov 16, 2022
1 parent db3329d commit 223a855
Show file tree
Hide file tree
Showing 8 changed files with 719 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ crate-type = ["cdylib"]

[build-dependencies]
embed-resource = "1"
cc = "1.0"
6 changes: 6 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,9 @@
# 4.开启win10的dark mode(emacs29版本自带,适合29以下版本)
调用`(pop-select/ensure-all-window-dark-mode)`即可,不过目前标题可能不会立即刷新,建议加个`(w32-send-sys-command #xf030)`最大化就可以了

# 5.弹出shell右键菜单
```
(pop-select/popup-shell-menu PATH X Y)
```
PATH即路径,目录/文件都可以,X、Y即屏幕座标,如何都是0,那么会在当前鼠标指针位置弹出。
我是拿来配合dired使用
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

fn main() {
embed_resource::compile("src/res.rc");
cc::Build::new().define("UNICODE", "1").file("src/ShellMenu.cpp").file("src/shellmenu_wrap.cpp").compile("foo");
}
Loading

0 comments on commit 223a855

Please sign in to comment.