The Handmade Essentials Jam just concluded. See the results

Search next?

Hi all,

Once I've got to the first search result, how do I keep searching to go to the next match?

Thank you!

Do you mean the list_all_locations command (default is Alt+F)? If so, you can use goto_next/prev_jump (Alt+(Shift)+N). There is also a goto_first_jump (Alt+Shift+M) for reset back to the first match.

That doesn't work for me. I do ALT+F get my search list, press enter to go to the first one and then press ALT+SHIFT+N but it doesn't go to the next one. Any ideas, please?

By default it should be Alt + N for the next one, and Alt + Shift + N for the previous one (on Windows, on Mac it might be different, command instead of alt maybe).

You can use Alt + X to bring the command lister and search for next, you should see a command goto_next_jump and it should display the hotkey for that command in red.

It's probably not what you want, but you can also switch to the panel that list all the jumps, move the cursor to the desired jump and press Enter and it should jump to that location.


Replying to jamiesandell (#30229)

Use ALT+N for goto_next_jump and ALT+SHIFT+N for goto_prev_jump. I should have made it clearer.


Replying to jamiesandell (#30229)

With a fresh install on version 4.1.8 on Windows, I am also seeing this problem, no continuation of the search after the first [alt+n]. To be more specific, when pressing [ctrl+f] I can only hit the first instance of the search. If I do, [alt+f] I can indeed make a list searching more than one file(which I do NOT want to do). And then with the list I am able to [alt+shift+n] or [alt+n] as I please.


Edited by EmilioCBen on

I looked in the code and to go to the next instance, you can use up/down arrows or page up/page down. You need to do this while the search prompt is visible. Unfortunately you can't configure those keys, you'd need to copy the function and modify it.

When you re-open the search prompt, you can use CTRL + Tab or CTRL + Enter to restore the last search string, but note that you might need to press backspace once for the search to work (not sure why, it most likely a bug).

The file that contains the function is custom\4coder_base_commands.cpp and the function is isearch.

If you have more questions, or need help I'd suggest to ask in the 4coder discord: https://discord.gg/weVFPzK. There is a community fork which contains fixes and some new features, and should be compatible with existing custom layers (except for the unstable branch): https://github.com/4coder-community/4cc.


Edited by Simon Anciaux on
Replying to EmilioCBen (#30681)