Commit Graph

307 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
507e21f84e Rename word-togglecase to word-invertcase.
As suggested by Jürgen.
2024-10-15 17:36:19 +02:00
Jean-Marc Lasgouttes
afc524da3f Add LFUN_WORD_TOGGLECASE (word-togglecase)
The new function word-togglecase is a companion of word-upcase and
word-lowcase: it toggles each character between lowcase and upcase,
which is useful when one FORGOT THE cAPS lOCK KEY.

Add bindings (except for emacs) and a menu entry.
2024-10-14 18:19:09 +02:00
Jean-Marc Lasgouttes
6c20e5db7d Add ScrollType BOTTOM and TOGGLE for BufferView::scrollToCursor()
BOTTOM shows the paragraph containing the cursor at the bottom of the
work area.

TOGGLE does CENTER, then TOP, BOTTOM and finally cycles to CENTER.
This is a feature copied from emacs's C-l binding.

Add new argument "caret" to lfun "scroll" that can be used like
  scroll caret center

Change the keys (either C-l, M-l or F5) bound to screen-recenter to
"scroll caret toggle".

As an experiment, change paragraph-goto to use this scrolling method.
This can be tested when going to a heading in the outline pane.
2024-09-06 12:21:42 +02:00
Richard Kimberly Heck
8655c83a90 Fix bug #13028.
Bindings for 'join lines.
2024-06-09 14:13:12 -04:00
Pavel Sanda
de781a7cff Some comments into bind file 2024-06-05 20:42:10 +02:00
Richard Kimberly Heck
e51cca2ef0 Add shortcut for plain single quote.
(cherry picked from commit d3101e6d6f)
2024-04-01 17:28:22 -04:00
Richard Kimberly Heck
e8bf672eba Update bind format 2024-01-11 11:07:41 -05:00
Jean-Marc Lasgouttes
b3bf838248 fix comment 2023-10-24 13:48:57 +02:00
Stephan Witt
743c4c7e47 #11765 map Command-w like modern apps do - close current view - on Mac 2023-08-06 17:07:57 +02:00
Kornel Benko
bf69b7b3a7 Add 'tab-group-next' to emacs.bind
Theis resembles the shortcut "other-window" in emacs.
(Suggestion comes from Christopher Menzel)
2023-07-07 10:51:51 +02:00
Jean-Marc Lasgouttes
6572a3f141 Fix bindings for ellipsis and end-of-sentence-period
On some keyboards, `period' is only accessible with the shift modifier.
2023-03-15 19:04:36 +01:00
Jean-Marc Lasgouttes
ff1ddf6251 Fixup 71623b88: change semantics of "delete" LFUNs again
Instead of specifying "force" to disable the deletion protection
mechanism, invert the default so that "confirm" is needed to activate
it. The idea is to keep the lfun reasonable for scripting and add a
special argument for interactive use.

Document in release notes.

Update LFUN.lyx documentation

Update bind files.

Add conversion step to prefs2prefs_lfun.py.
2022-12-04 21:13:51 +01:00
Daniel Ramoeller
2d01fcd079 Activate another tab group (aka split view)
Bind the new functions tab-group-next/previous to F6/S-F6 in CUA bindings.

Fix for #12115.
2022-11-27 18:52:05 +01:00
Juergen Spitzmueller
315d347d3e Include he/cua.bind (#12052)
To allow for its use, we add support to include a bind file from the
top dir (i.e., non-localized) via \bind_file ../<file>
2022-11-27 16:30:21 +01:00
Juergen Spitzmueller
10ad1670f7 Correct documentation of localized bind files
These are in subfolders nowadays (no more lang_ prefix)
2022-11-25 11:26:29 +01:00
Pavel Sanda
f34db97500 Bring search-string-set back, someone actually wants this ;) 2021-02-16 15:08:19 +01:00
Pavel Sanda
597e832fd6 Revert the mac-style binding 2021-02-16 13:50:55 +01:00
Juergen Spitzmueller
222d62312e use dialog-show with search dialogs
Now that focus setting works, and since find dialog can be closed with
Esc, this makes sense to get back from workarea to dialog.
2021-02-16 13:35:04 +01:00
Stephan Witt
80f855581c Revert "#8055 use standard shortcut for font-emph on Mac"
This reverts commit a9342ae098.
2021-02-15 16:37:14 +01:00
Kornel Benko
6212d939b4 Use same find-dialogs as other bind-files also for x?emacs 2021-02-15 11:01:51 +01:00
Stephan Witt
a9342ae098 #8055 use standard shortcut for font-emph on Mac 2021-02-15 09:35:31 +01:00
Juergen Spitzmueller
780cd7735c Bind search-string-set to Ctrl-F3 in cua 2021-02-15 09:07:59 +01:00
Stephan Witt
a476cc4839 #8055 add support for system-wide find buffer on Mac
Command-E is standard for paste to find buffer on Mac. That's why the key binding is changed appropriately.
2021-02-14 18:56:25 +01:00
Richard Kimberly Heck
29d77c1a40 Change bookmark-save bindings. Use S-F3 for word-find-backwards. 2021-02-14 11:22:22 -05:00
Juergen Spitzmueller
2baa3a46a6 Transform simple search dialog to dock widget (#2625)
Also solves #8054
2021-02-14 17:18:00 +01:00
Juergen Spitzmueller
9b6899365a cua: add binding for word-find-backwards 2021-02-13 07:57:32 +01:00
Thibaut Cuvelier
17d5f6e0fc Zoom using Ctrl+something instead of Alt+something.
Mailing list:
[Windows] Remove the default binding between buffer-zoom and Alt+0
2021-02-12 23:09:21 +01:00
Kornel Benko
9b79c639f7 SK-Bindings: remove a binding prohibiting the use as a prefix 2021-01-29 16:05:54 +01:00
Yuriy Skalko
4e92c34200 Add bindings for Russian keyboard layout (same keys as English) 2021-01-04 12:01:15 +02:00
Richard Kimberly Heck
e72a6e4e05 Update bind etc files 2020-12-29 12:03:46 -05:00
Richard Kimberly Heck
6b86a5a395 Bind new template dialog to template shortcut (bug 11996).
From Daniel.
2020-10-08 22:02:15 -04:00
Scott Kostyshak
386aba099b Add bind to Insert > Separated <Environment> Above
The binding <Alt + p, Shift + Return> is already used for
environment-split outer, so we bind <Alt + p, Alt + Return>
to environment-split before.
2020-05-23 14:36:59 -04:00
Kornel Benko
701c6a6287 Add "inset-settings" shortcut to sk/menus.bind 2020-04-07 11:52:58 +02:00
Juergen Spitzmueller
fe09ddf1b9 Implement buffer-write force 2020-03-31 08:01:17 +02:00
Stephan Witt
46596455db #11767 improved default binding on Mac for window-close 2020-03-08 13:33:30 +01:00
Jean-Marc Lasgouttes
0b5ce4b5ba Fixup cf9827df: do not forget keyboard bindings and docs
Keyboard bindings are easy. For lfun icons in documentation, both the UserGuide and Tutorial have to be updated. Since this will have to be done again once the documentation is imported from branch, I list them here for reference:

For the lib/doc/ directory:
find . -name 'Tutorial.lyx' | xargs sed -i 's/"layout List"/"layout Labeling"/g'
find . -name 'UserGuide.lyx' | xargs sed -i 's/"layout List"/"layout Labeling"/g'
and then
find . -name 'Tutorial.lyx' | xargs sed -i 's/"layout \(Itemize\|Description\|Labeling\|Enumerate\|List\)"/"layout-toggle \1"/g'
find . -name 'UserGuide.lyx' | xargs sed -i 's/"layout \(Itemize\|Description\|Labeling\|Enumerate\|List\)"/"layout-toggle \1"/g'

Related to bug #11770.
2020-03-04 14:07:03 +01:00
Stephan Witt
90079857fe Provide predefined key binding for LFUN "forward-search" on Mac 2020-02-22 12:24:41 +01:00
Scott Kostyshak
9ab9f2b1ac Tab binding: outline-in before depth-increment
Same for BackTab. The outline-in was originally (31398779)
introduced to the command-sequence at the end. Probably it was
placed at the end to be conservative (i.e., so that it would only
change behavior where there was a no-op before).

This fixes #11576.
2019-05-16 13:58:24 -04:00
Daniel Ramoeller
990f1eca4a Fix for Mac Command-0 zoom-buffer binding
Amends fix to #10455
2019-04-04 17:02:24 +02:00
Juergen Spitzmueller
4bd4bfb34c centralize attic 2019-03-26 15:41:32 +01:00
Juergen Spitzmueller
ed79f2cab2 whitespace 2018-12-27 11:23:40 +01:00
Kornel Benko
676318115a Added some char styles to sk/menus.bind 2018-09-27 08:36:55 +02:00
Kornel Benko
fd50c8e4d8 Unbind conflicting shortcut in Slovak UI 2018-09-12 00:38:38 +02:00
Enrico Forestieri
b277ac5390 Update format of bind and ui files 2018-08-30 21:56:26 +02:00
Kornel Benko
41d86ff9e1 Amend 8da02501, Add bindings for inset-settings
Added binding to emacs.bind too
2018-07-07 11:29:40 +02:00
Kornel Benko
25ff03d120 Cmake tests: Adapt some keytests due to changed key-bindings 2018-06-23 19:00:04 +02:00
Richard Kimberly Heck
8da025014d Add bindings for inset-settings.
Fixes #7762.
2018-04-22 23:56:17 -04:00
Juergen Spitzmueller
2907160fff Introduce environment-split previous
This one checks for an environment in the previous paragraph (outside
the nesting scope).
2017-12-28 12:28:01 +01:00
Kornel Benko
3dcb317c39 Add menus.bind for Slovak UI. 2017-12-12 20:44:05 +01:00
Juergen Spitzmueller
4feca4fb4a Add binding for post argument 1. 2017-05-26 09:39:15 +02:00