Ctrl-N hotkey doesn't open a new file

Bug #1159367 reported by Eugene Pankov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
Medium
Mario Guerriero

Bug Description

Looks like there's no hotkey to create a new file

Revision history for this message
Filipe Manuel Azinhal Funenga (ffunenga-deactivatedaccount) wrote :

Hello,
to find out what shortcuts are being used, the best way currently, IMO, is to open the file:

    src/MainWindow.vala

scroll down to the end and look at the corresponding shortcut for each action:

    http://bazaar.launchpad.net/~elementary-apps/scratch/scratch/view/head:/src/MainWindow.vala#L944

To "create a new file" try CTRL+T.
Is this what you are looking for?

Revision history for this message
Eugene Pankov (john-pankov) wrote :

I believe Ctrl-T ("new Tab") is infinitely far from being an intuitively understandable new-document hotkey for a text editor. For ages, every single text editor in the world offered Ctrl-N as a default new-document keyboard shortcut.

Revision history for this message
Filipe Manuel Azinhal Funenga (ffunenga-deactivatedaccount) wrote :

What do you want to propose as a solution?

I agree, CTRL+N is very common for that action.

If you want to change CTRL+T, let me list some constraints I'm thinking about:
    - I dont think its a good idea to simply change CTRL+T to CTRL+N whitout looking at the rest of the shortcuts;
    - I dont think its a good idea also to have two shortcuts doing the same thing;
    - CTRL+SHIFT+T opens the last closed document in a new tab. From what I was abble to see in [1], this is the only "conflicting" shortcut;
    - Normally I assume CTRL+SHIFT+N opens a new instance of the application running, although I dont see it in very applications. which means: I dont consider CTRL+SHIFT+N to have a standard action. But this is only my opinion.
    - Scratch only allows to have one instance of the application running;

So, IMO, two decisions are to be made in the following order:
    - Is it ok for CTRL+SHIFT+N to open the last closed document in a new tab instead of CTRL+SHIFT+T?
    - Is it ok for CTRL+N to open the last closed document in a new tab instead of CTRL+T?
IMO, I vote yes to both. What do you think?

If this patch is to made, its only a question of changing the accelators in the appropriate Gtk.ActionEntry-s [1]

[1] http://bazaar.launchpad.net/~elementary-apps/scratch/scratch/view/head:/src/MainWindow.vala#L944

Changed in scratch:
status: New → Confirmed
assignee: nobody → Mario Guerriero (mefrio-g)
importance: Undecided → Medium
status: Confirmed → Fix Released
milestone: none → 2.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.