Skip to main content

[SUGGESTION] Improving behaviour when renaming the extension out of a note

Completed

Comments

7 comments

  • Official comment
    Fletcher Penney

    Finally stumbled across the right search terms to get me to something that would give me the ability to tweak the editing behavior when double-clicking a filename.

    Changed for next release.

  • Fletcher Penney

    I'll look at not selecting the file extension by default when double-clicking a cell  (figuring out how to do that is actually trickier than it should be!!).  But extensions are necessary, as you can have images, text files, or anything in your folders, so it is important to disambiguate.

    As for files without extensions, it is up to macOS how they are treated and whether they are treated as text files -- nvUltra looks to see if whatever file is selected is treated as `public.text` by your system.  Anything that is not considered to be a text file by the system is shown using the QuickLook preview.

    I added behavior to add the default text extension if you did not use one.  This could cause problems if you were renaming an image for example, but at some point the user has to take responsibility for their actions....  ;)

    0
  • Bernardo CDA Vasconcelos

    I second the suggestion to make extensions optionally hidden.

    0
  • AmberV

    > …but at some point the user has to take responsibility for their actions…. ;)

    Hey now! :)

    I totally get where you are coming from with how some people might want to put different kinds of files in, and the freeform nature of how you can open any folder at all only compounds that. It’s a good default behaviour, all things considered—no debate there.

    But like I say, for those of us that intend to use this strictly as a text-based notepad (or even those that don’t care so much about the type but rather just what can be seen), having “.md” hundreds of times in the sidebar, taking up valuable width and positioning, feels unnecessary and overly technical. It’s a valuable slot of text because of how macOS truncation works. Those last three characters are given as much priority as the first three, so in a list with a lot of long titles, it reduces the effectiveness of symmetrical truncation to half.

    Well, it’s no hill to die on, that’s for sure. But it’s one of the first things that jumped out to me when I launched the beta, and the first thing I looked for an option to switch off.

    1
  • Fletcher Penney

    >> …but at some point the user has to take responsibility for their actions…. ;)

    > Hey now! :)

    I can't help it if someone wants to name `image.png` to `image.txt`, and then becomes confused when things don't work properly.  ;) 

    > Those last three characters are given as much priority as the first three, so in a list with a lot of long titles, it reduces the effectiveness of symmetrical truncation to half.

    I looked at different forms of truncation, but a common situation is `Some long filename 1.txt`, `Some long filename 2.txt`, so I think truncating the middle is the best approach in this situation overall.  Especially since you can widen the sidebar as much as desired, and then use Focus mode to hide it while typing so it doesn't always take up screen real estate.  You can even navigate between files from within the search field with the sidebar hidden.

    I'll look at whether hiding extensions is reasonable (I know it's possible -- it's a computer, anything is *possible*.  ;)  But I need to be careful not to overcomplicate the relationships between file paths (which require extensions), a modified display name without extension, the table view (which can show the display name, but still needs to integrate with the indexing and file controllers behind the scenes that require full paths).  The last thing I want to do is to unnecessarily introduce opportunity for error or fragility.  Maybe there's something that can be done with a custom NSFormatter for the table cells....

    0
  • Fletcher Penney

    Update -- changing what is displayed in the table without affecting the underlying value was easier than anticipated compared to trying to "pre-select" everything but the extension when editing the cell.  So that will be in the next version.

    1

Please sign in to leave a comment.

Powered by Zendesk