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

C-g doesn't display the file path #2140

Closed
tko opened this issue Jun 28, 2015 · 5 comments
Closed

C-g doesn't display the file path #2140

tko opened this issue Jun 28, 2015 · 5 comments
Labels

Comments

@tko
Copy link
Contributor

tko commented Jun 28, 2015

In vim hitting C-g shows the path to the file relative to the current directory in the modeline(?). In spacemacs hitting it shows only Quit. I discovered SPC f y for show-and-copy but it's somewhat excessive for a quick reorientation and messes up the clipboard.

@chrisbarrett
Copy link

Yep, C-g is Emacs for 'quit'. My gut tells me it would be a bad idea to change this.

@hijarian
Copy link
Contributor

@tko C-g is the Emacs keybinding for "Cancel right NOW". It's not for displaying the file path. Well, this is already written, actually.

If all you need is to see the path to the file you are currently viewing, hitting SPC b b will open up the list of buffers and recentf window. In list of buffers there'll be the buffer you're inside, along with the path to directory containing its file, and first line in recentf will be full path to this file.

@syl20bnr
Copy link
Owner

syl20bnr commented Jul 9, 2015

You can also use SPC f y which will show the filepath in the minibuffer (as well as copy it).

@StreakyCobra
Copy link
Contributor

As explained, C-g is an important emacs bindings, and for this reason it will not be changed in Spacemacs. Nothing prevents you to change this binding in your .spacemacs though 😄

I'm closing this issue. Feel free to open a new one in case of troubles (link this issues in it). ☺️

@ccjoel
Copy link

ccjoel commented Jun 6, 2017

I was using SPC ! and then running the pwd cmd 😅

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

No branches or pull requests

6 participants