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

Possible to add a "Refresh" or "Reload from Disk" option in toolbar? #5345

Open
gitmeister opened this issue Sep 5, 2016 · 3 comments
Open
Labels
Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix)

Comments

@gitmeister
Copy link

When editing outside of the IDE it would prevent having to close/re-open the Sketch since the IDE doesn't prompt to reload a file when it notices a change (like Notepad++ would).

@mischnic
Copy link
Contributor

mischnic commented Sep 6, 2016

The setting "Use external editor" should reload the Sketch when the Arduino window regains focus.

@gitmeister
Copy link
Author

gitmeister commented Sep 6, 2016

I tried this but the IDE will proceed to "lock-out" edits done in the IDE. It may not be great practice to have both the IDE and an external editor accessing the same file but the dialog indicating that "An external program has changed this file do you want to reload" is supported by the various OS's. To avoid having to deal with file-change-events a "refresh" (like you see in File Explorers) could just reload. There are many work-arounds for now, I keep a dummy project open so that when I close the externally edited project I can just use the dummy project to "open recent". Closing/Restarting the IDE is considerably slower.

@per1234
Copy link
Collaborator

per1234 commented Mar 10, 2017

Just a note that there is another issue for the sketch modified notification in the IDE feature request, which is related but not a duplicate of this issue:
#4551

facchinm added a commit to facchinm/Arduino that referenced this issue Mar 14, 2017
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes arduino#4551 and arduino#5345
facchinm added a commit to facchinm/Arduino that referenced this issue Jul 4, 2017
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes arduino#4551 and arduino#5345
facchinm added a commit that referenced this issue Oct 11, 2017
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Oct 16, 2017
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit to facchinm/Arduino that referenced this issue Oct 18, 2017
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes arduino#4551 and arduino#5345
cmaglie pushed a commit that referenced this issue Oct 23, 2017
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
cmaglie pushed a commit that referenced this issue Oct 30, 2017
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Nov 10, 2017
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Nov 15, 2017
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Jan 11, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit to facchinm/Arduino that referenced this issue Jan 22, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes arduino#4551 and arduino#5345
facchinm added a commit that referenced this issue Feb 16, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Apr 12, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit to facchinm/Arduino that referenced this issue May 8, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes arduino#4551 and arduino#5345
cmaglie pushed a commit to facchinm/Arduino that referenced this issue May 8, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes arduino#4551 and arduino#5345
cmaglie pushed a commit to facchinm/Arduino that referenced this issue May 9, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes arduino#4551 and arduino#5345
facchinm added a commit that referenced this issue May 14, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue May 14, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue May 15, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
cmaglie pushed a commit that referenced this issue May 17, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue May 22, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue May 30, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Jun 12, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Jul 19, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Aug 20, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Aug 23, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Sep 10, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Oct 5, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Oct 16, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Nov 21, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Dec 5, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Dec 13, 2018
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Jan 18, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Jan 19, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Jan 21, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Mar 7, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Mar 8, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Mar 18, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue May 14, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue May 14, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Jul 18, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Jul 18, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Jul 19, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Jul 23, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Sep 20, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Sep 30, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Oct 22, 2019
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Feb 13, 2020
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Mar 23, 2020
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
facchinm added a commit that referenced this issue Apr 7, 2020
Reloads sketch content if the Editor is not in foreground and isomething happens in the backing storage files.

Note that no confirmation dialog is displayed (same behaviour as SublimeText, differs from other IDEs)

Fixes #4551 and #5345
@per1234 per1234 added Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix) labels Mar 27, 2021
maratbn added a commit to maratbn/Arduino that referenced this issue Mar 3, 2023
Adds UI logic to allow reverting of tab content by pressing Ctrl-Shift-R
or by clicking the 'Revert' SimpleAction menu item on the EditorHeader
menu that opens from the upside-down triangle that's on the right edge
of the tabs bar of the IDE.

Similar to arduino#5345 but option is
added to the tabs bar menu and for better clarity is called 'Revert' not
'Refresh'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

No branches or pull requests

3 participants