Skip to content
/ symP Public

It is an alternative for Listary in Linux.

Notifications You must be signed in to change notification settings

szsdk/symP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

symP

It is an alternative for Listary in Linux.

TO-LIST

  1. more flexible vim-mode shortcuts

Usage

Shortcuts

  • ALT+a: Pull down(up) the window
  • TAB: Shift between Command Textbox and the Listbox
  • RETURN: Run the selected item

Command Textbox

  • CTRL+a: Move to the head of line
  • CTRL+e: Move to the end of line
  • CTRL+A: Select all

Listbox

  • j: Down
  • k: Up
  • d: Pagedown
  • u: Pageup
  • H: Goto the first item on display
  • L: Goto the last item on display
  • ESCAPE: Focus the Command Textbox

Command Type

SymP includes several types of commands as follow.

  • User program
  • User files
  • User websites
  • Files and directories
  • Files modified recently
  • Calculator Exmaple: 1+sin(pi/6), sum(range(101))

Configure

The main default configure file is ~/.symp_config. All configure files use the JSON format.

autoupdateprograms = False

Whether update the userprogramsdata if run a new program

userfilepath = os.getenv('HOME')+"/.symp_userfile"

The path stores the userfile

defaulteditor = "gvim"

The default editor

program2file = {'.jpg':"eog '%s'", '.pdf':"evince '%s'", '.png':"eog '%s'", '.tex':"gvim %s", '.mp4':"smplayer %s" }

The programs used to open the corresponding formats of files

searchengine = {"name":"GOOGLE", "url": "http://www.google.com/search?hl=&q=%s&btnG=Google+Search&inurl=https"}

The search engine

browser = "firefox '%s'"

The command of browser used to open an URL

searchroot = os.path.expanduser("~/")

The path used to search files and directoies

prettypath = 0

prettypath controls names of folders displayed in the listbox. If prettypath == 0, show the original name If not, when the length of the folder name is morethan prettypath, replace characters beyond the first prettypath with '*' For example, if prettypath == 3, then the /usr/local/texlive/2015/release-texlive.txt is shown as /usr/loc*/tex*/2015/release-texlive.txt .

About

It is an alternative for Listary in Linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages