Feat/text search (#3075)

* Added persistent text box search

* Toggle search box now working

* Restyled search box

* Linter and bug squashing

* Added multi OS hotkey support

* PR changes as requested

* Added ability to use escape button to close search field

* Woops forgot key mapping on non mac platforms

* fixed bug where escape would open up search window

* Removal of unused vars that died in conflict
This commit is contained in:
Brandon Lee Dring 2019-09-23 10:37:22 -07:00 committed by Benjamin Staneck
parent 67a1fc4dbb
commit 5bc8e0b1e8
14 changed files with 187 additions and 3 deletions

View file

@ -1,6 +1,7 @@
import Terms from '../components/terms';
import {connect} from '../utils/plugins';
import {resizeSession, sendSessionData, setSessionXtermTitle, setActiveSession} from '../actions/sessions';
import {resizeSession, sendSessionData, setSessionXtermTitle, setActiveSession, onSearch} from '../actions/sessions';
import {openContextMenu} from '../actions/ui';
import getRootGroups from '../selectors';
@ -61,6 +62,9 @@ const TermsContainer = connect(
onActive(uid) {
dispatch(setActiveSession(uid));
},
toggleSearch(uid) {
dispatch(onSearch(uid));
},
onContextMenu(uid, selection) {
dispatch(setActiveSession(uid));