Git Product home page Git Product logo

Comments (7)

dantheman39 avatar dantheman39 commented on September 23, 2024 1

Ok, maybe Shift control O would be better...

from praat.

jjatria avatar jjatria commented on September 23, 2024

Ok, maybe Shift control O would be better...

+1

from praat.

PaulBoersma avatar PaulBoersma commented on September 23, 2024

To me this destructive command feels like an emergency measure, not something you do all day, so it may not make sense to give it a shortcut. Otherwise, Shift-Command-O it will be, but I think there should also be a warning that all changes will be undone. Please comment.

from praat.

drammock avatar drammock commented on September 23, 2024

👍 I also use "reopen from disk" often, because external editors have useful facilities (missing from praat's internal editor) which I like: syntax highlighting, code snippets, etc., but when I'm writing a new praat script (or debugging) I often want to run just one or a few lines of code rather than the whole script (so it doesn't make sense to run the whole script from a bash shell).

So I don't think of it as an "emergency measure", and don't really see the need for a warning, since I rarely do serious script development within praat's built-in editor (hence the potential destructiveness is a small risk for me). The proposed Ctrl+Shift+o seems an acceptable choice.

from praat.

dantheman39 avatar dantheman39 commented on September 23, 2024

My thoughts are the same as @drammock 's.

As to giving a warning, in my ideal world there would be a pop up with a warning (and hitting enter would mean "ok"), and there would be a check box where one could choose "Don't show again".

from praat.

jjatria avatar jjatria commented on September 23, 2024

In my ideal world Praat's editor would be an instance of katepart, which will soon ship with syntax highlighting for Praat.

More seriously, I also agree with @drammock: I normally write in an external editor, and use the internal editor mostly for executing or debugging some scripts. So this behaviour does seem desirable, at least for scripters.

from praat.

PaulBoersma avatar PaulBoersma commented on September 23, 2024

OK, good that I asked. So the major use case is when you have an external editor. Then we'll have Shift-Command-O, with a confirmation dialog only in cases where there were changes to the text in Praat's editor (for that majority of users who do use Praat's editor for editing).

from praat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.