Register Guidelines E-Books Today's Posts Search

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

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 08-23-2018, 11:05 AM   #1
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 79
Karma: 228
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, 02:54 PM   #2
BeckyEbook
Guru
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: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
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, 03: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: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,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, 12:57 PM   #4
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 79
Karma: 228
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, 03: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: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,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, 04: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: 27,547
Karma: 193191846
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, 04: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: 35,356
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, 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:	278
Size:	88.7 KB
ID:	165834  
DNSB is offline  
Old 08-24-2018, 04: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: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,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, 04: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: 27,547
Karma: 193191846
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, 06: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: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
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, 07:26 PM   #11
BetterRed
null operator (he/him)
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: 20,565
Karma: 26954694
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 07:29 PM.
BetterRed is online now  
Old 08-24-2018, 11:45 PM   #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: 43,850
Karma: 22666666
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, 07:40 AM   #13
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 79
Karma: 228
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, 07: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: 27,547
Karma: 193191846
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 07:59 AM.
DiapDealer is offline  
Old 08-25-2018, 10: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: 43,850
Karma: 22666666
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


Forum Jump

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


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


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