Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[59_25] Remove quosiquote related keybinding in text mode #1721

Merged
merged 5 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions TeXmacs/progs/init-beamer.scm
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@

;;(display "Booting text mode\n")
(lazy-keyboard (text text-kbd) in-text?)
(lazy-keyboard (text text-kbd-utf8) in-text?)
(lazy-menu (text text-menu) text-format-menu text-format-icons
text-menu text-block-menu text-inline-menu
text-icons text-block-icons text-inline-icons)
Expand Down
1 change: 1 addition & 0 deletions TeXmacs/progs/init-code.scm
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@

;;(display "Booting text mode\n")
(lazy-keyboard (text text-kbd) in-text?)
(lazy-keyboard (text text-kbd-utf8) in-text?)
(lazy-menu (text text-menu) text-format-menu text-format-icons
text-menu text-block-menu text-inline-menu
text-icons text-block-icons text-inline-icons)
Expand Down
1 change: 1 addition & 0 deletions TeXmacs/progs/init-draw.scm
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@

;;(display "Booting text mode\n")
(lazy-keyboard (text text-kbd) in-text?)
(lazy-keyboard (text text-kbd-utf8) in-text?)
(lazy-menu (text text-menu) text-format-menu text-format-icons
text-menu text-block-menu text-inline-menu
text-icons text-block-icons text-inline-icons)
Expand Down
1 change: 1 addition & 0 deletions TeXmacs/progs/init-research.scm
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@

;;(display "Booting text mode\n")
(lazy-keyboard (text text-kbd) in-text?)
(lazy-keyboard (text text-kbd-utf8) in-text?)
(lazy-menu (text text-menu) text-format-menu text-format-icons
text-menu text-block-menu text-inline-menu
text-icons text-block-icons text-inline-icons)
Expand Down
24 changes: 24 additions & 0 deletions TeXmacs/progs/text/text-kbd-utf8.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; MODULE : text-kbd-utf8.scm
;; DESCRIPTION : keystrokes in text mode
;; COPYRIGHT : (C) 2024 Darcy Shen
;;
;; This software falls under the GNU general public license version 3 or later.
;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(texmacs-module (text text-kbd-utf8)
(:use (generic generic-kbd)
(utils edit auto-close)
(text text-edit)))

(kbd-map
(:mode in-text?)
("<" "<less>")
(">" "<gtr>")
("< var" "<#2039>")
("> var" "<#203A>"))
6 changes: 0 additions & 6 deletions TeXmacs/progs/text/text-kbd.scm
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@
("\"" (insert-quote))
("\" var" "\"")
("- var" (make 'nbhyph))
("<" "<less>")
(">" "<gtr>")
("< var" "")
("> var" "")
("`" "<#2018>")
("'" (insert-apostrophe #f))
("` var" "`")
("' var" (insert-apostrophe #t))

("< <" "")
Expand Down
2 changes: 1 addition & 1 deletion src/Edit/Interface/edit_keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ edit_interface_rep::handle_keypress (string key_u8, time_t t) {
else if (gkey == "less") gkey= "<";

if (key_u8 == "`") {
call ("insert", "<#2018>");
call ("keyboard-press", object (key_u8), object ((double) t));
}
else if (key_u8 == "“”") {
call ("insert", "<#201C><#201D>");
Expand Down
Loading