Skip to content

Add tab completion for files and directories#120

Closed
HeathenUK wants to merge 4 commits intobreakintoprogram:mainfrom
HeathenUK:feature_tabcompletion
Closed

Add tab completion for files and directories#120
HeathenUK wants to merge 4 commits intobreakintoprogram:mainfrom
HeathenUK:feature_tabcompletion

Conversation

@HeathenUK
Copy link
Contributor

@HeathenUK HeathenUK commented Nov 21, 2023

As for wildcard support in DIR etc., this requires FF_USE_FIND to be enabled (and as mentioned in the other PR, this has no measurable impact on performance or memory usage). As this hooks into the mos_EDITLINE scheme it also works in BASIC and this is taken advantage of in allowing double quotes to be taken as the start of the section to be tab completed as well as whitespace (i.e. you can tab complete a file in a LOAD "" call in BASIC).

…e advantage of this to return the matched command.

Allows auto-completion of internal commands while only needing to maintain mosCommands[] in mos.c centrally.
@HeathenUK
Copy link
Contributor Author

Closing in favour of the PR that combines this with /bin and local .bin execution.

@HeathenUK HeathenUK closed this Jan 22, 2024
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.

1 participant