better back/forward navigation WIP

This commit is contained in:
zadam
2020-03-08 11:41:42 +01:00
parent 5114f3f782
commit 5f4d963580
15 changed files with 813 additions and 460 deletions
@@ -138,11 +138,17 @@ export default class Entrypoints extends Component {
}
backInNoteHistoryCommand() {
window.history.back();
const electron = require('electron');
const {webContents} = electron.remote.getCurrentWindow();
webContents.goBack();
}
forwardInNoteHistoryCommand() {
window.history.forward();
forwardInNoteHistoryCommand() {console.log("forward");
const electron = require('electron');
const {webContents} = electron.remote.getCurrentWindow();
webContents.goForward();
}
async searchForResultsCommand({searchText}) {
@@ -117,6 +117,8 @@ export default class TabManager extends Component {
// it helps navigating in history if note title is included in the title
document.title += " - " + activeTabContext.note.title;
}
this.triggerEvent('activeNoteChanged');
}
}