Wouldn't it be possible to implement a widget based on QTMTreeModel, so that text entry to it is a tree, and then (maybe) keys would work like in TeXmacs, and one could also enter trees into other dialogs (e.g. search/replace)?
Michael On 12 Jan 2014, at 9:58 , Miguel de Benito Delgado <m.debenit...@gmail.com> wrote: > Hi Kostas, > > sorry for the delay and glad to see you’re willing to help out. :) > > The problem is that the QTMLineWidget, which implements the line inputs uses > Qt standard shortcuts. Basically Joris says that in order to solve this it’s > best to ignore TeXmacs' keyboard shortcut system and hardcode a few standard > shortcuts for the line inputs in each “look and feel”. > > I think this is not such a great idea so he suggests we provide some method > for the user to change the shortcuts for those line inputs only. Probably > through standard preferences in preferences.scm. > > I think it’d be best if the QTMLineWidget used the current shortcuts (that it > can understand) to ensure consistency. This can be done calling (for instance > in the widget's constructor) the scheme function kbd-find-rev-binding. To > test it, in a scheme session type: > > (kbd-find-rev-binding "(kbd-end-line)") > > Notice that we use the string representation of the command, as given in the > kbd-map. You can see all relevant shortcuts in progs/generic/generic-kbd.scm. > > In Qt we need to reimplement the KeyEvent handler in QTMLineWidget and filter > those key presses configured for left, right, end, start, etc. > > If you finally find time to work on this don't hesitate to ask for help. > > Best, > -- > Miguel de Benito. > > > On Mon, Jan 6, 2014 at 11:58 PM, Kostas Oikonomou <k...@research.att.com> > wrote: > Hi Miguel, > > Glad to see you're the responsible party :-) > > I read the link you sent, and I am willing to help. (Though my abilities in > C++ are limited.) > As a first step, however, I am not sure exactly what is the solution you and > Joris have agreed upon. > Could you please summarize? > > I am not cc'ing the list, should I? > > Kostas > > > On 01/06/2014 13:04, Miguel de Benito Delgado wrote: >> Hi Kostas, >> >> this would be: >> >> https://savannah.gnu.org/bugs/index.php?40752 >> >> and yes, it is assigned to yours truly... Patches are welcome! ;-D >> >> -- >> Miguel de Benito. >> >> >> On Mon, Jan 6, 2014 at 4:46 PM, Kostas Oikonomou <k...@research.att.com> >> wrote: >> Hi, >> >> Given that the X version of TeXmacs seems to be on its way out, can someone >> comment on what it would take to make the minibuffer in the Qt version >> behave like the minibuffer of the X version? In particular, to have C-g >> work, and to have the ability to move around in the minibuffer line, and to >> edit it? >> >> In my view, minibuffer support is the only significant feature missing from >> the Qt version for it to be a compete replacement of the X version. >> >> Kostas >> > > > _______________________________________________ > Texmacs-dev mailing list > Texmacs-dev@gnu.org > https://lists.gnu.org/mailman/listinfo/texmacs-dev
_______________________________________________ Texmacs-dev mailing list Texmacs-dev@gnu.org https://lists.gnu.org/mailman/listinfo/texmacs-dev