Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Conversion from fixed-form to free-form using findent #992

Open
1 task done
kc9jud opened this issue Sep 20, 2023 · 1 comment
Open
1 task done

feat: Conversion from fixed-form to free-form using findent #992

kc9jud opened this issue Sep 20, 2023 · 1 comment

Comments

@kc9jud
Copy link

kc9jud commented Sep 20, 2023

Is there an existing request for this?

  • I have searched the existing issues

Feature Request

findent has an option to convert fixed-form source files to free-form source files, by passing -ofree; it can also convert free-form to fixed-form by passing -ofixed, though this is (in my opinion) less useful. An extra command can be defined for each of these conversions if findent is selected as the formatter.

A design question: should conversion prompt the user to provide a new filename, with a default value that just changes the extension? For example, running a conversion on fixed-form file example.f, the extension would prompt the user for a new filename with example.f90 prefilled. Running the reverse conversion on example.f90 would prompt the user with the default of example.f. How should this behavior interact with the settings configured in "files.associations"?

Related: #956

@kc9jud
Copy link
Author

kc9jud commented Sep 21, 2023

As a first attempt, I will not try to change file names...

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

No branches or pull requests

1 participant