mirror of https://github.com/lapce/lapce.git
send user HOME dir from proxy to editor (#2056)
* send user HOME dir from proxy to editor * update changelog
This commit is contained in:
parent
5b2d412fc8
commit
0e18acbde5
|
@ -29,6 +29,7 @@
|
|||
- [#1939](https://github.com/lapce/lapce/pull/1939): Fix saving/editing newly saved-as files
|
||||
- [#1971](https://github.com/lapce/lapce/pull/1971): Fix up/down movement on first/last line
|
||||
- [#2036](https://github.com/lapce/lapce/pull/2036): Fix movement on selections with up/down arrow keys
|
||||
- [#2056](https://github.com/lapce/lapce/pull/2056): Fix default directory of remote session file picker
|
||||
|
||||
## 0.2.5
|
||||
|
||||
|
|
|
@ -95,6 +95,13 @@ fn handle_notification(&mut self, rpc: ProxyNotification) {
|
|||
plugin_rpc.mainloop(&mut plugin);
|
||||
});
|
||||
self.core_rpc.proxy_connected();
|
||||
|
||||
// send home directory for initinal filepicker dir
|
||||
let dirs = directories::UserDirs::new();
|
||||
|
||||
if let Some(dirs) = dirs {
|
||||
self.core_rpc.home_dir(dirs.home_dir().into());
|
||||
}
|
||||
}
|
||||
OpenPaths { folders, files } => {
|
||||
self.core_rpc.notification(CoreNotification::OpenPaths {
|
||||
|
|
|
@ -300,6 +300,10 @@ pub fn close_terminal(&self, term_id: TermId) {
|
|||
pub fn update_terminal(&self, term_id: TermId, content: Vec<u8>) {
|
||||
self.notification(CoreNotification::UpdateTerminal { term_id, content });
|
||||
}
|
||||
|
||||
pub fn home_dir(&self, path: PathBuf) {
|
||||
self.notification(CoreNotification::HomeDir { path });
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for CoreRpcHandler {
|
||||
|
|
Loading…
Reference in New Issue