• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Ectara

Qt Creator

5 posts in this topic

I've recently decided to try out Qt Creator, and while I'm impressed with its features, I'm very frustrated by its Find and Replace functionality. First, I'm bothered by the fact that the replacement buttons don't have mnemonics, so pressing Alt+A, for example, doesn't replace all, but opens a menu. Many other text editors allow you to find and replace without using the mouse; I've tried Tabbing to the buttons, but it only will give focus to the replace all button and the text fields, ignoring the other two replacement buttons and both finding buttons. I tried setting Replace Next to Alt+R in the shortcuts dialog, but pressing Alt+R doesn't seem to do anything; Alt+Shift+R does Replace Previous, but it is hard for that alone to be useful. I bound Replace to Ctrl+R, but I have yet to find out what that actually does, if anything.

 

In short, find and replace feels weak in Qt Creator, compared to some free text editors out there, and it is heavily affecting my workflow (I use find and replace a lot). Additionally, I can't seem to get it to replace within a single-line selection; every time I make a single-line selection and open the find dialog, it clears the selection if it is shorter than two lines! Are there any plugins for this to augment its behavior? I haven't found any. Has anyone here that uses Qt Creator managed to use keyboard shortcuts for this functionality? Ideally, I'd like it to function like Kate, or at least Notepad++ (not crazy about how MSVS does it, especially regex syntax).

1

Share this post


Link to post
Share on other sites

Does it replace within selections? I can't picture vi supporting it, but I haven't really used it.

0

Share this post


Link to post
Share on other sites

Does it replace within selections? I can't picture vi supporting it, but I haven't really used it.

yes, you can limit the search&replace to a selection by adding \%V at the start of the searchString. (you can also restrict it to a line range and a bunch of other things).

 

with vim (or fakeVim in QTCreator) you can also quickly select text using the keyboard by pressing v (to enter visual/select mode) and then follow it up with the normal commands for block or line manipulation. (viB selects the current { ... } block for example)

 

Also, if you don't like using fakevim you can just go into tools->options->enviroment->keyboard and add/change the normal keyboard shortcuts. (there are quite a few functions there that don't have a keybinding in the default configuration)

Edited by SimonForsman
1

Share this post


Link to post
Share on other sites


yes, you can limit the search&replace to a selection by adding \%V at the start of the searchString. (you can also restrict it to a line range and a bunch of other things).



with vim (or fakeVim in QTCreator) you can also quickly select text using the keyboard by pressing v (to enter visual/select mode) and then follow it up with the normal commands for block or line manipulation. (viB selects the current { ... } block for example)

It's certainly a possibility, but that's a steep learning curve to learn the control scheme of an entirely different text editor to work around an inadequate find and replace dialog panel.

 


Also, if you don't like using fakevim you can just go into tools->options->enviroment->keyboard and add/change the normal keyboard shortcuts. (there are quite a few functions there that don't have a keybinding in the default configuration)

As I said in the original post, I have already tried changing the keybindings there, with mixed success. Not everything I needed could be configured, and while some worked, some did nothing whatsoever, no matter which elements had focus when I pressed the key combination.

 

If making it behave like Kate isn't possible, I understand.

0

Share this post


Link to post
Share on other sites


that's a steep learning curve to learn the control scheme of an entirely different text editor to work around an inadequate find and replace dialog panel

Once you've learned vim, all other editors are inadequate1.  Take the plunge now, the only regret you will have is that you didn't learn it sooner.

 

 

1 Some say there's an equally good editor buried in emacs, but I have yet to find out how to access it.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0