<div dir="ltr"><div>Hi Steven,</div><div>great to hear you want to contribute to Okular.</div><div><br></div><div>I suggest you the method I use for locating the relevant areas of code for a particular feature/bug:</div><div>- Install ripgrep</div><div>- From the top level okular folder run `rg RELEVANT_SEARCH_TERM`, for example `rg TableSel` given that you are looking for something related to table selection or `rg Table` (a bit vague though).</div><div>- This leads us to ui/pageview.cpp (the file where we have more matches in this case)</div><div>- Open the file and search for 'TableSel' and have a look at the code in those areas to figure out what it does</div><div>- At this point try to search for something relevant in those areas, for example 'clipboard' or 'copy'<br></div><div>- At line 2866 there is the instruction `QClipboard *cb = QApplication::clipboard();` inside a switch case `Okular::Settings::EnumMouseMode::TableSelect` inside a method `PageView::mouseReleaseEvent(QMouseEvent *e)`. This seems the relevant area.</div><div>- Now put a breakpoint somewhere here and run the code, try to reproduce the bug and see if it does indeed happen here<br></div><div><br></div><div>I hope this helps.</div><div><br></div><div>If other developers have better methods to locate relevant areas of code, please share it.<br></div><div><br></div><div>Note:<br></div><div>You can achieve the same without ripgrep and using `grep -Ir RELEVANT_SEARCH_TERM`, it's just slower.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 5, 2020 at 10:42 PM stevengkc714 <<a href="mailto:stevengkc714@protonmail.com">stevengkc714@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hello. I'm new to contributing to KDE and I want to work on this issue in Okular: <a href="https://bugs.kde.org/show_bug.cgi?id=402110" target="_blank">https://bugs.kde.org/show_bug.cgi?id=402110</a>. The issue mentions changing the table select tool so that it only copies to the clipboard after pressing Ctrl+C. Where in the code would be a good place to implement this? Thanks in advance.<br></div></blockquote></div>