Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 08-23-2018, 12:05 PM   #1
Sam Sahara
Connoisseur
Sam Sahara began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2014
Device: lambda k21
Maybe a bug

Calibre 3.29 on Linux

Editor --> Saved searches --> Edit search (or Add search).

If you paste some text (copied elsewhere) into the Find or Replace panel, the text is added into the code editor, not into the panel with the cursor in it.

To me it seems a bug.

ss
Sam Sahara is offline  
Old 08-23-2018, 03:54 PM   #2
BeckyEbook
Zealot
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 138
Karma: 481790
Join Date: Jan 2017
Location: Poland
Device: Kindle (Key3, PW2, PW3), Nook (ST, GLP), Kobo Touch, Tolino Vision 2
I confirm.
Calibre 3.29 on Windows.
Ctrl-V works OK.
Shift-Insert paste text in code editor.
BeckyEbook is offline  
Old 08-23-2018, 04:18 PM   #3
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 1,458
Karma: 5435106
Join Date: Jun 2010
Device: Windows 10 tablet,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
More information Please. I just edited a saved search added test to both the search and replace panel--using copy paste by mouse-- pressed the Done button, then ran the search, works as expected found the searched for text and replaced it with the newly added text.

Using calibre 3.29 on Linux Mint 19.

bernie
Quote:
Originally Posted by Sam Sahara View Post
Calibre 3.29 on Linux

Editor --> Saved searches --> Edit search (or Add search).

If you paste some text (copied elsewhere) into the Find or Replace panel, the text is added into the code editor, not into the panel with the cursor in it.

To me it seems a bug.

ss
gbm is offline  
Old 08-24-2018, 01:57 PM   #4
Sam Sahara
Connoisseur
Sam Sahara began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2014
Device: lambda k21
Quote:
Originally Posted by gbm View Post
More information Please. I just edited a saved search added test to both the search and replace panel--using copy paste by mouse-- pressed the Done button, then ran the search, works as expected found the searched for text and replaced it with the newly added text.

Using calibre 3.29 on Linux Mint 19.

bernie
BeckyEbook said everything
Sam Sahara is offline  
Old 08-24-2018, 04:41 PM   #5
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 1,458
Karma: 5435106
Join Date: Jun 2010
Device: Windows 10 tablet,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Sam Sahara View Post
BeckyEbook said everything
Please post a screenshot of what you are doing, because editing saved searches is working as expected for me.

bernie
gbm is offline  
Old 08-24-2018, 05:02 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 19,326
Karma: 99454782
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Seems to me they're saying that while Ctrl+V pastes the contents of the clipboard into the field where the cursor is, Shift+Insert pastes the contents of the clipboard (or perhaps current selection on Linux) into the Code Editor (even though that's not where the cursor is).
DiapDealer is offline  
Old 08-24-2018, 05:14 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,209
Karma: 23054146
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
I took a look at this and have to agree with BeckyEbook. I opened a file in editor and had the code view and saved search open on screen. I copied random text and hit ctrl-V and it pasted into the saved search find: or replace: box depending on where the cursor was. I place the cursor in the find: or the replace: box and hit shift-Insert (on Windows, this is listed as equivalent to ctrl-V) and the text was pasted into the book code at the point where I had last placed the cursor -- if I don't click in the code view box, it pastes the text at the top of the page.

See attached image.
Attached Thumbnails
Click image for larger version

Name:	dummy.png
Views:	98
Size:	88.7 KB
ID:	165834  
DNSB is offline  
Old 08-24-2018, 05:23 PM   #8
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 1,458
Karma: 5435106
Join Date: Jun 2010
Device: Windows 10 tablet,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by DiapDealer View Post
Seems to me they're saying that while Ctrl+V pastes the contents of the clipboard into the field where the cursor is, Shift+Insert pastes the contents of the clipboard (or perhaps current selection on Linux) into the Code Editor (even though that's not where the cursor is).
Shift+Insert--I never use it but your are right.

How do you know when to use SHIFT+INSERT vs CTRL-V vs right-click-paste to paste?
bernie
gbm is offline  
Old 08-24-2018, 05:37 PM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 19,326
Karma: 99454782
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by gbm View Post
Shift+Insert--I never use it but your are right.
I don't use it either. I was just trying to help get everyone on the same page.
DiapDealer is offline  
Old 08-24-2018, 07:26 PM   #10
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 22,354
Karma: 22265700
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A, Kobo Aura2
IIRC I think I have run into something like this with the Character tool. It does not like to put it where the cursor (eg: search or replace) is.
W10 x64
theducks is offline  
Old 08-24-2018, 08:26 PM   #11
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 11,475
Karma: 10584684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by gbm View Post
<snip>
How do you know when to use SHIFT+INSERT vs CTRL-V vs right-click-paste to paste?
You don't, they're alternatives. On Windows they've been there since since 'forever', might have been inherited from IBM SAA CUA or Xerox Star even. Shift+Del is cut (to clipboard), I use both at lot - as well as Ctrl+V and Ctrl+C. I never cut and paste text with the mouse, too inaccurate for me.

BR

Last edited by BetterRed; 08-24-2018 at 08:29 PM.
BetterRed is online now  
Old 08-25-2018, 12:45 AM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,723
Karma: 10215826
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It works for me on linux with an up-to-date version of Qt. So hopefully it will be fixed automatically when calibre 4 is released which will use an up-to-date Qt. In the meantime use ctrl-v
kovidgoyal is offline  
Old 08-25-2018, 08:40 AM   #13
Sam Sahara
Connoisseur
Sam Sahara began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2014
Device: lambda k21
Quote:
Originally Posted by kovidgoyal View Post
It works for me on linux with an up-to-date version of Qt. So hopefully it will be fixed automatically when calibre 4 is released which will use an up-to-date Qt. In the meantime use ctrl-v
No, it's just a bug, en error in writing the behavior of the text component; it does not depend on the version of QT.

It's just an assignment in a line of code; If you ask to a good developer he can teach you how to change such a behavior.

In the meantime I'll wait for calibre 4 with so much hope.
Sam Sahara is offline  
Old 08-25-2018, 08:56 AM   #14
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 19,326
Karma: 99454782
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Sam Sahara View Post
No, it's just a bug, en error in writing the behavior of the text component; it does not depend on the version of QT.
Unless, of course, the bug is actually in Qt and has been fixed in a later version. Qt does handle the vast majority of calibre's clipboard management after all.

Last edited by DiapDealer; 08-25-2018 at 08:59 AM.
DiapDealer is offline  
Old 08-25-2018, 11:30 AM   #15
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,723
Karma: 10215826
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Sam Sahara View Post
It's just an assignment in a line of code; If you ask to a good developer he can teach you how to change such a behavior.

I'll just go do that then and while I'm doing that, I suggest you go ask a good witch doctor how to grow a brain, you seem to be lacking one.
kovidgoyal is offline  
Closed Thread

Tags
bug report, editor, saved searches

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this a bug? ramnagel Calibre 1 12-07-2017 06:26 AM
[BUG] - M96 out of memory - [BUG] Alf77 Onyx Boox 5 02-05-2015 12:47 PM
DR800 Help, I've got a bug!! A bug on my screen!! Franky iRex 4 06-21-2011 12:45 PM
Embedded font bug or CSS bug in ADE JSWolf ePub 10 06-11-2011 03:34 PM
PRS-505 bug or eBookLib bug? porkupan Sony Reader 3 10-07-2007 11:44 PM


All times are GMT -4. The time now is 03:38 AM.


MobileRead.com is a privately owned, operated and funded community.