deadpixi / sam

An updated version of the sam text editor.
Other
433 stars 47 forks source link

Add P command to print current filename #74

Closed ckeen closed 6 years ago

ckeen commented 6 years ago

The P command prints the current file name. It enables a grep like command sequence while searching for code in a big file list. For example:

X/sam/ ,g/sel/ P -. /home/ckeen/src/tools/sam/sam/address.c -. /home/ckeen/src/tools/sam/sam/mesg.c -. /home/ckeen/src/tools/sam/sam/regexp.c +. /home/ckeen/src/tools/sam/sam/xec.c

I first thought of using F as the command name. IDK maybe I am missing something and the functionality can be achieved without extending the language?

deadpixi commented 6 years ago

Thanks @ckeen!