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

Display filename instead of summaries #81

Open
al3xandru opened this issue Nov 14, 2015 · 3 comments
Open

Display filename instead of summaries #81

al3xandru opened this issue Nov 14, 2015 · 3 comments

Comments

@al3xandru
Copy link
Contributor

This is a feature request to provide either a configuration option or to use let g:pad#read_nchars_from_files=0 to display the filename instead of the summary. (I use a system where the file name represents the query I'm usually looking for and the body of the note only the answer).

@fmoralesc
Copy link
Owner

Good idea, I'll try to give it some time this weekend.

@al3xandru
Copy link
Contributor Author

I got it working quite easily pad.py:L123 becomes:

if vim.eval("g:pad#title_first_line") == '1':
    source = source.readline().split("\n")
elif nchars > 0:
    source = source.read(nchars).split('\n')
else:
    source = [basename(source.name)]

al3xandru added a commit to al3xandru/vim-pad that referenced this issue Nov 20, 2015
@fmoralesc
Copy link
Owner

Ah, I wanted something fancier, and was fidgeting about the design :p

If you want to open a PR, feel free. I'm not having as much free time to
work on this as I thought.

El vie., 20 de nov. de 2015 a la(s) 6:53 a. m., Alex Popescu <
[email protected]> escribió:

I got it working quite easily pad.py
https://github.com/fmoralesc/vim-pad/blob/devel/pythonx/pad/pad.py#L123
becomes:

        if vim.eval("g:pad#title_first_line") == '1':
            source = source.readline().split("\n")
        elif nchars > 0:
            source = source.read(nchars).split('\n')
        else:
            source = [basename(source.name)]


Reply to this email directly or view it on GitHub
#81 (comment).

fmoralesc added a commit that referenced this issue Nov 20, 2015
add option to display file names in notes list #81
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