mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-30 09:19:23 -05:00
better back/forward navigation WIP
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user