[go: up one dir, main page]

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

Keyboard shortcut for moving files from remote to local #152

Open
agustiner opened this issue Feb 16, 2023 · 2 comments
Open

Keyboard shortcut for moving files from remote to local #152

agustiner opened this issue Feb 16, 2023 · 2 comments

Comments

@agustiner
Copy link

Hi, thanks for making gftp. I'm running 2.9.1b on Arch Linux. It works very well, but I have a question. When connected to a server, Ctrl-U correctly transfers a file from local to remote. For remote to local transfers, the keyboard shortcut for this seems to be Ctrl-R.

{ "TransferRetrieveFiles",NULL, N_("_Retrieve Files"), "<control>R", NULL, G_CALLBACK(get_files) },

However, it instead just refreshes the directory. Here are the logs.

Loading directory listing / from server (LC_TIME=en_US.UTF-8)
PASV
227 Entering Passive Mode (...)
LIST -al
150 Connection accepted.
226 Transfer complete.

Is there another keyboard shortcut I can use? Can I make a custom accels file that gftp would use to read keyboard shortcuts?

@wdlkmpx
Copy link
Collaborator
wdlkmpx commented Feb 21, 2023

There is a problem
Both RetrieveFiles and RemoteRefresh = CTRL-R

    { "TransferRetrieveFiles",NULL,                  N_("_Retrieve Files"),   "<control>R",        NULL, G_CALLBACK(get_files) },
    { "RemoteRefresh",        "gtk-refresh",         N_("_Refresh"),          "<control>R",        NULL, G_CALLBACK(on_remote_gftp_gtk_refresh) },

So yeah, CTRL-R refreshes the remote directory

Maybe CTRL-D should be used instead.. it's currently used to delete a file.. but to delete a file the Delete key (or Alt-Del) should be use instead

So what do you think... what should be done.....

@agustiner
Copy link
Author

I'm okay with that. If I could choose, I would use Ctrl-Left to retrieve, Ctrl-Right to put. This agrees with the UI as well.

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

No branches or pull requests

2 participants