Skip to content

Implement Query history#434

Open
Mihitoko wants to merge 9 commits intoinnogames:mainfrom
Mihitoko:query_history
Open

Implement Query history#434
Mihitoko wants to merge 9 commits intoinnogames:mainfrom
Mihitoko:query_history

Conversation

@Mihitoko
Copy link

@Mihitoko Mihitoko commented Mar 1, 2026

Proposed solution for #432
I would be happy for feedback :D

Copy link
Contributor

@kofrezo kofrezo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Just some minor changes needed 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add this it should already come with the bootstrap included icons: https://icons.getbootstrap.com/icons/clock-history/

autocomplete_search_input.autocomplete('enable');
autocomplete_search_input.autocomplete('option', 'autoFocus', $('#autoselect')[0].checked);
autocomplete_search_input.autocomplete('option', 'minLength', 0);
autocomplete_search_input.autocomplete('option', 'delay', 50);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the delay as well from the search settings ?

Image

<label class="form-input-label" for="history_size">The maximum size of your history</label>
</div>
<div>
<input value="Clear History" type="button" onclick="servershell.history.clear()">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets make this beautiful and scary.

Suggested change
<input value="Clear History" type="button" onclick="servershell.history.clear()">
<input value="Clear History" type="button" onclick="servershell.history.clear()" class="btn btn-sm btn-danger" style="margin-top: 5px;">


servershell.close_history_autocomplete = function () {
const autocomplete_search_input = $('#term');
autocomplete_search_input.autocomplete('destroy');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I understand it correct that the destroy resets the previous configured search for the regular search ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants