2018-03-26 01:02:39 +08:00
|
|
|
import addLink from '../dialogs/add_link.js';
|
|
|
|
import editTreePrefix from '../dialogs/edit_tree_prefix.js';
|
|
|
|
import eventLog from '../dialogs/event_log.js';
|
|
|
|
import jumpToNote from '../dialogs/jump_to_note.js';
|
|
|
|
import labelsDialog from '../dialogs/labels.js';
|
|
|
|
import noteHistory from '../dialogs/note_history.js';
|
|
|
|
import noteSource from '../dialogs/note_source.js';
|
|
|
|
import recentChanges from '../dialogs/recent_changes.js';
|
|
|
|
import recentNotes from '../dialogs/recent_notes.js';
|
|
|
|
import settings from '../dialogs/settings.js';
|
|
|
|
import sqlConsole from '../dialogs/sql_console.js';
|
2018-03-24 23:18:46 +08:00
|
|
|
|
2018-03-25 23:09:17 +08:00
|
|
|
import cloning from './cloning.js';
|
|
|
|
import contextMenu from './context_menu.js';
|
|
|
|
import dragAndDropSetup from './drag_and_drop.js';
|
|
|
|
import exportService from './export.js';
|
|
|
|
import link from './link.js';
|
|
|
|
import messaging from './messaging.js';
|
2018-03-26 01:02:39 +08:00
|
|
|
import noteDetail from './note_detail.js';
|
2018-03-25 23:09:17 +08:00
|
|
|
import noteType from './note_type.js';
|
|
|
|
import protected_session from './protected_session.js';
|
|
|
|
import ScriptApi from './script_api.js';
|
|
|
|
import ScriptContext from './script_context.js';
|
|
|
|
import sync from './sync.js';
|
|
|
|
import treeChanges from './tree_changes.js';
|
|
|
|
import treeUtils from './tree_utils.js';
|
|
|
|
import utils from './utils.js';
|
|
|
|
|
|
|
|
import searchTreeService from './search_tree.js';
|
|
|
|
import './init.js';
|
2018-03-26 01:41:29 +08:00
|
|
|
import treeService from './tree.js';
|
2018-03-24 23:18:46 +08:00
|
|
|
const $toggleSearchButton = $("#toggle-search-button");
|
|
|
|
|
2018-03-25 23:09:17 +08:00
|
|
|
$toggleSearchButton.click(searchTreeService.toggleSearch);
|
|
|
|
bindShortcut('ctrl+s', searchTreeService.toggleSearch);
|
2018-03-24 23:18:46 +08:00
|
|
|
|
|
|
|
function bindShortcut(keyboardShortcut, handler) {
|
|
|
|
$(document).bind('keydown', keyboardShortcut, e => {
|
|
|
|
handler();
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
});
|
|
|
|
}
|