]>
git.lyx.org Git - lyx.git/log
Kornel Benko [Fri, 22 Jan 2021 16:03:54 +0000 (17:03 +0100)]
FindAdv: Do not search in deleted text.
Yuriy Skalko [Sun, 10 Jan 2021 11:27:40 +0000 (13:27 +0200)]
Update Development.lyx
Juergen Spitzmueller [Fri, 22 Jan 2021 09:34:41 +0000 (10:34 +0100)]
Prevent more local colors from leaking (#6626)
Richard Kimberly Heck [Thu, 21 Jan 2021 21:51:11 +0000 (16:51 -0500)]
Shortcut for custom insets
Kornel Benko [Thu, 21 Jan 2021 12:39:25 +0000 (13:39 +0100)]
FindAdv: Fix backward search and search for special char '{' and '}'
Change effects mostly searches with ignored format search.
Backwards search is much slower, but at least more or less working.
Juergen Spitzmueller [Thu, 21 Jan 2021 08:04:29 +0000 (09:04 +0100)]
Do not paint change mark for individual table cell insets (#12077)
Yuriy Skalko [Sat, 9 Jan 2021 12:13:57 +0000 (14:13 +0200)]
Update Russian localization
Juergen Spitzmueller [Thu, 21 Jan 2021 07:09:41 +0000 (08:09 +0100)]
Prevent branch background color from leaking out of the document
This is assured by a unique branchlist ID that is now part of the branch
color name
Kornel Benko [Wed, 20 Jan 2021 16:09:08 +0000 (17:09 +0100)]
Amend
c041bb66 : Unintended debug output slipped in
Juergen Spitzmueller [Wed, 20 Jan 2021 16:05:10 +0000 (17:05 +0100)]
Account for spaces in paths to templates (#12082)
Juergen Spitzmueller [Wed, 20 Jan 2021 13:15:48 +0000 (14:15 +0100)]
Do not rely on hardcoded color when determining boxbgcolor
Juergen Spitzmueller [Wed, 20 Jan 2021 12:58:24 +0000 (13:58 +0100)]
Do not rely on hardcoded color when determining notefontcolor
Juergen Spitzmueller [Wed, 20 Jan 2021 12:57:44 +0000 (13:57 +0100)]
Set LaTeX color for notefontcolor (#9283)
Juergen Spitzmueller [Wed, 20 Jan 2021 12:55:48 +0000 (13:55 +0100)]
Ass method to add a latexname to a local color (needed for #9283)
Kornel Benko [Wed, 20 Jan 2021 11:24:33 +0000 (12:24 +0100)]
FindAdv: Fix interpretation of match-results
Since commit
c600906d92d all matches are match-results of examined strings starting
with a character of the same cursor depth, we can be sure to match the same string again if:
1.) the number of characters to the end of the examined strings match.
2.) the match-lengths are identical
Juergen Spitzmueller [Wed, 20 Jan 2021 11:06:22 +0000 (12:06 +0100)]
Correct disabled graphics scale string (#9443)
Juergen Spitzmueller [Wed, 20 Jan 2021 10:14:24 +0000 (11:14 +0100)]
Final touch on lyxgreyedout
Juergen Spitzmueller [Wed, 20 Jan 2021 10:04:16 +0000 (11:04 +0100)]
Further simplification of lyxgreyedout definition
Also fix an issue in RTL/LuaTeX
Juergen Spitzmueller [Wed, 20 Jan 2021 09:28:33 +0000 (10:28 +0100)]
Centralize lyxgreyedout definition with RTL and polish LaTeX output
Kornel Benko [Wed, 20 Jan 2021 08:39:03 +0000 (09:39 +0100)]
CMake: in Hunspell ABI check only link if external
(Thanks Scott for the patch and comment)
For the HAVE_HUNSPELL_CXXABI check, only test a (real) link command
if an external libhunspell is used or if macOS is used (see
350a9daf ). If the bundled libhunspell is used, it has not been built
yet at the point of the initial cmake command.
This commit fixes an issue when the bundled Hunspell is desired.
Before, the test command would still attempt to link to the system
hunspell library. Even if the system library is available, there
could be problems if there is a mismatch of the CXX ABI. And
finally, even if the system library is available and there is no
mismatch, compiling the test file with Clang and -stdlib=libc++
seems to cause a failure when linking with the system Hunspell
library.
Juergen Spitzmueller [Wed, 20 Jan 2021 07:59:52 +0000 (08:59 +0100)]
Use different color for change-tracked greyedout text (#12025)
We use a blended version of the normal lyxadded and lyxdeleted colors
Juergen Spitzmueller [Wed, 20 Jan 2021 07:05:17 +0000 (08:05 +0100)]
Comment
Juergen Spitzmueller [Wed, 20 Jan 2021 06:38:33 +0000 (07:38 +0100)]
Do not output tracked deleted paragraph break in listings (#10418)
Jean-Marc Lasgouttes [Tue, 19 Jan 2021 18:21:43 +0000 (19:21 +0100)]
Fix off-by-one condition when right clicking over selection
Fixes bug #10429.
Jean-Marc Lasgouttes [Tue, 19 Jan 2021 12:23:03 +0000 (13:23 +0100)]
Cleanup button handling in InsetInclude
The include inset has its own button_ object, that hides the button_
object of the InsetCommand parent. Remove that.
Remove the hand-made caching that uses the set_label_ boolean.
Let metrics() and draw() use the inherited methods. This requires to
use setBroken as needed and to implement inheritFont.
The use of InsetCommand::draw is what restores the hover effect.
Fixes bug #10415.
Juergen Spitzmueller [Tue, 19 Jan 2021 17:33:22 +0000 (18:33 +0100)]
update tex2lyx tests
Juergen Spitzmueller [Tue, 19 Jan 2021 17:29:36 +0000 (18:29 +0100)]
de.po
Kornel Benko [Tue, 19 Jan 2021 16:52:36 +0000 (17:52 +0100)]
FindAdv: Reduce the count of debug messages
Juergen Spitzmueller [Tue, 19 Jan 2021 16:04:04 +0000 (17:04 +0100)]
Branch: Implement separate static colors in dark mode
Set colors now apply to the active mode only. Matching reversed colors
are produced for the other mode if no color is assigned yet.
File format change.
Juergen Spitzmueller [Tue, 19 Jan 2021 12:27:45 +0000 (13:27 +0100)]
Consider darkmode when inserting new branch
Jean-Marc Lasgouttes [Tue, 19 Jan 2021 10:27:54 +0000 (11:27 +0100)]
Remove RenderButton::button_box_, which is unused.
Juergen Spitzmueller [Tue, 19 Jan 2021 08:22:07 +0000 (09:22 +0100)]
Update color table in branch list
Juergen Spitzmueller [Tue, 19 Jan 2021 08:21:36 +0000 (09:21 +0100)]
Add method to check whether LyX runs in dark mode
Juergen Spitzmueller [Tue, 19 Jan 2021 07:37:05 +0000 (08:37 +0100)]
Use isDarkMode() method
Kornel Benko [Mon, 18 Jan 2021 16:06:05 +0000 (17:06 +0100)]
FindAdv: Remove dead code
+ correct detection of backspaced '{' and '}' in regex with format search enabled
Kornel Benko [Mon, 18 Jan 2021 15:06:40 +0000 (16:06 +0100)]
FindAdv: Amend2
dacd2c45 : Handle search for '{' and '}'
Allow for using 'a{2,7}' to find 2 to 7 consecutive chars 'a'
Kornel Benko [Mon, 18 Jan 2021 11:26:29 +0000 (12:26 +0100)]
Update sk.po
Kornel Benko [Mon, 18 Jan 2021 11:17:57 +0000 (12:17 +0100)]
FindAdv: Amend
ec387b6d : Handle search for '{' and '}'
1) Take care of different input if changed the search-mode (with/without format)
This amends
ec387b6d
2) Make the braces used in text to be treated as single characters
e.g. transform '\braceleft' to some unicode value
3) Try to use '$' as 'end of sequence' in regex
We have to remove '}' and '\n' chars from the examined string
Juergen Spitzmueller [Mon, 18 Jan 2021 09:49:19 +0000 (10:49 +0100)]
Update tex2lyx tests
Juergen Spitzmueller [Mon, 18 Jan 2021 09:46:16 +0000 (10:46 +0100)]
Add option to revert graphics colors in dark mode (#12076)
This amends [
5d47a7ee57506 /lyxgit]
Juergen Spitzmueller [Mon, 18 Jan 2021 09:01:09 +0000 (10:01 +0100)]
Update tex2lyx tests
Juergen Spitzmueller [Mon, 18 Jan 2021 08:56:53 +0000 (09:56 +0100)]
Allow semantic colors in branches and use semantic background color by default
Addresses most crucial part of #12075
File format change
Kornel Benko [Mon, 18 Jan 2021 00:10:07 +0000 (01:10 +0100)]
FindAdv: Handle search for '{' and '}'
In format-search the chars '{' and '}' are understood as latex parentheses, which normally are not
part of text and are discarded.
Instead we fake them as if they were a char like \backslash or \guilemotright or such.
Juergen Spitzmueller [Sun, 17 Jan 2021 16:49:45 +0000 (17:49 +0100)]
Add some more hints to empty margin widgets (#11424)
Kornel Benko [Sun, 17 Jan 2021 13:30:34 +0000 (14:30 +0100)]
Cmake tests: findadv-01 - findadv-21 working
Tests 07 and 09 corrected because of not working
shortcuts in cua env using sk/menus.bind.
Kornel Benko [Sun, 17 Jan 2021 12:30:43 +0000 (13:30 +0100)]
FindAdv: Optimizing forward search
Still not as fast as quick search
Also started to remove some unused code.
Juergen Spitzmueller [Sun, 17 Jan 2021 10:03:21 +0000 (11:03 +0100)]
Try to automatically handle transparent pictures in darkmode (#12076)
We'll see how this plays in practice.
Juergen Spitzmueller [Sun, 17 Jan 2021 09:18:45 +0000 (10:18 +0100)]
Extend non-default margins tooltip (#11424)
Thibaut Cuvelier [Sat, 16 Jan 2021 19:42:14 +0000 (20:42 +0100)]
\96 Stop using \vdag in AASTeX 6.2 example
Kornel Benko [Fri, 15 Jan 2021 16:13:07 +0000 (17:13 +0100)]
Make some findadv-tests working again, more to follow
Some shortcuts in cua do not work anymore
so replacing them with virtual shortcus for tests only
seems a good way.
Kornel Benko [Fri, 15 Jan 2021 16:09:18 +0000 (17:09 +0100)]
FindAdv: Search for innermost depth needed if matched string not inside some other inset.
Richard Kimberly Heck [Fri, 15 Jan 2021 16:11:40 +0000 (11:11 -0500)]
Keep dialog connected to cross-ref inset after Apply.
This does not actually have any effect yet, due to the fact that
disconnectAfterApply returns true (and this is a GuiDialog).
Richard Kimberly Heck [Fri, 15 Jan 2021 16:11:25 +0000 (11:11 -0500)]
Keep dialog connected to External inset after Apply
Richard Kimberly Heck [Fri, 15 Jan 2021 16:11:14 +0000 (11:11 -0500)]
Keep dialog connected to BibTeX inset after Apply
Richard Kimberly Heck [Fri, 15 Jan 2021 16:10:44 +0000 (11:10 -0500)]
Revert unintended commit from before
Pavel Sanda [Fri, 15 Jan 2021 13:50:18 +0000 (14:50 +0100)]
Update of signatures homekeeping.
Kornel Benko [Fri, 15 Jan 2021 10:36:14 +0000 (11:36 +0100)]
Replace calls from make_unique to lyx::make_unique
After advice from Yuriy Skalko to satisfy compilation with clang8
Juergen Spitzmueller [Fri, 15 Jan 2021 08:30:15 +0000 (09:30 +0100)]
Kornel Benko [Thu, 14 Jan 2021 22:25:58 +0000 (23:25 +0100)]
FindAdv: Discard the optional arguments of \part, \chapter, ...
Not easy selectable anyway, and hard to use while searching.
Richard Kimberly Heck [Thu, 14 Jan 2021 19:20:55 +0000 (14:20 -0500)]
Try to catch some other cases of inappropriate TOC updating in internal bufers.
Richard Kimberly Heck [Thu, 14 Jan 2021 19:17:51 +0000 (14:17 -0500)]
Fix crash reported by Kornel.
See https://marc.info/?l=lyx-devel&m=
161058233016780 &w=2.
Internal Buffers do not have TOCs associated with them, so we should
not try to update them. This fixes Kornel's crash, but there may be
other instances of the problem.
Richard Kimberly Heck [Thu, 14 Jan 2021 19:07:26 +0000 (14:07 -0500)]
Add theorem counter files to distribution
Juergen Spitzmueller [Thu, 14 Jan 2021 16:17:58 +0000 (17:17 +0100)]
Fix crash (missing Buffer update)
Kornel Benko [Thu, 14 Jan 2021 13:44:21 +0000 (14:44 +0100)]
FindAdv: Add handling of regex char '^' at start also for search with disabled format
lyxfind.cpp:
handle \mathcircumflex inside regex
output_latex.cpp:
don't mark extra end of parameters if no options involved
Kornel Benko [Thu, 14 Jan 2021 13:33:55 +0000 (14:33 +0100)]
Fix #12069: Broken search
Do not count ignored characters as matching
Richard Kimberly Heck [Thu, 14 Jan 2021 09:31:48 +0000 (04:31 -0500)]
Forgot FORMAT
Juergen Spitzmueller [Thu, 14 Jan 2021 08:12:23 +0000 (09:12 +0100)]
Update documentation of nomencl escape
Alas, the escape char has silently changed in recent nomencl versions
Richard Kimberly Heck [Thu, 14 Jan 2021 08:07:33 +0000 (03:07 -0500)]
Revert "Add move constructor and move assignment operator for FileName class"
For now, since it's causing problems on OSX particularly.
This reverts commit
854c9de8faf9eb357adc353fc9116996445d5e38 .
Juergen Spitzmueller [Thu, 14 Jan 2021 07:57:15 +0000 (08:57 +0100)]
Fix comment
Juergen Spitzmueller [Thu, 14 Jan 2021 07:55:15 +0000 (08:55 +0100)]
Strip % characters from nomenclWidest()
This character now (oddly) serves as escape char in newer nomencl versions
but it still comments out in all other contexts.
See #10634
Richard Kimberly Heck [Thu, 14 Jan 2021 06:28:42 +0000 (01:28 -0500)]
Whitespace
Richard Kimberly Heck [Thu, 14 Jan 2021 06:15:19 +0000 (01:15 -0500)]
Fix bug #12068
Richard Kimberly Heck [Wed, 13 Jan 2021 19:42:26 +0000 (14:42 -0500)]
Simplify and polish
Richard Kimberly Heck [Wed, 13 Jan 2021 19:38:48 +0000 (14:38 -0500)]
Fix bug #10635
Jean-Marc Lasgouttes [Wed, 13 Jan 2021 10:41:29 +0000 (11:41 +0100)]
Record undo properly when inserting math script
The current code did not always record undo at the right level.
Fixes bug #10843.
Juergen Spitzmueller [Wed, 13 Jan 2021 07:19:54 +0000 (08:19 +0100)]
Simple Search: find isChar() insets (#11462)
Kornel Benko [Tue, 12 Jan 2021 18:33:29 +0000 (19:33 +0100)]
FindAdv: Refactoring some routines which was hard to understand
Most of the previous code is only commented out, will remove them completely later.
(Debugging this code was extremely exhausting)
Eugene Chornyi [Tue, 12 Jan 2021 16:33:44 +0000 (17:33 +0100)]
Wininstaller: remove (old) installer, installer2 becomes (new) installer
Juergen Spitzmueller [Tue, 12 Jan 2021 15:45:32 +0000 (16:45 +0100)]
Consider inset strings in simple find/replaceAll (#12049)
Juergen Spitzmueller [Tue, 12 Jan 2021 15:13:47 +0000 (16:13 +0100)]
Ignore tracked deletions in simple replace (#11194)
Juergen Spitzmueller [Tue, 12 Jan 2021 15:11:58 +0000 (16:11 +0100)]
Ignore tracked deletions in simple find (#11051)
Kornel Benko [Mon, 11 Jan 2021 13:50:03 +0000 (14:50 +0100)]
FindAdv: Allow regex searches at start of paragraph
For example regex '^\w+' finds now only the first word in any paragraph
even if searching without 'ignore format' is set.
Kornel Benko [Sun, 10 Jan 2021 22:31:08 +0000 (23:31 +0100)]
Update sk.po
Kornel Benko [Sun, 10 Jan 2021 21:58:58 +0000 (22:58 +0100)]
FindAdv: Search for 'whole words' with help of modified regex.
Stephan Witt [Sun, 10 Jan 2021 21:02:53 +0000 (22:02 +0100)]
drop unintented static declaration from local temporary variable (formerly a global static constant)
Kornel Benko [Sun, 10 Jan 2021 16:17:37 +0000 (17:17 +0100)]
FindAdv: Converting patterns without regex to use regex instead
Makes the code with less exceptions
(no need to differentiate beteen use_regex and !use_regex)
Move the creation of regexes to own subroutine (Handles '#if QTSEARCH ... #endif')
Use cursor position differences instead of length of matched string. This is important for putSelectionAt()
Juergen Spitzmueller [Sun, 10 Jan 2021 08:55:45 +0000 (09:55 +0100)]
Avoid \@ifundefined after user preamble
Users might have used \makeatother (#11163).
\ifdefined (of e-tex) can be considered available nowadays.
Richard Kimberly Heck [Sun, 10 Jan 2021 07:40:12 +0000 (02:40 -0500)]
Fix bug #6128.
Richard Kimberly Heck [Sun, 10 Jan 2021 07:08:18 +0000 (02:08 -0500)]
Fix problem with display of include insets with non-existent files.
Richard Kimberly Heck [Sun, 10 Jan 2021 06:50:01 +0000 (01:50 -0500)]
Count words in hyperlink
Richard Kimberly Heck [Sun, 10 Jan 2021 06:43:34 +0000 (01:43 -0500)]
Fix bug #5972: Count words in citations (approximately).
Richard Kimberly Heck [Sun, 10 Jan 2021 05:43:01 +0000 (00:43 -0500)]
Fix bug #3205.
Allows external edit of non-existent files.
Richard Kimberly Heck [Sun, 10 Jan 2021 03:17:52 +0000 (22:17 -0500)]
Fix bug #4241: Addition to Intro
Richard Kimberly Heck [Sun, 10 Jan 2021 01:33:23 +0000 (20:33 -0500)]
Fix bug #11030.
Factor out the code that connects to a newly created dialog and then
use that also in GuiGraphics.
There must be many other dialogs that need this same treatment....
Richard Kimberly Heck [Sun, 10 Jan 2021 00:17:47 +0000 (19:17 -0500)]
Fix bug #11010.
Handle LFUN_PHANTOM_INSERT in math.
Richard Kimberly Heck [Sun, 10 Jan 2021 00:02:19 +0000 (19:02 -0500)]
nullptr
Richard Kimberly Heck [Sat, 9 Jan 2021 23:06:50 +0000 (18:06 -0500)]
Show plural and caps status for formatted references. Rest of #11073.
Patch from Daniel, more or less.
Richard Kimberly Heck [Sat, 9 Jan 2021 22:59:07 +0000 (17:59 -0500)]
Update buffer after changing reference options. Part of #11073.
Richard Kimberly Heck [Sat, 9 Jan 2021 22:41:42 +0000 (17:41 -0500)]
Fix bug #11097
Scott Kostyshak [Sat, 9 Jan 2021 18:01:26 +0000 (13:01 -0500)]
ctests: invert old lyx2lyx tests for ar Beamer
This is consistent with the lyx2lyx tests for Beamer in other
languages.